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 String |
ACTIVE
Qualifier of the
AbstractConstraint.active attribute |
static String |
ANNOTATION
Qualifier of the
AbstractConstraint.annotation attribute |
protected static String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
|
protected static String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
Relation ordering override parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
|
protected static String |
CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED |
static String |
CONSTRAINTGROUPS
Qualifier of the
AbstractConstraint.constraintGroups attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
DEFAULTMESSAGE
Qualifier of the
AbstractConstraint.defaultMessage attribute |
static String |
ID
Qualifier of the
AbstractConstraint.id attribute |
static String |
MESSAGE
Qualifier of the
AbstractConstraint.message attribute |
static String |
SEVERITY
Qualifier of the
AbstractConstraint.severity attribute |
static String |
TARGET
Qualifier of the
AbstractConstraint.target attribute |
static 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.
|
Map<Language,String> |
getAllDefaultMessage()
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
abstract Map<Language,String> |
getAllDefaultMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
Map<Language,String> |
getAllMessage()
Generated method - Getter of the
AbstractConstraint.message attribute. |
Map<Language,String> |
getAllMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.message attribute. |
Class |
getAnnotation()
Generated method - Getter of the
AbstractConstraint.annotation attribute. |
Class |
getAnnotation(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.annotation attribute. |
Set<ConstraintGroup> |
getConstraintGroups()
Generated method - Getter of the
AbstractConstraint.constraintGroups attribute. |
Set<ConstraintGroup> |
getConstraintGroups(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.constraintGroups attribute. |
long |
getConstraintGroupsCount() |
long |
getConstraintGroupsCount(SessionContext ctx) |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
String |
getDefaultMessage()
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
abstract String |
getDefaultMessage(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.defaultMessage attribute. |
String |
getId()
Generated method - Getter of the
AbstractConstraint.id attribute. |
String |
getId(SessionContext ctx)
Generated method - Getter of the
AbstractConstraint.id attribute. |
String |
getMessage()
Generated method - Getter of the
AbstractConstraint.message attribute. |
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. |
Class |
getTarget()
Generated method - Getter of the
AbstractConstraint.target attribute. |
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. |
Boolean |
isActive()
Generated method - Getter of the
AbstractConstraint.active attribute. |
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. |
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(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,
Boolean value)
Generated method - Setter of the
AbstractConstraint.active attribute. |
void |
setAllMessage(Map<Language,String> value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setAllMessage(SessionContext ctx,
Map<Language,String> value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setAnnotation(Class value)
Generated method - Setter of the
AbstractConstraint.annotation attribute. |
void |
setAnnotation(SessionContext ctx,
Class value)
Generated method - Setter of the
AbstractConstraint.annotation attribute. |
void |
setConstraintGroups(SessionContext ctx,
Set<ConstraintGroup> value)
Generated method - Setter of the
AbstractConstraint.constraintGroups attribute. |
void |
setConstraintGroups(Set<ConstraintGroup> value)
Generated method - Setter of the
AbstractConstraint.constraintGroups attribute. |
void |
setId(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractConstraint.id attribute. |
void |
setId(String value)
Generated method - Setter of the
AbstractConstraint.id attribute. |
void |
setMessage(SessionContext ctx,
String value)
Generated method - Setter of the
AbstractConstraint.message attribute. |
void |
setMessage(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(Class value)
Generated method - Setter of the
AbstractConstraint.target attribute. |
void |
setTarget(SessionContext ctx,
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, 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
AbstractConstraint.id attributepublic static final String ACTIVE
AbstractConstraint.active attributepublic static final String ANNOTATION
AbstractConstraint.annotation attributepublic static final String SEVERITY
AbstractConstraint.severity attributepublic static final String DEFAULTMESSAGE
AbstractConstraint.defaultMessage attributepublic static final String MESSAGE
AbstractConstraint.message attributepublic static final String TARGET
AbstractConstraint.target attributepublic static final String TYPE
AbstractConstraint.type attributepublic static final String CONSTRAINTGROUPS
AbstractConstraint.constraintGroups attributeprotected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
protected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED
protected static String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
protected static final BidirectionalOneToManyHandler<GeneratedAbstractConstraint> TYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n TYPE'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 Itempublic Boolean isActive(SessionContext ctx)
AbstractConstraint.active attribute.public Boolean isActive()
AbstractConstraint.active attribute.public boolean isActiveAsPrimitive(SessionContext ctx)
AbstractConstraint.active attribute.public boolean isActiveAsPrimitive()
AbstractConstraint.active attribute.public 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 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 Class getAnnotation(SessionContext ctx)
AbstractConstraint.annotation attribute.public Class getAnnotation()
AbstractConstraint.annotation attribute.public void setAnnotation(SessionContext ctx, Class value)
AbstractConstraint.annotation attribute.value - the annotation - Full class name literal for a corresponding annotationpublic void setAnnotation(Class value)
AbstractConstraint.annotation attribute.value - the annotation - Full class name literal for a corresponding annotationpublic Set<ConstraintGroup> getConstraintGroups(SessionContext ctx)
AbstractConstraint.constraintGroups attribute.public Set<ConstraintGroup> getConstraintGroups()
AbstractConstraint.constraintGroups attribute.public long getConstraintGroupsCount(SessionContext ctx)
public long getConstraintGroupsCount()
public void setConstraintGroups(SessionContext ctx, Set<ConstraintGroup> value)
AbstractConstraint.constraintGroups attribute.value - the constraintGroupspublic void setConstraintGroups(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 String getDefaultMessage(SessionContext ctx)
AbstractConstraint.defaultMessage attribute.public String getDefaultMessage()
AbstractConstraint.defaultMessage attribute.public abstract Map<Language,String> getAllDefaultMessage(SessionContext ctx)
AbstractConstraint.defaultMessage attribute.public Map<Language,String> getAllDefaultMessage()
AbstractConstraint.defaultMessage attribute.public String getId(SessionContext ctx)
AbstractConstraint.id attribute.public String getId()
AbstractConstraint.id attribute.public void setId(SessionContext ctx, String value)
AbstractConstraint.id attribute.value - the id - Constraint identifierpublic void setId(String value)
AbstractConstraint.id attribute.value - the id - Constraint identifierpublic String getMessage(SessionContext ctx)
AbstractConstraint.message attribute.public String getMessage()
AbstractConstraint.message attribute.public Map<Language,String> getAllMessage(SessionContext ctx)
AbstractConstraint.message attribute.public Map<Language,String> getAllMessage()
AbstractConstraint.message attribute.public void setMessage(SessionContext ctx, String value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setMessage(String value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setAllMessage(SessionContext ctx, Map<Language,String> value)
AbstractConstraint.message attribute.value - the message - Localized error messagepublic void setAllMessage(Map<Language,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 Class getTarget(SessionContext ctx)
AbstractConstraint.target attribute.public Class getTarget()
AbstractConstraint.target attribute.public void setTarget(SessionContext ctx, Class value)
AbstractConstraint.target attribute.value - the target - Target class for covered with validation logicpublic void setTarget(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 © 2017 SAP SE. All Rights Reserved.