public abstract class GeneratedCockpitObjectAbstractCollection extends GenericItem
CockpitObjectAbstractCollection.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 java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DESCRIPTION
Qualifier of the
CockpitObjectAbstractCollection.description attribute |
static java.lang.String |
ELEMENTS
Qualifier of the
CockpitObjectAbstractCollection.elements attribute |
protected static OneToManyHandler<ObjectCollectionElement> |
ELEMENTSHANDLER
OneToManyHandler for handling 1:n ELEMENTS's relation attributes from 'many' side. |
static java.lang.String |
LABEL
Qualifier of the
CockpitObjectAbstractCollection.label attribute |
static java.lang.String |
QUALIFIER
Qualifier of the
CockpitObjectAbstractCollection.qualifier attribute |
protected static java.lang.String |
READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for ReadPrincipal2CockpitObjectAbstractCollectionRelation from ((cockpit))
|
protected static java.lang.String |
READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_SRC_ORDERED
Relation ordering override parameter constants for ReadPrincipal2CockpitObjectAbstractCollectionRelation from ((cockpit))
|
protected static java.lang.String |
READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_TGT_ORDERED |
static java.lang.String |
READPRINCIPALS
Qualifier of the
CockpitObjectAbstractCollection.readPrincipals attribute |
static java.lang.String |
USER
Qualifier of the
CockpitObjectAbstractCollection.user attribute |
protected static BidirectionalOneToManyHandler<GeneratedCockpitObjectAbstractCollection> |
USERHANDLER
BidirectionalOneToManyHandler for handling 1:n USER's relation attributes from 'one' side. |
protected static java.lang.String |
WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for WritePrincipal2CockpitObjectAbstractCollectionRelation from ((cockpit))
|
protected static java.lang.String |
WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_SRC_ORDERED
Relation ordering override parameter constants for WritePrincipal2CockpitObjectAbstractCollectionRelation from ((cockpit))
|
protected static java.lang.String |
WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_TGT_ORDERED |
static java.lang.String |
WRITEPRINCIPALS
Qualifier of the
CockpitObjectAbstractCollection.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 |
|---|
GeneratedCockpitObjectAbstractCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToElements(ObjectCollectionElement value)
Generated method - Adds
value to elements. |
void |
addToElements(SessionContext ctx,
ObjectCollectionElement value)
Generated method - Adds
value to elements. |
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.
|
java.util.Map<Language,java.lang.String> |
getAllDescription()
Generated method - Getter of the
CockpitObjectAbstractCollection.description attribute. |
java.util.Map<Language,java.lang.String> |
getAllDescription(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.description attribute. |
java.util.Map<Language,java.lang.String> |
getAllLabel()
Generated method - Getter of the
CockpitObjectAbstractCollection.label attribute. |
java.util.Map<Language,java.lang.String> |
getAllLabel(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.label attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getDescription()
Generated method - Getter of the
CockpitObjectAbstractCollection.description attribute. |
java.lang.String |
getDescription(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.description attribute. |
java.util.List<ObjectCollectionElement> |
getElements()
Generated method - Getter of the
CockpitObjectAbstractCollection.elements attribute. |
java.util.List<ObjectCollectionElement> |
getElements(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.elements attribute. |
java.lang.String |
getLabel()
Generated method - Getter of the
CockpitObjectAbstractCollection.label attribute. |
java.lang.String |
getLabel(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.label attribute. |
java.lang.String |
getQualifier()
Generated method - Getter of the
CockpitObjectAbstractCollection.qualifier attribute. |
java.lang.String |
getQualifier(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.qualifier attribute. |
java.util.Collection<Principal> |
getReadPrincipals()
Generated method - Getter of the
CockpitObjectAbstractCollection.readPrincipals attribute. |
java.util.Collection<Principal> |
getReadPrincipals(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.readPrincipals attribute. |
long |
getReadPrincipalsCount() |
long |
getReadPrincipalsCount(SessionContext ctx) |
User |
getUser()
Generated method - Getter of the
CockpitObjectAbstractCollection.user attribute. |
User |
getUser(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.user attribute. |
java.util.Collection<Principal> |
getWritePrincipals()
Generated method - Getter of the
CockpitObjectAbstractCollection.writePrincipals attribute. |
java.util.Collection<Principal> |
getWritePrincipals(SessionContext ctx)
Generated method - Getter of the
CockpitObjectAbstractCollection.writePrincipals attribute. |
long |
getWritePrincipalsCount() |
long |
getWritePrincipalsCount(SessionContext ctx) |
boolean |
isMarkModifiedDisabled(Item referencedItem) |
void |
removeFromElements(ObjectCollectionElement value)
Generated method - Removes
value from elements. |
void |
removeFromElements(SessionContext ctx,
ObjectCollectionElement value)
Generated method - Removes
value from elements. |
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 |
setAllDescription(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.description attribute. |
void |
setAllDescription(SessionContext ctx,
java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.description attribute. |
void |
setAllLabel(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.label attribute. |
void |
setAllLabel(SessionContext ctx,
java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.label attribute. |
void |
setDescription(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.description attribute. |
void |
setDescription(java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.description attribute. |
void |
setElements(java.util.List<ObjectCollectionElement> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.elements attribute. |
void |
setElements(SessionContext ctx,
java.util.List<ObjectCollectionElement> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.elements attribute. |
void |
setLabel(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.label attribute. |
void |
setLabel(java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.label attribute. |
void |
setQualifier(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.qualifier attribute. |
void |
setQualifier(java.lang.String value)
Generated method - Setter of the
CockpitObjectAbstractCollection.qualifier attribute. |
void |
setReadPrincipals(java.util.Collection<Principal> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.readPrincipals attribute. |
void |
setReadPrincipals(SessionContext ctx,
java.util.Collection<Principal> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.readPrincipals attribute. |
void |
setUser(SessionContext ctx,
User value)
Generated method - Setter of the
CockpitObjectAbstractCollection.user attribute. |
void |
setUser(User value)
Generated method - Setter of the
CockpitObjectAbstractCollection.user attribute. |
void |
setWritePrincipals(java.util.Collection<Principal> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.writePrincipals attribute. |
void |
setWritePrincipals(SessionContext ctx,
java.util.Collection<Principal> value)
Generated method - Setter of the
CockpitObjectAbstractCollection.writePrincipals attribute. |
getInitialProperties, 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, 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 QUALIFIER
CockpitObjectAbstractCollection.qualifier attributepublic static final java.lang.String LABEL
CockpitObjectAbstractCollection.label attributepublic static final java.lang.String DESCRIPTION
CockpitObjectAbstractCollection.description attributepublic static final java.lang.String USER
CockpitObjectAbstractCollection.user attributepublic static final java.lang.String READPRINCIPALS
CockpitObjectAbstractCollection.readPrincipals attributeprotected static java.lang.String READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_SRC_ORDERED
protected static java.lang.String READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_TGT_ORDERED
protected static java.lang.String READPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_MARKMODIFIED
public static final java.lang.String WRITEPRINCIPALS
CockpitObjectAbstractCollection.writePrincipals attributeprotected static java.lang.String WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_SRC_ORDERED
protected static java.lang.String WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_TGT_ORDERED
protected static java.lang.String WRITEPRINCIPAL2COCKPITOBJECTABSTRACTCOLLECTIONRELATION_MARKMODIFIED
public static final java.lang.String ELEMENTS
CockpitObjectAbstractCollection.elements attributeprotected static final BidirectionalOneToManyHandler<GeneratedCockpitObjectAbstractCollection> USERHANDLER
BidirectionalOneToManyHandler for handling 1:n USER's relation attributes from 'one' side.protected static final OneToManyHandler<ObjectCollectionElement> ELEMENTSHANDLER
OneToManyHandler for handling 1:n ELEMENTS's relation attributes from 'many' side.protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
public GeneratedCockpitObjectAbstractCollection()
protected java.util.Map<java.lang.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 java.lang.String getDescription(SessionContext ctx)
CockpitObjectAbstractCollection.description attribute.public java.lang.String getDescription()
CockpitObjectAbstractCollection.description attribute.public java.util.Map<Language,java.lang.String> getAllDescription(SessionContext ctx)
CockpitObjectAbstractCollection.description attribute.public java.util.Map<Language,java.lang.String> getAllDescription()
CockpitObjectAbstractCollection.description attribute.public void setDescription(SessionContext ctx, java.lang.String value)
CockpitObjectAbstractCollection.description attribute.value - the descriptionpublic void setDescription(java.lang.String value)
CockpitObjectAbstractCollection.description attribute.value - the descriptionpublic void setAllDescription(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
CockpitObjectAbstractCollection.description attribute.value - the descriptionpublic void setAllDescription(java.util.Map<Language,java.lang.String> value)
CockpitObjectAbstractCollection.description attribute.value - the descriptionpublic java.util.List<ObjectCollectionElement> getElements(SessionContext ctx)
CockpitObjectAbstractCollection.elements attribute.public java.util.List<ObjectCollectionElement> getElements()
CockpitObjectAbstractCollection.elements attribute.public void setElements(SessionContext ctx, java.util.List<ObjectCollectionElement> value)
CockpitObjectAbstractCollection.elements attribute.value - the elementspublic void setElements(java.util.List<ObjectCollectionElement> value)
CockpitObjectAbstractCollection.elements attribute.value - the elementspublic void addToElements(SessionContext ctx, ObjectCollectionElement value)
value to elements.value - the item to add to elementspublic void addToElements(ObjectCollectionElement value)
value to elements.value - the item to add to elementspublic void removeFromElements(SessionContext ctx, ObjectCollectionElement value)
value from elements.value - the item to remove from elementspublic void removeFromElements(ObjectCollectionElement value)
value from elements.value - the item to remove from elementspublic boolean isMarkModifiedDisabled(Item referencedItem)
isMarkModifiedDisabled in class Itempublic java.lang.String getLabel(SessionContext ctx)
CockpitObjectAbstractCollection.label attribute.public java.lang.String getLabel()
CockpitObjectAbstractCollection.label attribute.public java.util.Map<Language,java.lang.String> getAllLabel(SessionContext ctx)
CockpitObjectAbstractCollection.label attribute.public java.util.Map<Language,java.lang.String> getAllLabel()
CockpitObjectAbstractCollection.label attribute.public void setLabel(SessionContext ctx, java.lang.String value)
CockpitObjectAbstractCollection.label attribute.value - the labelpublic void setLabel(java.lang.String value)
CockpitObjectAbstractCollection.label attribute.value - the labelpublic void setAllLabel(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
CockpitObjectAbstractCollection.label attribute.value - the labelpublic void setAllLabel(java.util.Map<Language,java.lang.String> value)
CockpitObjectAbstractCollection.label attribute.value - the labelpublic java.lang.String getQualifier(SessionContext ctx)
CockpitObjectAbstractCollection.qualifier attribute.public java.lang.String getQualifier()
CockpitObjectAbstractCollection.qualifier attribute.public void setQualifier(SessionContext ctx, java.lang.String value)
CockpitObjectAbstractCollection.qualifier attribute.value - the qualifierpublic void setQualifier(java.lang.String value)
CockpitObjectAbstractCollection.qualifier attribute.value - the qualifierpublic java.util.Collection<Principal> getReadPrincipals(SessionContext ctx)
CockpitObjectAbstractCollection.readPrincipals attribute.public java.util.Collection<Principal> getReadPrincipals()
CockpitObjectAbstractCollection.readPrincipals attribute.public long getReadPrincipalsCount(SessionContext ctx)
public long getReadPrincipalsCount()
public void setReadPrincipals(SessionContext ctx, java.util.Collection<Principal> value)
CockpitObjectAbstractCollection.readPrincipals attribute.value - the readPrincipalspublic void setReadPrincipals(java.util.Collection<Principal> value)
CockpitObjectAbstractCollection.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 User getUser(SessionContext ctx)
CockpitObjectAbstractCollection.user attribute.public User getUser()
CockpitObjectAbstractCollection.user attribute.public void setUser(SessionContext ctx, User value)
CockpitObjectAbstractCollection.user attribute.value - the userpublic void setUser(User value)
CockpitObjectAbstractCollection.user attribute.value - the userpublic java.util.Collection<Principal> getWritePrincipals(SessionContext ctx)
CockpitObjectAbstractCollection.writePrincipals attribute.public java.util.Collection<Principal> getWritePrincipals()
CockpitObjectAbstractCollection.writePrincipals attribute.public long getWritePrincipalsCount(SessionContext ctx)
public long getWritePrincipalsCount()
public void setWritePrincipals(SessionContext ctx, java.util.Collection<Principal> value)
CockpitObjectAbstractCollection.writePrincipals attribute.value - the writePrincipalspublic void setWritePrincipals(java.util.Collection<Principal> value)
CockpitObjectAbstractCollection.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 © 2018 SAP SE. All Rights Reserved.