public abstract class GeneratedPublicationComponent extends GenericItem
PublicationComponent.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 |
|---|---|
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
ID
Qualifier of the
PublicationComponent.id attribute |
protected static String |
PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for Principal2ReadablePublicationComponentRelation from ((print))
|
protected static String |
PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED
Relation ordering override parameter constants for Principal2ReadablePublicationComponentRelation from ((print))
|
protected static String |
PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED |
protected static String |
PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for Principal2WriteablePublicationComponentRelation from ((print))
|
protected static String |
PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED
Relation ordering override parameter constants for Principal2WriteablePublicationComponentRelation from ((print))
|
protected static String |
PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED |
static String |
PUBLICATION
Qualifier of the
PublicationComponent.publication attribute |
protected static BidirectionalOneToManyHandler<GeneratedPublicationComponent> |
PUBLICATIONHANDLER
BidirectionalOneToManyHandler for handling 1:n PUBLICATION's relation attributes from 'one' side. |
static String |
PUBLICATIONPOS
Qualifier of the
PublicationComponent.publicationPOS attribute |
static String |
READPRINCIPALS
Qualifier of the
PublicationComponent.readPrincipals attribute |
static String |
WRITEPRINCIPALS
Qualifier of the
PublicationComponent.writePrincipals attribute |
LANGUAGE_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 |
|---|
GeneratedPublicationComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToReadPrincipals(Principal value)
Generated method - Adds
value to readPrincipals. |
void |
addToReadPrincipals(SessionContext ctx,
Principal value)
Generated method - Adds
value to readPrincipals. |
void |
addToWritePrincipals(Principal value)
Generated method - Adds
value to writePrincipals. |
void |
addToWritePrincipals(SessionContext ctx,
Principal value)
Generated method - Adds
value to writePrincipals. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getId()
Generated method - Getter of the
PublicationComponent.id attribute. |
String |
getId(SessionContext ctx)
Generated method - Getter of the
PublicationComponent.id attribute. |
Publication |
getPublication()
Generated method - Getter of the
PublicationComponent.publication attribute. |
Publication |
getPublication(SessionContext ctx)
Generated method - Getter of the
PublicationComponent.publication attribute. |
List<Principal> |
getReadPrincipals()
Generated method - Getter of the
PublicationComponent.readPrincipals attribute. |
List<Principal> |
getReadPrincipals(SessionContext ctx)
Generated method - Getter of the
PublicationComponent.readPrincipals attribute. |
long |
getReadPrincipalsCount() |
long |
getReadPrincipalsCount(SessionContext ctx) |
List<Principal> |
getWritePrincipals()
Generated method - Getter of the
PublicationComponent.writePrincipals attribute. |
List<Principal> |
getWritePrincipals(SessionContext ctx)
Generated method - Getter of the
PublicationComponent.writePrincipals attribute. |
long |
getWritePrincipalsCount() |
long |
getWritePrincipalsCount(SessionContext ctx) |
void |
removeFromReadPrincipals(Principal value)
Generated method - Removes
value from readPrincipals. |
void |
removeFromReadPrincipals(SessionContext ctx,
Principal value)
Generated method - Removes
value from readPrincipals. |
void |
removeFromWritePrincipals(Principal value)
Generated method - Removes
value from writePrincipals. |
void |
removeFromWritePrincipals(SessionContext ctx,
Principal value)
Generated method - Removes
value from writePrincipals. |
void |
setId(SessionContext ctx,
String value)
Generated method - Setter of the
PublicationComponent.id attribute. |
void |
setId(String value)
Generated method - Setter of the
PublicationComponent.id attribute. |
void |
setPublication(Publication value)
Generated method - Setter of the
PublicationComponent.publication attribute. |
void |
setPublication(SessionContext ctx,
Publication value)
Generated method - Setter of the
PublicationComponent.publication attribute. |
void |
setReadPrincipals(List<Principal> value)
Generated method - Setter of the
PublicationComponent.readPrincipals attribute. |
void |
setReadPrincipals(SessionContext ctx,
List<Principal> value)
Generated method - Setter of the
PublicationComponent.readPrincipals attribute. |
void |
setWritePrincipals(List<Principal> value)
Generated method - Setter of the
PublicationComponent.writePrincipals attribute. |
void |
setWritePrincipals(SessionContext ctx,
List<Principal> value)
Generated method - Setter of the
PublicationComponent.writePrincipals attribute. |
getInitialProperties, 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 ID
PublicationComponent.id attributepublic static final String PUBLICATIONPOS
PublicationComponent.publicationPOS attributepublic static final String PUBLICATION
PublicationComponent.publication attributepublic static final String WRITEPRINCIPALS
PublicationComponent.writePrincipals attributeprotected static String PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED
protected static String PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED
protected static String PRINCIPAL2WRITEABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED
public static final String READPRINCIPALS
PublicationComponent.readPrincipals attributeprotected static String PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_SRC_ORDERED
protected static String PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_TGT_ORDERED
protected static String PRINCIPAL2READABLEPUBLICATIONCOMPONENTRELATION_MARKMODIFIED
protected static final BidirectionalOneToManyHandler<GeneratedPublicationComponent> PUBLICATIONHANDLER
BidirectionalOneToManyHandler for handling 1:n PUBLICATION's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itemprotected 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 String getId(SessionContext ctx)
PublicationComponent.id attribute.public String getId()
PublicationComponent.id attribute.public void setId(SessionContext ctx, String value)
PublicationComponent.id attribute.value - the idpublic void setId(String value)
PublicationComponent.id attribute.value - the idpublic Publication getPublication(SessionContext ctx)
PublicationComponent.publication attribute.public Publication getPublication()
PublicationComponent.publication attribute.public void setPublication(SessionContext ctx, Publication value)
PublicationComponent.publication attribute.value - the publicationpublic void setPublication(Publication value)
PublicationComponent.publication attribute.value - the publicationpublic List<Principal> getReadPrincipals(SessionContext ctx)
PublicationComponent.readPrincipals attribute.public List<Principal> getReadPrincipals()
PublicationComponent.readPrincipals attribute.public long getReadPrincipalsCount(SessionContext ctx)
public long getReadPrincipalsCount()
public void setReadPrincipals(SessionContext ctx, List<Principal> value)
PublicationComponent.readPrincipals attribute.value - the readPrincipalspublic void setReadPrincipals(List<Principal> value)
PublicationComponent.readPrincipals attribute.value - the readPrincipalspublic void addToReadPrincipals(SessionContext ctx, Principal value)
value to readPrincipals.value - the item to add to readPrincipalspublic void addToReadPrincipals(Principal value)
value to readPrincipals.value - the item to add to readPrincipalspublic void removeFromReadPrincipals(SessionContext ctx, Principal value)
value from readPrincipals.value - the item to remove from readPrincipalspublic void removeFromReadPrincipals(Principal value)
value from readPrincipals.value - the item to remove from readPrincipalspublic List<Principal> getWritePrincipals(SessionContext ctx)
PublicationComponent.writePrincipals attribute.public List<Principal> getWritePrincipals()
PublicationComponent.writePrincipals attribute.public long getWritePrincipalsCount(SessionContext ctx)
public long getWritePrincipalsCount()
public void setWritePrincipals(SessionContext ctx, List<Principal> value)
PublicationComponent.writePrincipals attribute.value - the writePrincipalspublic void setWritePrincipals(List<Principal> value)
PublicationComponent.writePrincipals attribute.value - the writePrincipalspublic void addToWritePrincipals(SessionContext ctx, Principal value)
value to writePrincipals.value - the item to add to writePrincipalspublic void addToWritePrincipals(Principal value)
value to writePrincipals.value - the item to add to writePrincipalspublic void removeFromWritePrincipals(SessionContext ctx, Principal value)
value from writePrincipals.value - the item to remove from writePrincipalspublic void removeFromWritePrincipals(Principal value)
value from writePrincipals.value - the item to remove from writePrincipalsCopyright © 2017 SAP SE. All Rights Reserved.