Class GeneratedMedia

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Media

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

      • CODE

        public static final java.lang.String CODE
        Qualifier of the Media.code attribute
        See Also:
        Constant Field Values
      • INTERNALURL

        public static final java.lang.String INTERNALURL
        Qualifier of the Media.internalURL attribute
        See Also:
        Constant Field Values
      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
        Qualifier of the Media.description attribute
        See Also:
        Constant Field Values
      • ALTTEXT

        public static final java.lang.String ALTTEXT
        Qualifier of the Media.altText attribute
        See Also:
        Constant Field Values
      • REMOVABLE

        public static final java.lang.String REMOVABLE
        Qualifier of the Media.removable attribute
        See Also:
        Constant Field Values
      • MEDIAFORMAT

        public static final java.lang.String MEDIAFORMAT
        Qualifier of the Media.mediaFormat attribute
        See Also:
        Constant Field Values
      • FOLDER

        public static final java.lang.String FOLDER
        Qualifier of the Media.folder attribute
        See Also:
        Constant Field Values
      • SUBFOLDERPATH

        public static final java.lang.String SUBFOLDERPATH
        Qualifier of the Media.subFolderPath attribute
        See Also:
        Constant Field Values
      • MEDIACONTAINER

        public static final java.lang.String MEDIACONTAINER
        Qualifier of the Media.mediaContainer attribute
        See Also:
        Constant Field Values
      • DERIVEDMEDIAS

        public static final java.lang.String DERIVEDMEDIAS
        Qualifier of the Media.derivedMedias attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedMedia

        public GeneratedMedia()
    • Method Detail

      • getAltText

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

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

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

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

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

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

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

        public void setCode​(java.lang.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 java.util.Collection<DerivedMedia> getDerivedMedias​(SessionContext ctx)
        Generated method - Getter of the Media.derivedMedias attribute.
        Returns:
        the derivedMedias
      • getDerivedMedias

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

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

        public void setDerivedMedias​(java.util.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 java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the Media.description attribute.
        Returns:
        the description
      • getDescription

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

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

        public void setDescription​(java.lang.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 java.lang.String getInternalURL​(SessionContext ctx)
        Generated method - Getter of the Media.internalURL attribute.
        Returns:
        the internalURL
      • getInternalURL

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

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

        public void setInternalURL​(java.lang.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 java.lang.Boolean isRemovable​(SessionContext ctx)
        Generated method - Getter of the Media.removable attribute.
        Returns:
        the removable
      • isRemovable

        public java.lang.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,
                                 java.lang.Boolean value)
        Generated method - Setter of the Media.removable attribute.
        Parameters:
        value - the removable
      • setRemovable

        public void setRemovable​(java.lang.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 java.lang.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 java.lang.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,
                                     java.lang.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​(java.lang.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.