Class ProfileBase

All Implemented Interfaces:
Serializable, IBaseEntity, ICoreEntity, IEntity, ISortableEntity, ISchedulable
Direct Known Subclasses:
ImportProfile, PublicationProfile

@MappedSuperclass public abstract class ProfileBase extends ComplexEntity implements ISchedulable
Common abstract baseclass for publication and import profile.
hasVersions: set to true if Publications or Imports of this profile are to be archived. By default they are overwritten.
lastVersion: gives the version number of most recent publication or import. Currently the version number is an integer
maxVersionCount: gives how many old versions are to be archived. Only relevant when hasVersion is set to true. Default is 5.
encoding: encoding used to read or write file
pricelists: if pricelist dependent prices are to be imported or exported. For import gives the pricelists to assign the prices (must either be only one pricelist or the pricelists must be identifiably from data in import. For export gives the pricelist(s) of which the prices are to be exported
lastModificationDateTime: last time a publication or import has been performed. Is not changed upon editing of the profile itself
territory: optional, for territory dependent Attributes: only those for the given territory are ex- or imported
filters: optional, select only data matching with filters assigned to EntityToAttributes or EntityToEntities. Currently not used.
See Also:
  • Constructor Details

    • ProfileBase

      public ProfileBase()
    • ProfileBase

      public ProfileBase(ProfileBase source)
  • Method Details

    • getPricelists

      public List<Pricelist> getPricelists()
    • setPricelists

      public void setPricelists(List<Pricelist> pricelists)
    • addPricelist

      public void addPricelist(Pricelist pricelist)
    • getHasVersions

      public boolean getHasVersions()
    • setHasVersions

      public void setHasVersions(boolean hasVersions)
    • getLastVersion

      public String getLastVersion()
    • setLastVersion

      public void setLastVersion(String lastVersion)
    • getLastModificationDateTime

      public Calendar getLastModificationDateTime()
    • setLastModificationDateTime

      public void setLastModificationDateTime(Calendar lastModificationDateTime)
    • getMaxVersionCount

      public Integer getMaxVersionCount()
    • setMaxVersionCount

      public void setMaxVersionCount(Integer maxVersionCount)
    • getEncoding

      public String getEncoding()
    • setEncoding

      public void setEncoding(String encoding)
    • getTerritory

      public Territory getTerritory()
    • setTerritory

      public void setTerritory(Territory territory)
    • getPeriod

      public long getPeriod()
      Specified by:
      getPeriod in interface ISchedulable
      Returns:
      execution interval in seconds
      See Also:
    • setPeriod

      public void setPeriod(long periodInSec)
      Parameters:
      periodInSec - long, execution interval in seconds
    • getScheduleExpression

      public String getScheduleExpression()
      Specified by:
      getScheduleExpression in interface ISchedulable
      Returns:
      schedule expression in cron syntax
      See Also:
    • setScheduleExpression

      public void setScheduleExpression(String scheduleExpression)
    • getStartTime

      public Calendar getStartTime()
      Specified by:
      getStartTime in interface ISchedulable
      Returns:
      start time as calendar
      See Also:
    • setStartTime

      public void setStartTime(Calendar start)
    • isTimerWorkflow

      public boolean isTimerWorkflow()
      Specified by:
      isTimerWorkflow in interface ISchedulable
      Returns:
      true if timer flag is enabled
    • setTimerWorkflow

      public void setTimerWorkflow(boolean timerWorkflow)
    • getStartTimehour

      public Integer getStartTimehour()
    • getStartTimeminute

      public Integer getStartTimeminute()
    • setStartTimeminute

      public void setStartTimeminute(Integer startTimeminute)
    • setStartTimehour

      public void setStartTimehour(Integer startTimehour)
    • getProfileType

      public abstract ProfileTypeBase getProfileType()
    • getChannelMap

      public abstract ChannelMapBase getChannelMap(boolean useType)
      get channel map from profile, or optionally from type if profile has no map. implemented in derived classes
    • getWorkflowType

      public final WorkflowType getWorkflowType()
      to fulfill ISchedulable contract: return workflowType from profile type
      Specified by:
      getWorkflowType in interface ISchedulable
      Returns:
      the workflow type responsive to execute this schedulable object
    • isFlatFile

      public final boolean isFlatFile()
      to fulfill IChannelMapHolder contract: return isFlatfile from profile type