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 String |
ALTTEXT
Qualifier of the
Media.altText attribute |
static String |
CODE
Qualifier of the
Media.code attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static 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 String |
DESCRIPTION
Qualifier of the
Media.description attribute |
static String |
FOLDER
Qualifier of the
Media.folder attribute |
static String |
INTERNALURL
Qualifier of the
Media.internalURL attribute |
static 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 String |
MEDIAFORMAT
Qualifier of the
Media.mediaFormat attribute |
static String |
REMOVABLE
Qualifier of the
Media.removable attribute |
static 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.
|
String |
getAltText()
Generated method - Getter of the
Media.altText attribute. |
String |
getAltText(SessionContext ctx)
Generated method - Getter of the
Media.altText attribute. |
String |
getCode()
Generated method - Getter of the
Media.code attribute. |
String |
getCode(SessionContext ctx)
Generated method - Getter of the
Media.code attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
Collection<DerivedMedia> |
getDerivedMedias()
Generated method - Getter of the
Media.derivedMedias attribute. |
Collection<DerivedMedia> |
getDerivedMedias(SessionContext ctx)
Generated method - Getter of the
Media.derivedMedias attribute. |
String |
getDescription()
Generated method - Getter of the
Media.description attribute. |
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. |
String |
getInternalURL()
Generated method - Getter of the
Media.internalURL attribute. |
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. |
String |
getSubFolderPath()
Generated method - Getter of the
Media.subFolderPath attribute. |
String |
getSubFolderPath(SessionContext ctx)
Generated method - Getter of the
Media.subFolderPath attribute. |
Boolean |
isRemovable()
Generated method - Getter of the
Media.removable attribute. |
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,
String value)
Generated method - Setter of the
Media.altText attribute. |
void |
setAltText(String value)
Generated method - Setter of the
Media.altText attribute. |
void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
Media.code attribute. |
void |
setCode(String value)
Generated method - Setter of the
Media.code attribute. |
void |
setDerivedMedias(Collection<DerivedMedia> value)
Generated method - Setter of the
Media.derivedMedias attribute. |
void |
setDerivedMedias(SessionContext ctx,
Collection<DerivedMedia> value)
Generated method - Setter of the
Media.derivedMedias attribute. |
void |
setDescription(SessionContext ctx,
String value)
Generated method - Setter of the
Media.description attribute. |
void |
setDescription(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,
String value)
Generated method - Setter of the
Media.internalURL attribute. |
void |
setInternalURL(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(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,
Boolean value)
Generated method - Setter of the
Media.removable attribute. |
void |
setSubFolderPath(SessionContext ctx,
String value)
Generated method - Setter of the
Media.subFolderPath attribute. |
void |
setSubFolderPath(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, 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, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, 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, writeReplacegetImplementation, setTenantpublic static final String CODE
Media.code attributepublic static final String INTERNALURL
Media.internalURL attributepublic static final String DESCRIPTION
Media.description attributepublic static final String ALTTEXT
Media.altText attributepublic static final String REMOVABLE
Media.removable attributepublic static final String MEDIAFORMAT
Media.mediaFormat attributepublic static final String FOLDER
Media.folder attributepublic static final String SUBFOLDERPATH
Media.subFolderPath attributepublic static final String MEDIACONTAINER
Media.mediaContainer attributepublic static final 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 Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedAbstractMediapublic String getAltText(SessionContext ctx)
Media.altText attribute.public String getAltText()
Media.altText attribute.public void setAltText(SessionContext ctx, String value)
Media.altText attribute.value - the altTextpublic void setAltText(String value)
Media.altText attribute.value - the altTextpublic String getCode(SessionContext ctx)
Media.code attribute.public String getCode()
Media.code attribute.public void setCode(SessionContext ctx, String value)
Media.code attribute.value - the code - Code of mediapublic void setCode(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 Collection<DerivedMedia> getDerivedMedias(SessionContext ctx)
Media.derivedMedias attribute.public Collection<DerivedMedia> getDerivedMedias()
Media.derivedMedias attribute.public void setDerivedMedias(SessionContext ctx, Collection<DerivedMedia> value)
Media.derivedMedias attribute.value - the derivedMediaspublic void setDerivedMedias(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 String getDescription(SessionContext ctx)
Media.description attribute.public String getDescription()
Media.description attribute.public void setDescription(SessionContext ctx, String value)
Media.description attribute.value - the descriptionpublic void setDescription(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 String getInternalURL(SessionContext ctx)
Media.internalURL attribute.public String getInternalURL()
Media.internalURL attribute.public void setInternalURL(SessionContext ctx, String value)
Media.internalURL attribute.value - the internalURLpublic void setInternalURL(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 Boolean isRemovable(SessionContext ctx)
Media.removable attribute.public Boolean isRemovable()
Media.removable attribute.public boolean isRemovableAsPrimitive(SessionContext ctx)
Media.removable attribute.public boolean isRemovableAsPrimitive()
Media.removable attribute.public void setRemovable(SessionContext ctx, Boolean value)
Media.removable attribute.value - the removablepublic void setRemovable(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 String getSubFolderPath(SessionContext ctx)
Media.subFolderPath attribute.public String getSubFolderPath()
Media.subFolderPath attribute.public void setSubFolderPath(SessionContext ctx, String value)
Media.subFolderPath attribute.value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.public void setSubFolderPath(String value)
Media.subFolderPath attribute.value - the subFolderPath - Generated location (by one of Storage Strategies) to media within storage.Copyright © 2017 SAP SE. All Rights Reserved.