Class GeneratedAbstractConstraint

    • Field Detail

      • ID

        public static final java.lang.String ID
        Qualifier of the AbstractConstraint.id attribute
        See Also:
        Constant Field Values
      • ACTIVE

        public static final java.lang.String ACTIVE
        Qualifier of the AbstractConstraint.active attribute
        See Also:
        Constant Field Values
      • ANNOTATION

        public static final java.lang.String ANNOTATION
        Qualifier of the AbstractConstraint.annotation attribute
        See Also:
        Constant Field Values
      • SEVERITY

        public static final java.lang.String SEVERITY
        Qualifier of the AbstractConstraint.severity attribute
        See Also:
        Constant Field Values
      • DEFAULTMESSAGE

        public static final java.lang.String DEFAULTMESSAGE
        Qualifier of the AbstractConstraint.defaultMessage attribute
        See Also:
        Constant Field Values
      • MESSAGE

        public static final java.lang.String MESSAGE
        Qualifier of the AbstractConstraint.message attribute
        See Also:
        Constant Field Values
      • TARGET

        public static final java.lang.String TARGET
        Qualifier of the AbstractConstraint.target attribute
        See Also:
        Constant Field Values
      • TYPE

        public static final java.lang.String TYPE
        Qualifier of the AbstractConstraint.type attribute
        See Also:
        Constant Field Values
      • CONSTRAINTGROUPS

        public static final java.lang.String CONSTRAINTGROUPS
        Qualifier of the AbstractConstraint.constraintGroups attribute
        See Also:
        Constant Field Values
      • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED

        protected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_SRC_ORDERED
        Relation ordering override parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
      • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED

        protected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_TGT_ORDERED
      • CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED

        protected static java.lang.String CONSTRAINTGROUP2ABSTRACTCONSTRAINTRELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for ConstraintGroup2AbstractConstraintRelation from ((validation))
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedAbstractConstraint

        public GeneratedAbstractConstraint()
    • Method Detail

      • isActive

        public java.lang.Boolean isActive​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.active attribute.
        Returns:
        the active - Enabled flag for a constraint
      • isActive

        public java.lang.Boolean isActive()
        Generated method - Getter of the AbstractConstraint.active attribute.
        Returns:
        the active - Enabled flag for a constraint
      • isActiveAsPrimitive

        public boolean isActiveAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.active attribute.
        Returns:
        the active - Enabled flag for a constraint
      • isActiveAsPrimitive

        public boolean isActiveAsPrimitive()
        Generated method - Getter of the AbstractConstraint.active attribute.
        Returns:
        the active - Enabled flag for a constraint
      • setActive

        public void setActive​(SessionContext ctx,
                              java.lang.Boolean value)
        Generated method - Setter of the AbstractConstraint.active attribute.
        Parameters:
        value - the active - Enabled flag for a constraint
      • setActive

        public void setActive​(java.lang.Boolean value)
        Generated method - Setter of the AbstractConstraint.active attribute.
        Parameters:
        value - the active - Enabled flag for a constraint
      • setActive

        public void setActive​(SessionContext ctx,
                              boolean value)
        Generated method - Setter of the AbstractConstraint.active attribute.
        Parameters:
        value - the active - Enabled flag for a constraint
      • setActive

        public void setActive​(boolean value)
        Generated method - Setter of the AbstractConstraint.active attribute.
        Parameters:
        value - the active - Enabled flag for a constraint
      • getAnnotation

        public java.lang.Class getAnnotation​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.annotation attribute.
        Returns:
        the annotation - Full class name literal for a corresponding annotation
      • getAnnotation

        public java.lang.Class getAnnotation()
        Generated method - Getter of the AbstractConstraint.annotation attribute.
        Returns:
        the annotation - Full class name literal for a corresponding annotation
      • setAnnotation

        public void setAnnotation​(SessionContext ctx,
                                  java.lang.Class value)
        Generated method - Setter of the AbstractConstraint.annotation attribute.
        Parameters:
        value - the annotation - Full class name literal for a corresponding annotation
      • setAnnotation

        public void setAnnotation​(java.lang.Class value)
        Generated method - Setter of the AbstractConstraint.annotation attribute.
        Parameters:
        value - the annotation - Full class name literal for a corresponding annotation
      • getConstraintGroups

        public java.util.Set<ConstraintGroup> getConstraintGroups​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.constraintGroups attribute.
        Returns:
        the constraintGroups
      • getConstraintGroups

        public java.util.Set<ConstraintGroup> getConstraintGroups()
        Generated method - Getter of the AbstractConstraint.constraintGroups attribute.
        Returns:
        the constraintGroups
      • getConstraintGroupsCount

        public long getConstraintGroupsCount​(SessionContext ctx)
      • getConstraintGroupsCount

        public long getConstraintGroupsCount()
      • setConstraintGroups

        public void setConstraintGroups​(SessionContext ctx,
                                        java.util.Set<ConstraintGroup> value)
        Generated method - Setter of the AbstractConstraint.constraintGroups attribute.
        Parameters:
        value - the constraintGroups
      • setConstraintGroups

        public void setConstraintGroups​(java.util.Set<ConstraintGroup> value)
        Generated method - Setter of the AbstractConstraint.constraintGroups attribute.
        Parameters:
        value - the constraintGroups
      • addToConstraintGroups

        public void addToConstraintGroups​(SessionContext ctx,
                                          ConstraintGroup value)
        Generated method - Adds value to constraintGroups.
        Parameters:
        value - the item to add to constraintGroups
      • addToConstraintGroups

        public void addToConstraintGroups​(ConstraintGroup value)
        Generated method - Adds value to constraintGroups.
        Parameters:
        value - the item to add to constraintGroups
      • removeFromConstraintGroups

        public void removeFromConstraintGroups​(SessionContext ctx,
                                               ConstraintGroup value)
        Generated method - Removes value from constraintGroups.
        Parameters:
        value - the item to remove from constraintGroups
      • removeFromConstraintGroups

        public void removeFromConstraintGroups​(ConstraintGroup value)
        Generated method - Removes value from constraintGroups.
        Parameters:
        value - the item to remove from constraintGroups
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.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; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - 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 )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getDefaultMessage

        public abstract java.lang.String getDefaultMessage​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
        Returns:
        the defaultMessage - Localized resource bundle evaluated error message
      • getDefaultMessage

        public java.lang.String getDefaultMessage()
        Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
        Returns:
        the defaultMessage - Localized resource bundle evaluated error message
      • getAllDefaultMessage

        public abstract java.util.Map<Language,​java.lang.String> getAllDefaultMessage​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
        Returns:
        the localized defaultMessage - Localized resource bundle evaluated error message
      • getAllDefaultMessage

        public java.util.Map<Language,​java.lang.String> getAllDefaultMessage()
        Generated method - Getter of the AbstractConstraint.defaultMessage attribute.
        Returns:
        the localized defaultMessage - Localized resource bundle evaluated error message
      • getId

        public java.lang.String getId​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.id attribute.
        Returns:
        the id - Constraint identifier
      • getId

        public java.lang.String getId()
        Generated method - Getter of the AbstractConstraint.id attribute.
        Returns:
        the id - Constraint identifier
      • setId

        public void setId​(SessionContext ctx,
                          java.lang.String value)
        Generated method - Setter of the AbstractConstraint.id attribute.
        Parameters:
        value - the id - Constraint identifier
      • setId

        public void setId​(java.lang.String value)
        Generated method - Setter of the AbstractConstraint.id attribute.
        Parameters:
        value - the id - Constraint identifier
      • getMessage

        public java.lang.String getMessage​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.message attribute.
        Returns:
        the message - Localized error message
      • getMessage

        public java.lang.String getMessage()
        Generated method - Getter of the AbstractConstraint.message attribute.
        Returns:
        the message - Localized error message
      • getAllMessage

        public java.util.Map<Language,​java.lang.String> getAllMessage​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.message attribute.
        Returns:
        the localized message - Localized error message
      • getAllMessage

        public java.util.Map<Language,​java.lang.String> getAllMessage()
        Generated method - Getter of the AbstractConstraint.message attribute.
        Returns:
        the localized message - Localized error message
      • setMessage

        public void setMessage​(SessionContext ctx,
                               java.lang.String value)
        Generated method - Setter of the AbstractConstraint.message attribute.
        Parameters:
        value - the message - Localized error message
      • setMessage

        public void setMessage​(java.lang.String value)
        Generated method - Setter of the AbstractConstraint.message attribute.
        Parameters:
        value - the message - Localized error message
      • setAllMessage

        public void setAllMessage​(SessionContext ctx,
                                  java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the AbstractConstraint.message attribute.
        Parameters:
        value - the message - Localized error message
      • setAllMessage

        public void setAllMessage​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the AbstractConstraint.message attribute.
        Parameters:
        value - the message - Localized error message
      • getSeverity

        public EnumerationValue getSeverity​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.severity attribute.
        Returns:
        the severity - Severity level
      • getSeverity

        public EnumerationValue getSeverity()
        Generated method - Getter of the AbstractConstraint.severity attribute.
        Returns:
        the severity - Severity level
      • setSeverity

        public void setSeverity​(SessionContext ctx,
                                EnumerationValue value)
        Generated method - Setter of the AbstractConstraint.severity attribute.
        Parameters:
        value - the severity - Severity level
      • setSeverity

        public void setSeverity​(EnumerationValue value)
        Generated method - Setter of the AbstractConstraint.severity attribute.
        Parameters:
        value - the severity - Severity level
      • getTarget

        public java.lang.Class getTarget​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.target attribute.
        Returns:
        the target - Target class for covered with validation logic
      • getTarget

        public java.lang.Class getTarget()
        Generated method - Getter of the AbstractConstraint.target attribute.
        Returns:
        the target - Target class for covered with validation logic
      • setTarget

        public void setTarget​(SessionContext ctx,
                              java.lang.Class value)
        Generated method - Setter of the AbstractConstraint.target attribute.
        Parameters:
        value - the target - Target class for covered with validation logic
      • setTarget

        public void setTarget​(java.lang.Class value)
        Generated method - Setter of the AbstractConstraint.target attribute.
        Parameters:
        value - the target - Target class for covered with validation logic
      • getType

        public ComposedType getType​(SessionContext ctx)
        Generated method - Getter of the AbstractConstraint.type attribute.
        Returns:
        the type
      • getType

        public ComposedType getType()
        Generated method - Getter of the AbstractConstraint.type attribute.
        Returns:
        the type
      • setType

        public void setType​(SessionContext ctx,
                            ComposedType value)
        Generated method - Setter of the AbstractConstraint.type attribute.
        Parameters:
        value - the type
      • setType

        public void setType​(ComposedType value)
        Generated method - Setter of the AbstractConstraint.type attribute.
        Parameters:
        value - the type