Package de.hybris.platform.jalo.media
Class GeneratedMedia
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Media
Generated class for type
Media.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringQualifier of theMedia.altTextattributestatic final StringQualifier of theMedia.codeattributeprotected static final Map<String,Item.AttributeMode> static final StringQualifier of theMedia.derivedMediasattributeprotected static final OneToManyHandler<DerivedMedia>OneToManyHandlerfor handling 1:n DERIVEDMEDIAS's relation attributes from 'many' side.static final StringQualifier of theMedia.descriptionattributestatic final StringQualifier of theMedia.folderattributestatic final StringQualifier of theMedia.internalURLattributestatic final StringQualifier of theMedia.mediaContainerattributeprotected static final BidirectionalOneToManyHandler<GeneratedMedia>BidirectionalOneToManyHandlerfor handling 1:n MEDIACONTAINER's relation attributes from 'one' side.static final StringQualifier of theMedia.mediaFormatattributestatic final StringQualifier of theMedia.removableattributestatic final StringQualifier of theMedia.subFolderPathattributeFields inherited from class de.hybris.platform.jalo.media.GeneratedAbstractMedia
DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZEFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDerivedMedias(DerivedMedia value) Generated method - Addsvalueto derivedMedias.voidaddToDerivedMedias(SessionContext ctx, DerivedMedia value) Generated method - Addsvalueto derivedMedias.protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) Has to be implemented for each concrete subtype of item.Generated method - Getter of theMedia.altTextattribute.getAltText(SessionContext ctx) Generated method - Getter of theMedia.altTextattribute.getCode()Generated method - Getter of theMedia.codeattribute.getCode(SessionContext ctx) Generated method - Getter of theMedia.codeattribute.protected Map<String,Item.AttributeMode> Generated method - Getter of theMedia.derivedMediasattribute.Generated method - Getter of theMedia.derivedMediasattribute.Generated method - Getter of theMedia.descriptionattribute.Generated method - Getter of theMedia.descriptionattribute.Generated method - Getter of theMedia.folderattribute.getFolder(SessionContext ctx) Generated method - Getter of theMedia.folderattribute.Generated method - Getter of theMedia.internalURLattribute.Generated method - Getter of theMedia.internalURLattribute.Generated method - Getter of theMedia.mediaContainerattribute.Generated method - Getter of theMedia.mediaContainerattribute.Generated method - Getter of theMedia.mediaFormatattribute.Generated method - Getter of theMedia.mediaFormatattribute.Generated method - Getter of theMedia.subFolderPathattribute.Generated method - Getter of theMedia.subFolderPathattribute.Generated method - Getter of theMedia.removableattribute.Generated method - Getter of theMedia.removableattribute.booleanGenerated method - Getter of theMedia.removableattribute.booleanGenerated method - Getter of theMedia.removableattribute.voidGenerated method - Removesvaluefrom derivedMedias.voidremoveFromDerivedMedias(SessionContext ctx, DerivedMedia value) Generated method - Removesvaluefrom derivedMedias.voidsetAltText(SessionContext ctx, String value) Generated method - Setter of theMedia.altTextattribute.voidsetAltText(String value) Generated method - Setter of theMedia.altTextattribute.voidsetCode(SessionContext ctx, String value) Generated method - Setter of theMedia.codeattribute.voidGenerated method - Setter of theMedia.codeattribute.voidsetDerivedMedias(SessionContext ctx, Collection<DerivedMedia> value) Generated method - Setter of theMedia.derivedMediasattribute.voidsetDerivedMedias(Collection<DerivedMedia> value) Generated method - Setter of theMedia.derivedMediasattribute.voidsetDescription(SessionContext ctx, String value) Generated method - Setter of theMedia.descriptionattribute.voidsetDescription(String value) Generated method - Setter of theMedia.descriptionattribute.voidsetFolder(MediaFolder value) Generated method - Setter of theMedia.folderattribute.voidsetFolder(SessionContext ctx, MediaFolder value) Generated method - Setter of theMedia.folderattribute.voidsetInternalURL(SessionContext ctx, String value) Generated method - Setter of theMedia.internalURLattribute.voidsetInternalURL(String value) Generated method - Setter of theMedia.internalURLattribute.voidsetMediaContainer(MediaContainer value) Generated method - Setter of theMedia.mediaContainerattribute.voidsetMediaContainer(SessionContext ctx, MediaContainer value) Generated method - Setter of theMedia.mediaContainerattribute.voidsetMediaFormat(MediaFormat value) Generated method - Setter of theMedia.mediaFormatattribute.voidsetMediaFormat(SessionContext ctx, MediaFormat value) Generated method - Setter of theMedia.mediaFormatattribute.voidsetRemovable(boolean value) Generated method - Setter of theMedia.removableattribute.voidsetRemovable(SessionContext ctx, boolean value) Generated method - Setter of theMedia.removableattribute.voidsetRemovable(SessionContext ctx, Boolean value) Generated method - Setter of theMedia.removableattribute.voidsetRemovable(Boolean value) Generated method - Setter of theMedia.removableattribute.voidsetSubFolderPath(SessionContext ctx, String value) Generated method - Setter of theMedia.subFolderPathattribute.voidsetSubFolderPath(String value) Generated method - Setter of theMedia.subFolderPathattribute.Methods inherited from class de.hybris.platform.jalo.media.GeneratedAbstractMedia
getDataPK, getDataPK, getDataPKAsPrimitive, getDataPKAsPrimitive, getLocation, getLocation, getLocationHash, getLocationHash, getMime, getMime, getRealFileName, getRealFileName, getSize, getSize, getSizeAsPrimitive, getSizeAsPrimitive, setDataPK, setDataPK, setDataPK, setDataPK, setLocation, setLocation, setLocationHash, setLocationHash, setMime, setMime, setRealFileName, setRealFileName, setSize, setSize, setSize, setSizeMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPartOfRemovedSessionMarker, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
CODE
Qualifier of theMedia.codeattribute- See Also:
-
INTERNALURL
Qualifier of theMedia.internalURLattribute- See Also:
-
DESCRIPTION
Qualifier of theMedia.descriptionattribute- See Also:
-
ALTTEXT
Qualifier of theMedia.altTextattribute- See Also:
-
REMOVABLE
Qualifier of theMedia.removableattribute- See Also:
-
MEDIAFORMAT
Qualifier of theMedia.mediaFormatattribute- See Also:
-
FOLDER
Qualifier of theMedia.folderattribute- See Also:
-
SUBFOLDERPATH
Qualifier of theMedia.subFolderPathattribute- See Also:
-
MEDIACONTAINER
Qualifier of theMedia.mediaContainerattribute- See Also:
-
DERIVEDMEDIAS
Qualifier of theMedia.derivedMediasattribute- See Also:
-
MEDIACONTAINERHANDLER
BidirectionalOneToManyHandlerfor handling 1:n MEDIACONTAINER's relation attributes from 'one' side. -
DERIVEDMEDIASHANDLER
OneToManyHandlerfor handling 1:n DERIVEDMEDIAS's relation attributes from 'many' side. -
DEFAULT_INITIAL_ATTRIBUTES
-
-
Constructor Details
-
GeneratedMedia
public GeneratedMedia()
-
-
Method Details
-
getDefaultAttributeModes
- Overrides:
getDefaultAttributeModesin classGeneratedAbstractMedia
-
getAltText
Generated method - Getter of theMedia.altTextattribute.- Returns:
- the altText
-
getAltText
Generated method - Getter of theMedia.altTextattribute.- Returns:
- the altText
-
setAltText
Generated method - Setter of theMedia.altTextattribute.- Parameters:
value- the altText
-
setAltText
Generated method - Setter of theMedia.altTextattribute.- Parameters:
value- the altText
-
getCode
Generated method - Getter of theMedia.codeattribute.- Returns:
- the code - Code of media
-
getCode
Generated method - Getter of theMedia.codeattribute.- Returns:
- the code - Code of media
-
setCode
Generated method - Setter of theMedia.codeattribute.- Parameters:
value- the code - Code of media
-
setCode
Generated method - Setter of theMedia.codeattribute.- Parameters:
value- the code - Code of media
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException Description copied from class:ItemHas 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. ) duringComposedType.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:
createItemin classGenericItem- Parameters:
ctx- the current session context which this item is created withintype- 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
Generated method - Getter of theMedia.derivedMediasattribute.- Returns:
- the derivedMedias
-
getDerivedMedias
Generated method - Getter of theMedia.derivedMediasattribute.- Returns:
- the derivedMedias
-
setDerivedMedias
Generated method - Setter of theMedia.derivedMediasattribute.- Parameters:
value- the derivedMedias
-
setDerivedMedias
Generated method - Setter of theMedia.derivedMediasattribute.- Parameters:
value- the derivedMedias
-
addToDerivedMedias
Generated method - Addsvalueto derivedMedias.- Parameters:
value- the item to add to derivedMedias
-
addToDerivedMedias
Generated method - Addsvalueto derivedMedias.- Parameters:
value- the item to add to derivedMedias
-
removeFromDerivedMedias
Generated method - Removesvaluefrom derivedMedias.- Parameters:
value- the item to remove from derivedMedias
-
removeFromDerivedMedias
Generated method - Removesvaluefrom derivedMedias.- Parameters:
value- the item to remove from derivedMedias
-
getDescription
Generated method - Getter of theMedia.descriptionattribute.- Returns:
- the description
-
getDescription
Generated method - Getter of theMedia.descriptionattribute.- Returns:
- the description
-
setDescription
Generated method - Setter of theMedia.descriptionattribute.- Parameters:
value- the description
-
setDescription
Generated method - Setter of theMedia.descriptionattribute.- Parameters:
value- the description
-
getFolder
Generated method - Getter of theMedia.folderattribute.- Returns:
- the folder - Sub folder where this media is stored.
-
getFolder
Generated method - Getter of theMedia.folderattribute.- Returns:
- the folder - Sub folder where this media is stored.
-
setFolder
Generated method - Setter of theMedia.folderattribute.- Parameters:
value- the folder - Sub folder where this media is stored.
-
setFolder
Generated method - Setter of theMedia.folderattribute.- Parameters:
value- the folder - Sub folder where this media is stored.
-
getInternalURL
Generated method - Getter of theMedia.internalURLattribute.- Returns:
- the internalURL
-
getInternalURL
Generated method - Getter of theMedia.internalURLattribute.- Returns:
- the internalURL
-
setInternalURL
Generated method - Setter of theMedia.internalURLattribute.- Parameters:
value- the internalURL
-
setInternalURL
Generated method - Setter of theMedia.internalURLattribute.- Parameters:
value- the internalURL
-
getMediaContainer
Generated method - Getter of theMedia.mediaContainerattribute.- Returns:
- the mediaContainer
-
getMediaContainer
Generated method - Getter of theMedia.mediaContainerattribute.- Returns:
- the mediaContainer
-
setMediaContainer
Generated method - Setter of theMedia.mediaContainerattribute.- Parameters:
value- the mediaContainer
-
setMediaContainer
Generated method - Setter of theMedia.mediaContainerattribute.- Parameters:
value- the mediaContainer
-
getMediaFormat
Generated method - Getter of theMedia.mediaFormatattribute.- Returns:
- the mediaFormat - Format of this media
-
getMediaFormat
Generated method - Getter of theMedia.mediaFormatattribute.- Returns:
- the mediaFormat - Format of this media
-
setMediaFormat
Generated method - Setter of theMedia.mediaFormatattribute.- Parameters:
value- the mediaFormat - Format of this media
-
setMediaFormat
Generated method - Setter of theMedia.mediaFormatattribute.- Parameters:
value- the mediaFormat - Format of this media
-
isRemovable
Generated method - Getter of theMedia.removableattribute.- Returns:
- the removable
-
isRemovable
Generated method - Getter of theMedia.removableattribute.- Returns:
- the removable
-
isRemovableAsPrimitive
Generated method - Getter of theMedia.removableattribute.- Returns:
- the removable
-
isRemovableAsPrimitive
public boolean isRemovableAsPrimitive()Generated method - Getter of theMedia.removableattribute.- Returns:
- the removable
-
setRemovable
Generated method - Setter of theMedia.removableattribute.- Parameters:
value- the removable
-
setRemovable
Generated method - Setter of theMedia.removableattribute.- Parameters:
value- the removable
-
setRemovable
Generated method - Setter of theMedia.removableattribute.- Parameters:
value- the removable
-
setRemovable
public void setRemovable(boolean value) Generated method - Setter of theMedia.removableattribute.- Parameters:
value- the removable
-
getSubFolderPath
Generated method - Getter of theMedia.subFolderPathattribute.- Returns:
- the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
-
getSubFolderPath
Generated method - Getter of theMedia.subFolderPathattribute.- Returns:
- the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
-
setSubFolderPath
Generated method - Setter of theMedia.subFolderPathattribute.- Parameters:
value- the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
-
setSubFolderPath
Generated method - Setter of theMedia.subFolderPathattribute.- Parameters:
value- the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.
-