public abstract class GeneratedMedia extends AbstractMedia
Media.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALTTEXT
Qualifier of the
Media.altText attribute |
static java.lang.String |
CODE
Qualifier of the
Media.code attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DERIVEDMEDIAS
Qualifier of the
Media.derivedMedias attribute |
protected static OneToManyHandler<DerivedMedia> |
DERIVEDMEDIASHANDLER
OneToManyHandler for handling 1:n DERIVEDMEDIAS's relation attributes from 'many' side. |
static java.lang.String |
DESCRIPTION
Qualifier of the
Media.description attribute |
static java.lang.String |
FOLDER
Qualifier of the
Media.folder attribute |
static java.lang.String |
INTERNALURL
Qualifier of the
Media.internalURL attribute |
static java.lang.String |
MEDIACONTAINER
Qualifier of the
Media.mediaContainer attribute |
protected static BidirectionalOneToManyHandler<GeneratedMedia> |
MEDIACONTAINERHANDLER
BidirectionalOneToManyHandler for handling 1:n MEDIACONTAINER's relation attributes from 'one' side. |
static java.lang.String |
MEDIAFORMAT
Qualifier of the
Media.mediaFormat attribute |
static java.lang.String |
REMOVABLE
Qualifier of the
Media.removable attribute |
static java.lang.String |
SUBFOLDERPATH
Qualifier of the
Media.subFolderPath attribute |
DATAPK, LOCATION, LOCATIONHASH, MIME, REALFILENAME, SIZELANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedMedia() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToDerivedMedias(DerivedMedia value)
Generated method - Adds
value to derivedMedias. |
void |
addToDerivedMedias(SessionContext ctx,
DerivedMedia value)
Generated method - Adds
value to derivedMedias. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
java.lang.String |
getAltText()
Generated method - Getter of the
Media.altText attribute. |
java.lang.String |
getAltText(SessionContext ctx)
Generated method - Getter of the
Media.altText attribute. |
java.lang.String |
getCode()
Generated method - Getter of the
Media.code attribute. |
java.lang.String |
getCode(SessionContext ctx)
Generated method - Getter of the
Media.code attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.util.Collection<DerivedMedia> |
getDerivedMedias()
Generated method - Getter of the
Media.derivedMedias attribute. |
java.util.Collection<DerivedMedia> |
getDerivedMedias(SessionContext ctx)
Generated method - Getter of the
Media.derivedMedias attribute. |
java.lang.String |
getDescription()
Generated method - Getter of the
Media.description attribute. |
java.lang.String |
getDescription(SessionContext ctx)
Generated method - Getter of the
Media.description attribute. |
MediaFolder |
getFolder()
Generated method - Getter of the
Media.folder attribute. |
MediaFolder |
getFolder(SessionContext ctx)
Generated method - Getter of the
Media.folder attribute. |
java.lang.String |
getInternalURL()
Generated method - Getter of the
Media.internalURL attribute. |
java.lang.String |
getInternalURL(SessionContext ctx)
Generated method - Getter of the
Media.internalURL attribute. |
MediaContainer |
getMediaContainer()
Generated method - Getter of the
Media.mediaContainer attribute. |
MediaContainer |
getMediaContainer(SessionContext ctx)
Generated method - Getter of the
Media.mediaContainer attribute. |
MediaFormat |
getMediaFormat()
Generated method - Getter of the
Media.mediaFormat attribute. |
MediaFormat |
getMediaFormat(SessionContext ctx)
Generated method - Getter of the
Media.mediaFormat attribute. |
java.lang.String |
getSubFolderPath()
Generated method - Getter of the
Media.subFolderPath attribute. |
java.lang.String |
getSubFolderPath(SessionContext ctx)
Generated method - Getter of the
Media.subFolderPath attribute. |
java.lang.Boolean |
isRemovable()
Generated method - Getter of the
Media.removable attribute. |
java.lang.Boolean |
isRemovable(SessionContext ctx)
Generated method - Getter of the
Media.removable attribute. |
boolean |
isRemovableAsPrimitive()
Generated method - Getter of the
Media.removable attribute. |
boolean |
isRemovableAsPrimitive(SessionContext ctx)
Generated method - Getter of the
Media.removable attribute. |
void |
removeFromDerivedMedias(DerivedMedia value)
Generated method - Removes
value from derivedMedias. |
void |
removeFromDerivedMedias(SessionContext ctx,
DerivedMedia value)
Generated method - Removes
value from derivedMedias. |
void |
setAltText(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Media.altText attribute. |
void |
setAltText(java.lang.String value)
Generated method - Setter of the
Media.altText attribute. |
void |
setCode(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Media.code attribute. |
void |
setCode(java.lang.String value)
Generated method - Setter of the
Media.code attribute. |
void |
setDerivedMedias(java.util.Collection<DerivedMedia> value)
Generated method - Setter of the
Media.derivedMedias attribute. |
void |
setDerivedMedias(SessionContext ctx,
java.util.Collection<DerivedMedia> value)
Generated method - Setter of the
Media.derivedMedias attribute. |
void |
setDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Media.description attribute. |
void |
setDescription(java.lang.String value)
Generated method - Setter of the
Media.description attribute. |
void |
setFolder(MediaFolder value)
Generated method - Setter of the
Media.folder attribute. |
void |
setFolder(SessionContext ctx,
MediaFolder value)
Generated method - Setter of the
Media.folder attribute. |
void |
setInternalURL(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Media.internalURL attribute. |
void |
setInternalURL(java.lang.String value)
Generated method - Setter of the
Media.internalURL attribute. |
void |
setMediaContainer(MediaContainer value)
Generated method - Setter of the
Media.mediaContainer attribute. |
void |
setMediaContainer(SessionContext ctx,
MediaContainer value)
Generated method - Setter of the
Media.mediaContainer attribute. |
void |
setMediaFormat(MediaFormat value)
Generated method - Setter of the
Media.mediaFormat attribute. |
void |
setMediaFormat(SessionContext ctx,
MediaFormat value)
Generated method - Setter of the
Media.mediaFormat attribute. |
void |
setRemovable(boolean value)
Generated method - Setter of the
Media.removable attribute. |
void |
setRemovable(java.lang.Boolean value)
Generated method - Setter of the
Media.removable attribute. |
void |
setRemovable(SessionContext ctx,
boolean value)
Generated method - Setter of the
Media.removable attribute. |
void |
setRemovable(SessionContext ctx,
java.lang.Boolean value)
Generated method - Setter of the
Media.removable attribute. |
void |
setSubFolderPath(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Media.subFolderPath attribute. |
void |
setSubFolderPath(java.lang.String value)
Generated method - Setter of the
Media.subFolderPath attribute. |
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, setSizegetInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, 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, 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, toString, useTA, writeReplacesetTenantpublic static final java.lang.String CODE
Media.code attributepublic static final java.lang.String INTERNALURL
Media.internalURL attributepublic static final java.lang.String DESCRIPTION
Media.description attributepublic static final java.lang.String ALTTEXT
Media.altText attributepublic static final java.lang.String REMOVABLE
Media.removable attributepublic static final java.lang.String MEDIAFORMAT
Media.mediaFormat attributepublic static final java.lang.String FOLDER
Media.folder attributepublic static final java.lang.String SUBFOLDERPATH
Media.subFolderPath attributepublic static final java.lang.String MEDIACONTAINER
Media.mediaContainer attributepublic static final java.lang.String DERIVEDMEDIAS
Media.derivedMedias attributeprotected static final BidirectionalOneToManyHandler<GeneratedMedia> MEDIACONTAINERHANDLER
BidirectionalOneToManyHandler for handling 1:n MEDIACONTAINER's relation attributes from 'one' side.protected static final OneToManyHandler<DerivedMedia> DERIVEDMEDIASHANDLER
OneToManyHandler for handling 1:n DERIVEDMEDIAS's relation attributes from 'many' side.protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedAbstractMediapublic java.lang.String getAltText(SessionContext ctx)
Media.altText attribute.public java.lang.String getAltText()
Media.altText attribute.public void setAltText(SessionContext ctx, java.lang.String value)
Media.altText attribute.value - the altTextpublic void setAltText(java.lang.String value)
Media.altText attribute.value - the altTextpublic java.lang.String getCode(SessionContext ctx)
Media.code attribute.public java.lang.String getCode()
Media.code attribute.public void setCode(SessionContext ctx, java.lang.String value)
Media.code attribute.value - the code - Code of mediapublic void setCode(java.lang.String value)
Media.code attribute.value - the code - Code of mediaprotected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.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; }
createItem in class GenericItemctx - 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 )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic java.util.Collection<DerivedMedia> getDerivedMedias(SessionContext ctx)
Media.derivedMedias attribute.public java.util.Collection<DerivedMedia> getDerivedMedias()
Media.derivedMedias attribute.public void setDerivedMedias(SessionContext ctx, java.util.Collection<DerivedMedia> value)
Media.derivedMedias attribute.value - the derivedMediaspublic void setDerivedMedias(java.util.Collection<DerivedMedia> value)
Media.derivedMedias attribute.value - the derivedMediaspublic void addToDerivedMedias(SessionContext ctx, DerivedMedia value)
value to derivedMedias.value - the item to add to derivedMediaspublic void addToDerivedMedias(DerivedMedia value)
value to derivedMedias.value - the item to add to derivedMediaspublic void removeFromDerivedMedias(SessionContext ctx, DerivedMedia value)
value from derivedMedias.value - the item to remove from derivedMediaspublic void removeFromDerivedMedias(DerivedMedia value)
value from derivedMedias.value - the item to remove from derivedMediaspublic java.lang.String getDescription(SessionContext ctx)
Media.description attribute.public java.lang.String getDescription()
Media.description attribute.public void setDescription(SessionContext ctx, java.lang.String value)
Media.description attribute.value - the descriptionpublic void setDescription(java.lang.String value)
Media.description attribute.value - the descriptionpublic MediaFolder getFolder(SessionContext ctx)
Media.folder attribute.public MediaFolder getFolder()
Media.folder attribute.public void setFolder(SessionContext ctx, MediaFolder value)
Media.folder attribute.value - the folder - Sub folder where this media is stored.public void setFolder(MediaFolder value)
Media.folder attribute.value - the folder - Sub folder where this media is stored.public java.lang.String getInternalURL(SessionContext ctx)
Media.internalURL attribute.public java.lang.String getInternalURL()
Media.internalURL attribute.public void setInternalURL(SessionContext ctx, java.lang.String value)
Media.internalURL attribute.value - the internalURLpublic void setInternalURL(java.lang.String value)
Media.internalURL attribute.value - the internalURLpublic MediaContainer getMediaContainer(SessionContext ctx)
Media.mediaContainer attribute.public MediaContainer getMediaContainer()
Media.mediaContainer attribute.public void setMediaContainer(SessionContext ctx, MediaContainer value)
Media.mediaContainer attribute.value - the mediaContainerpublic void setMediaContainer(MediaContainer value)
Media.mediaContainer attribute.value - the mediaContainerpublic MediaFormat getMediaFormat(SessionContext ctx)
Media.mediaFormat attribute.public MediaFormat getMediaFormat()
Media.mediaFormat attribute.public void setMediaFormat(SessionContext ctx, MediaFormat value)
Media.mediaFormat attribute.value - the mediaFormat - Format of this mediapublic void setMediaFormat(MediaFormat value)
Media.mediaFormat attribute.value - the mediaFormat - Format of this mediapublic java.lang.Boolean isRemovable(SessionContext ctx)
Media.removable attribute.public java.lang.Boolean isRemovable()
Media.removable attribute.public boolean isRemovableAsPrimitive(SessionContext ctx)
Media.removable attribute.public boolean isRemovableAsPrimitive()
Media.removable attribute.public void setRemovable(SessionContext ctx, java.lang.Boolean value)
Media.removable attribute.value - the removablepublic void setRemovable(java.lang.Boolean value)
Media.removable attribute.value - the removablepublic void setRemovable(SessionContext ctx, boolean value)
Media.removable attribute.value - the removablepublic void setRemovable(boolean value)
Media.removable attribute.value - the removablepublic java.lang.String getSubFolderPath(SessionContext ctx)
Media.subFolderPath attribute.public java.lang.String getSubFolderPath()
Media.subFolderPath attribute.public void setSubFolderPath(SessionContext ctx, java.lang.String value)
Media.subFolderPath attribute.value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.public void setSubFolderPath(java.lang.String value)
Media.subFolderPath attribute.value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.Copyright © 2018 SAP SE. All Rights Reserved.