public abstract class GeneratedAbstractConstraint extends GenericItem
AbstractConstraint.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 |
ACTIVE
Qualifier of the
AbstractConstraint.active attribute |
static java.lang.String |
ANNOTATION
Qualifier of the
AbstractConstraint.annotation attribute |
protected static java.lang.String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
|
protected static java.lang.String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
Relation ordering override parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
|
protected static java.lang.String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED |
static java.lang.String |
CONSTRAINTGROUPS
Qualifier of the
AbstractConstraint.constraintGroups attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
DEFAULTMESSAGE
Qualifier of the
AbstractConstraint.defaultMessage attribute |
static java.lang.String |
ID
Qualifier of the
AbstractConstraint.id attribute |
static java.lang.String |
MESSAGE
Qualifier of the
AbstractConstraint.message attribute |
static java.lang.String |
SEVERITY
Qualifier of the
AbstractConstraint.severity attribute |
static java.lang.String |
TARGET
Qualifier of the
AbstractConstraint.target attribute |
static java.lang.String |
TYPE
Qualifier of the
AbstractConstraint.type attribute |
protected static BidirectionalOneToManyHandler<GeneratedAbstractConstraint> |
TYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n TYPE's relation attributes from 'one' side. |
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, staticTransientObjectsimpl, tenant| Constructor and Description |
|---|
GeneratedAbstractConstraint() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToConstraintGroups(ConstraintGroup value)
Generated method - Adds
value to constraintGroups. |
void |
addToConstraintGroups(SessionContext ctx,
ConstraintGroup value)
Generated method - Adds
value to constraintGroups. |
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> |
getAllDefaultMessage()
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
abstract java.util.Map<Language,java.lang.String> |
getAllDefaultMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
java.util.Map<Language,java.lang.String> |
getAllMessage()
Generated method - Getter of the
AbstractConstraint.message attribute. |
java.util.Map<Language,java.lang.String> |
getAllMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.message attribute. |
java.lang.Class |
getAnnotation()
Generated method - Getter of the
AbstractConstraint.annotation attribute. |
java.lang.Class |
getAnnotation(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.annotation attribute. |
java.util.Set<ConstraintGroup> |
getConstraintGroups()
Generated method - Getter of the
AbstractConstraint.constraintGroups attribute. |
java.util.Set<ConstraintGroup> |
getConstraintGroups(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.constraintGroups attribute. |
long |
getConstraintGroupsCount() |
long |
getConstraintGroupsCount(SessionContext ctx) |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.String |
getDefaultMessage()
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
abstract java.lang.String |
getDefaultMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
java.lang.String |
getId()
Generated method - Getter of the
AbstractConstraint.id attribute. |
java.lang.String |
getId(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.id attribute. |
java.lang.String |
getMessage()
Generated method - Getter of the
AbstractConstraint.message attribute. |
java.lang.String |
getMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.message attribute. |
EnumerationValue |
getSeverity()
Generated method - Getter of the
AbstractConstraint.severity attribute. |
EnumerationValue |
getSeverity(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.severity attribute. |
java.lang.Class |
getTarget()
Generated method - Getter of the
AbstractConstraint.target attribute. |
java.lang.Class |
getTarget(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.target attribute. |
ComposedType |
getType()
Generated method - Getter of the
AbstractConstraint.type attribute. |
ComposedType |
getType(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.type attribute. |
java.lang.Boolean |
isActive()
Generated method - Getter of the
AbstractConstraint.active attribute. |
java.lang.Boolean |
isActive(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.active attribute. |
boolean |
isActiveAsPrimitive()
Generated method - Getter of the
AbstractConstraint.active attribute. |
boolean |
isActiveAsPrimitive(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.active attribute. |
boolean |
isMarkModifiedDisabled(Item referencedItem) |
void |
removeFromConstraintGroups(ConstraintGroup value)
Generated method - Removes
value from constraintGroups. |
void |
removeFromConstraintGroups(SessionContext ctx,
ConstraintGroup value)
Generated method - Removes
value from constraintGroups. |
void |
setActive(boolean value)
Generated method - Setter of the
AbstractConstraint.active attribute. |
void |
setActive(java.lang.Boolean value)
Generated method - Setter of the
AbstractConstraint.active attribute. |
void |
setActive(SessionContext ctx,
boolean value)
Generated method - Setter of the
AbstractConstraint.active attribute. |
void |
setActive(SessionContext ctx,
java.lang.Boolean value)
Generated method - Setter of the
AbstractConstraint.active attribute. |
void |
setAllMessage(java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setAllMessage(SessionContext ctx,
java.util.Map<Language,java.lang.String> value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setAnnotation(java.lang.Class value)
Generated method - Setter of the
AbstractConstraint.annotation attribute. |
void |
setAnnotation(SessionContext ctx,
java.lang.Class value)
Generated method - Setter of the
AbstractConstraint.annotation attribute. |
void |
setConstraintGroups(SessionContext ctx,
java.util.Set<ConstraintGroup> value)
Generated method - Setter of the
AbstractConstraint.constraintGroups attribute. |
void |
setConstraintGroups(java.util.Set<ConstraintGroup> value)
Generated method - Setter of the
AbstractConstraint.constraintGroups attribute. |
void |
setId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractConstraint.id attribute. |
void |
setId(java.lang.String value)
Generated method - Setter of the
AbstractConstraint.id attribute. |
void |
setMessage(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setMessage(java.lang.String value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setSeverity(EnumerationValue value)
Generated method - Setter of the
AbstractConstraint.severity attribute. |
void |
setSeverity(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
AbstractConstraint.severity attribute. |
void |
setTarget(java.lang.Class value)
Generated method - Setter of the
AbstractConstraint.target attribute. |
void |
setTarget(SessionContext ctx,
java.lang.Class value)
Generated method - Setter of the
AbstractConstraint.target attribute. |
void |
setType(ComposedType value)
Generated method - Setter of the
AbstractConstraint.type attribute. |
void |
setType(SessionContext ctx,
ComposedType value)
Generated method - Setter of the
AbstractConstraint.type 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 ID
AbstractConstraint.id attributepublic static final java.lang.String ACTIVE
AbstractConstraint.active attributepublic static final java.lang.String ANNOTATION
AbstractConstraint.annotation attributepublic static final java.lang.String SEVERITY
AbstractConstraint.severity attributepublic static final java.lang.String DEFAULTMESSAGE
AbstractConstraint.defaultMessage attributepublic static final java.lang.String MESSAGE
AbstractConstraint.message attributepublic static final java.lang.String TARGET
AbstractConstraint.target attributepublic static final java.lang.String TYPE
AbstractConstraint.type attributepublic static final java.lang.String CONSTRAINTGROUPS
AbstractConstraint.constraintGroups attributeprotected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
protected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED
protected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
protected static final BidirectionalOneToManyHandler<GeneratedAbstractConstraint> TYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n TYPE's relation attributes from 'one' 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 Itempublic java.lang.Boolean isActive(SessionContext ctx)
AbstractConstraint.active attribute.public java.lang.Boolean isActive()
AbstractConstraint.active attribute.public boolean isActiveAsPrimitive(SessionContext ctx)
AbstractConstraint.active attribute.public boolean isActiveAsPrimitive()
AbstractConstraint.active attribute.public void setActive(SessionContext ctx, java.lang.Boolean value)
AbstractConstraint.active attribute.value - the active - Enabled flag for a constraintpublic void setActive(java.lang.Boolean value)
AbstractConstraint.active attribute.value - the active - Enabled flag for a constraintpublic void setActive(SessionContext ctx, boolean value)
AbstractConstraint.active attribute.value - the active - Enabled flag for a constraintpublic void setActive(boolean value)
AbstractConstraint.active attribute.value - the active - Enabled flag for a constraintpublic java.lang.Class getAnnotation(SessionContext ctx)
AbstractConstraint.annotation attribute.public java.lang.Class getAnnotation()
AbstractConstraint.annotation attribute.public void setAnnotation(SessionContext ctx, java.lang.Class value)
AbstractConstraint.annotation attribute.value - the annotation - Full class name literal for a corresponding annotationpublic void setAnnotation(java.lang.Class value)
AbstractConstraint.annotation attribute.value - the annotation - Full class name literal for a corresponding annotationpublic java.util.Set<ConstraintGroup> getConstraintGroups(SessionContext ctx)
AbstractConstraint.constraintGroups attribute.public java.util.Set<ConstraintGroup> getConstraintGroups()
AbstractConstraint.constraintGroups attribute.public long getConstraintGroupsCount(SessionContext ctx)
public long getConstraintGroupsCount()
public void setConstraintGroups(SessionContext ctx, java.util.Set<ConstraintGroup> value)
AbstractConstraint.constraintGroups attribute.value - the constraintGroupspublic void setConstraintGroups(java.util.Set<ConstraintGroup> value)
AbstractConstraint.constraintGroups attribute.value - the constraintGroupspublic void addToConstraintGroups(SessionContext ctx, ConstraintGroup value)
value to constraintGroups.value - the item to add to constraintGroupspublic void addToConstraintGroups(ConstraintGroup value)
value to constraintGroups.value - the item to add to constraintGroupspublic void removeFromConstraintGroups(SessionContext ctx, ConstraintGroup value)
value from constraintGroups.value - the item to remove from constraintGroupspublic void removeFromConstraintGroups(ConstraintGroup value)
value from constraintGroups.value - the item to remove from constraintGroupsprotected 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 abstract java.lang.String getDefaultMessage(SessionContext ctx)
AbstractConstraint.defaultMessage attribute.public java.lang.String getDefaultMessage()
AbstractConstraint.defaultMessage attribute.public abstract java.util.Map<Language,java.lang.String> getAllDefaultMessage(SessionContext ctx)
AbstractConstraint.defaultMessage attribute.public java.util.Map<Language,java.lang.String> getAllDefaultMessage()
AbstractConstraint.defaultMessage attribute.public java.lang.String getId(SessionContext ctx)
AbstractConstraint.id attribute.public java.lang.String getId()
AbstractConstraint.id attribute.public void setId(SessionContext ctx, java.lang.String value)
AbstractConstraint.id attribute.value - the id - Constraint identifierpublic void setId(java.lang.String value)
AbstractConstraint.id attribute.value - the id - Constraint identifierpublic boolean isMarkModifiedDisabled(Item referencedItem)
isMarkModifiedDisabled in class Itempublic java.lang.String getMessage(SessionContext ctx)
AbstractConstraint.message attribute.public java.lang.String getMessage()
AbstractConstraint.message attribute.public java.util.Map<Language,java.lang.String> getAllMessage(SessionContext ctx)
AbstractConstraint.message attribute.public java.util.Map<Language,java.lang.String> getAllMessage()
AbstractConstraint.message attribute.public void setMessage(SessionContext ctx, java.lang.String value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setMessage(java.lang.String value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setAllMessage(SessionContext ctx, java.util.Map<Language,java.lang.String> value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setAllMessage(java.util.Map<Language,java.lang.String> value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic EnumerationValue getSeverity(SessionContext ctx)
AbstractConstraint.severity attribute.public EnumerationValue getSeverity()
AbstractConstraint.severity attribute.public void setSeverity(SessionContext ctx, EnumerationValue value)
AbstractConstraint.severity attribute.value - the severity - Severity levelpublic void setSeverity(EnumerationValue value)
AbstractConstraint.severity attribute.value - the severity - Severity levelpublic java.lang.Class getTarget(SessionContext ctx)
AbstractConstraint.target attribute.public java.lang.Class getTarget()
AbstractConstraint.target attribute.public void setTarget(SessionContext ctx, java.lang.Class value)
AbstractConstraint.target attribute.value - the target - Target class for covered with validation logicpublic void setTarget(java.lang.Class value)
AbstractConstraint.target attribute.value - the target - Target class for covered with validation logicpublic ComposedType getType(SessionContext ctx)
AbstractConstraint.type attribute.public ComposedType getType()
AbstractConstraint.type attribute.public void setType(SessionContext ctx, ComposedType value)
AbstractConstraint.type attribute.value - the typepublic void setType(ComposedType value)
AbstractConstraint.type attribute.value - the typeCopyright © 2018 SAP SE. All Rights Reserved.