Class GeneratedMedia

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Media

public abstract class GeneratedMedia extends AbstractMedia
Generated class for type Media.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedMedia

      public GeneratedMedia()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class GeneratedAbstractMedia
    • getAltText

      public String getAltText(SessionContext ctx)
      Generated method - Getter of the Media.altText attribute.
      Returns:
      the altText
    • getAltText

      public String getAltText()
      Generated method - Getter of the Media.altText attribute.
      Returns:
      the altText
    • setAltText

      public void setAltText(SessionContext ctx, String value)
      Generated method - Setter of the Media.altText attribute.
      Parameters:
      value - the altText
    • setAltText

      public void setAltText(String value)
      Generated method - Setter of the Media.altText attribute.
      Parameters:
      value - the altText
    • getCode

      public String getCode(SessionContext ctx)
      Generated method - Getter of the Media.code attribute.
      Returns:
      the code - Code of media
    • getCode

      public String getCode()
      Generated method - Getter of the Media.code attribute.
      Returns:
      the code - Code of media
    • setCode

      public void setCode(SessionContext ctx, String value)
      Generated method - Setter of the Media.code attribute.
      Parameters:
      value - the code - Code of media
    • setCode

      public void setCode(String value)
      Generated method - Setter of the Media.code attribute.
      Parameters:
      value - the code - Code of media
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDerivedMedias

      public Collection<DerivedMedia> getDerivedMedias(SessionContext ctx)
      Generated method - Getter of the Media.derivedMedias attribute.
      Returns:
      the derivedMedias
    • getDerivedMedias

      public Collection<DerivedMedia> getDerivedMedias()
      Generated method - Getter of the Media.derivedMedias attribute.
      Returns:
      the derivedMedias
    • setDerivedMedias

      public void setDerivedMedias(SessionContext ctx, Collection<DerivedMedia> value)
      Generated method - Setter of the Media.derivedMedias attribute.
      Parameters:
      value - the derivedMedias
    • setDerivedMedias

      public void setDerivedMedias(Collection<DerivedMedia> value)
      Generated method - Setter of the Media.derivedMedias attribute.
      Parameters:
      value - the derivedMedias
    • addToDerivedMedias

      public void addToDerivedMedias(SessionContext ctx, DerivedMedia value)
      Generated method - Adds value to derivedMedias.
      Parameters:
      value - the item to add to derivedMedias
    • addToDerivedMedias

      public void addToDerivedMedias(DerivedMedia value)
      Generated method - Adds value to derivedMedias.
      Parameters:
      value - the item to add to derivedMedias
    • removeFromDerivedMedias

      public void removeFromDerivedMedias(SessionContext ctx, DerivedMedia value)
      Generated method - Removes value from derivedMedias.
      Parameters:
      value - the item to remove from derivedMedias
    • removeFromDerivedMedias

      public void removeFromDerivedMedias(DerivedMedia value)
      Generated method - Removes value from derivedMedias.
      Parameters:
      value - the item to remove from derivedMedias
    • getDescription

      public String getDescription(SessionContext ctx)
      Generated method - Getter of the Media.description attribute.
      Returns:
      the description
    • getDescription

      public String getDescription()
      Generated method - Getter of the Media.description attribute.
      Returns:
      the description
    • setDescription

      public void setDescription(SessionContext ctx, String value)
      Generated method - Setter of the Media.description attribute.
      Parameters:
      value - the description
    • setDescription

      public void setDescription(String value)
      Generated method - Setter of the Media.description attribute.
      Parameters:
      value - the description
    • getFolder

      public MediaFolder getFolder(SessionContext ctx)
      Generated method - Getter of the Media.folder attribute.
      Returns:
      the folder - Sub folder where this media is stored.
    • getFolder

      public MediaFolder getFolder()
      Generated method - Getter of the Media.folder attribute.
      Returns:
      the folder - Sub folder where this media is stored.
    • setFolder

      public void setFolder(SessionContext ctx, MediaFolder value)
      Generated method - Setter of the Media.folder attribute.
      Parameters:
      value - the folder - Sub folder where this media is stored.
    • setFolder

      public void setFolder(MediaFolder value)
      Generated method - Setter of the Media.folder attribute.
      Parameters:
      value - the folder - Sub folder where this media is stored.
    • getInternalURL

      public String getInternalURL(SessionContext ctx)
      Generated method - Getter of the Media.internalURL attribute.
      Returns:
      the internalURL
    • getInternalURL

      public String getInternalURL()
      Generated method - Getter of the Media.internalURL attribute.
      Returns:
      the internalURL
    • setInternalURL

      public void setInternalURL(SessionContext ctx, String value)
      Generated method - Setter of the Media.internalURL attribute.
      Parameters:
      value - the internalURL
    • setInternalURL

      public void setInternalURL(String value)
      Generated method - Setter of the Media.internalURL attribute.
      Parameters:
      value - the internalURL
    • getMediaContainer

      public MediaContainer getMediaContainer(SessionContext ctx)
      Generated method - Getter of the Media.mediaContainer attribute.
      Returns:
      the mediaContainer
    • getMediaContainer

      public MediaContainer getMediaContainer()
      Generated method - Getter of the Media.mediaContainer attribute.
      Returns:
      the mediaContainer
    • setMediaContainer

      public void setMediaContainer(SessionContext ctx, MediaContainer value)
      Generated method - Setter of the Media.mediaContainer attribute.
      Parameters:
      value - the mediaContainer
    • setMediaContainer

      public void setMediaContainer(MediaContainer value)
      Generated method - Setter of the Media.mediaContainer attribute.
      Parameters:
      value - the mediaContainer
    • getMediaFormat

      public MediaFormat getMediaFormat(SessionContext ctx)
      Generated method - Getter of the Media.mediaFormat attribute.
      Returns:
      the mediaFormat - Format of this media
    • getMediaFormat

      public MediaFormat getMediaFormat()
      Generated method - Getter of the Media.mediaFormat attribute.
      Returns:
      the mediaFormat - Format of this media
    • setMediaFormat

      public void setMediaFormat(SessionContext ctx, MediaFormat value)
      Generated method - Setter of the Media.mediaFormat attribute.
      Parameters:
      value - the mediaFormat - Format of this media
    • setMediaFormat

      public void setMediaFormat(MediaFormat value)
      Generated method - Setter of the Media.mediaFormat attribute.
      Parameters:
      value - the mediaFormat - Format of this media
    • isRemovable

      public Boolean isRemovable(SessionContext ctx)
      Generated method - Getter of the Media.removable attribute.
      Returns:
      the removable
    • isRemovable

      public Boolean isRemovable()
      Generated method - Getter of the Media.removable attribute.
      Returns:
      the removable
    • isRemovableAsPrimitive

      public boolean isRemovableAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Media.removable attribute.
      Returns:
      the removable
    • isRemovableAsPrimitive

      public boolean isRemovableAsPrimitive()
      Generated method - Getter of the Media.removable attribute.
      Returns:
      the removable
    • setRemovable

      public void setRemovable(SessionContext ctx, Boolean value)
      Generated method - Setter of the Media.removable attribute.
      Parameters:
      value - the removable
    • setRemovable

      public void setRemovable(Boolean value)
      Generated method - Setter of the Media.removable attribute.
      Parameters:
      value - the removable
    • setRemovable

      public void setRemovable(SessionContext ctx, boolean value)
      Generated method - Setter of the Media.removable attribute.
      Parameters:
      value - the removable
    • setRemovable

      public void setRemovable(boolean value)
      Generated method - Setter of the Media.removable attribute.
      Parameters:
      value - the removable
    • getSubFolderPath

      public String getSubFolderPath(SessionContext ctx)
      Generated method - Getter of the Media.subFolderPath attribute.
      Returns:
      the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
    • getSubFolderPath

      public String getSubFolderPath()
      Generated method - Getter of the Media.subFolderPath attribute.
      Returns:
      the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
    • setSubFolderPath

      public void setSubFolderPath(SessionContext ctx, String value)
      Generated method - Setter of the Media.subFolderPath attribute.
      Parameters:
      value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
    • setSubFolderPath

      public void setSubFolderPath(String value)
      Generated method - Setter of the Media.subFolderPath attribute.
      Parameters:
      value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.