Class AttributeDef

java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.attr.AttributeDef
All Implemented Interfaces:
AttributeAssignable, HibGrouperLifecycle, Hib3GrouperVersioned, GrouperCloneable, GrouperHasContext, GrouperId, GrouperObject, Owner, GrouperUtil.FieldValuable, XmlImportable<AttributeDef>, XmlImportableBase<AttributeDef>, Serializable, Comparable<GrouperObject>, org.hibernate.classic.Lifecycle

definition of an attribute
See Also:
  • Field Details

    • VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

      public static final String VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
      See Also:
    • VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

      public static final String VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
      See Also:
    • VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

      public static final String VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
      See Also:
    • ACTION_DEFAULT

      public static final String ACTION_DEFAULT
      default action
      See Also:
    • TABLE_GROUPER_ATTRIBUTE_DEF

      public static final String TABLE_GROUPER_ATTRIBUTE_DEF
      name of the groups attribute def table in the db
      See Also:
    • COLUMN_ASSIGN_TO_ATTRIBUTE_DEF

      public static final String COLUMN_ASSIGN_TO_ATTRIBUTE_DEF
      constant for column for: assign_to_attribute_def
      See Also:
    • COLUMN_ASSIGN_TO_ATTRIBUTE_DEF_ASSN

      public static final String COLUMN_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
      constant for column for: assign_to_attribute_def_assn
      See Also:
    • COLUMN_ASSIGN_TO_EFF_MEMBERSHIP

      public static final String COLUMN_ASSIGN_TO_EFF_MEMBERSHIP
      constant for column for: assign_to_eff_membership
      See Also:
    • COLUMN_ASSIGN_TO_EFF_MEMBERSHIP_ASSN

      public static final String COLUMN_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
      constant for column for: assign_to_eff_membership_assn
      See Also:
    • COLUMN_ASSIGN_TO_GROUP

      public static final String COLUMN_ASSIGN_TO_GROUP
      constant for column for: assign_to_group
      See Also:
    • COLUMN_ASSIGN_TO_GROUP_ASSN

      public static final String COLUMN_ASSIGN_TO_GROUP_ASSN
      constant for column for: assign_to_group_assn
      See Also:
    • COLUMN_ASSIGN_TO_IMM_MEMBERSHIP

      public static final String COLUMN_ASSIGN_TO_IMM_MEMBERSHIP
      constant for column for: assign_to_imm_membership
      See Also:
    • COLUMN_ASSIGN_TO_IMM_MEMBERSHIP_ASSN

      public static final String COLUMN_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
      constant for column for: assign_to_imm_membership_assn
      See Also:
    • COLUMN_ASSIGN_TO_MEMBER

      public static final String COLUMN_ASSIGN_TO_MEMBER
      constant for column for: assign_to_member
      See Also:
    • COLUMN_ASSIGN_TO_MEMBER_ASSN

      public static final String COLUMN_ASSIGN_TO_MEMBER_ASSN
      constant for column for: assign_to_member_assn
      See Also:
    • COLUMN_ASSIGN_TO_STEM

      public static final String COLUMN_ASSIGN_TO_STEM
      constant for column for: assign_to_stem
      See Also:
    • COLUMN_ASSIGN_TO_STEM_ASSN

      public static final String COLUMN_ASSIGN_TO_STEM_ASSN
      constant for column for: assign_to_stem_assn
      See Also:
    • COLUMN_ATTRIBUTE_DEF_PUBLIC

      public static final String COLUMN_ATTRIBUTE_DEF_PUBLIC
      if the attribute def is public
      See Also:
    • COLUMN_ATTRIBUTE_DEF_TYPE

      public static final String COLUMN_ATTRIBUTE_DEF_TYPE
      column
      See Also:
    • COLUMN_CONTEXT_ID

      public static final String COLUMN_CONTEXT_ID
      column
      See Also:
    • COLUMN_CREATED_ON

      public static final String COLUMN_CREATED_ON
      column
      See Also:
    • COLUMN_CREATOR_ID

      public static final String COLUMN_CREATOR_ID
      column
      See Also:
    • COLUMN_LAST_UPDATED

      public static final String COLUMN_LAST_UPDATED
      column
      See Also:
    • COLUMN_DESCRIPTION

      public static final String COLUMN_DESCRIPTION
      column
      See Also:
    • COLUMN_EXTENSION

      public static final String COLUMN_EXTENSION
      column
      See Also:
    • COLUMN_NAME

      public static final String COLUMN_NAME
      column
      See Also:
    • COLUMN_MULTI_ASSIGNABLE

      public static final String COLUMN_MULTI_ASSIGNABLE
      column
      See Also:
    • COLUMN_MULTI_VALUED

      public static final String COLUMN_MULTI_VALUED
      column
      See Also:
    • COLUMN_STEM_ID

      public static final String COLUMN_STEM_ID
      column
      See Also:
    • COLUMN_VALUE_TYPE

      public static final String COLUMN_VALUE_TYPE
      column
      See Also:
    • COLUMN_ID

      public static final String COLUMN_ID
      column
      See Also:
    • COLUMN_ID_INDEX

      public static final String COLUMN_ID_INDEX
      unique number for this attribute def
      See Also:
    • FIELD_ASSIGN_TO_ATTRIBUTE_DEF

      public static final String FIELD_ASSIGN_TO_ATTRIBUTE_DEF
      constant for field name for: assignToAttributeDef
      See Also:
    • FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN

      public static final String FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
      constant for field name for: assignToAttributeDefAssn
      See Also:
    • FIELD_ASSIGN_TO_EFF_MEMBERSHIP

      public static final String FIELD_ASSIGN_TO_EFF_MEMBERSHIP
      constant for field name for: assignToEffMembership
      See Also:
    • FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN

      public static final String FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
      constant for field name for: assignToEffMembershipAssn
      See Also:
    • FIELD_ASSIGN_TO_GROUP

      public static final String FIELD_ASSIGN_TO_GROUP
      constant for field name for: assignToGroup
      See Also:
    • FIELD_ASSIGN_TO_GROUP_ASSN

      public static final String FIELD_ASSIGN_TO_GROUP_ASSN
      constant for field name for: assignToGroupAssn
      See Also:
    • FIELD_ASSIGN_TO_IMM_MEMBERSHIP

      public static final String FIELD_ASSIGN_TO_IMM_MEMBERSHIP
      constant for field name for: assignToImmMembership
      See Also:
    • FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN

      public static final String FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
      constant for field name for: assignToImmMembershipAssn
      See Also:
    • FIELD_ASSIGN_TO_MEMBER

      public static final String FIELD_ASSIGN_TO_MEMBER
      constant for field name for: assignToMember
      See Also:
    • FIELD_ASSIGN_TO_MEMBER_ASSN

      public static final String FIELD_ASSIGN_TO_MEMBER_ASSN
      constant for field name for: assignToMemberAssn
      See Also:
    • FIELD_ASSIGN_TO_STEM

      public static final String FIELD_ASSIGN_TO_STEM
      constant for field name for: assignToStem
      See Also:
    • FIELD_ASSIGN_TO_STEM_ASSN

      public static final String FIELD_ASSIGN_TO_STEM_ASSN
      constant for field name for: assignToStemAssn
      See Also:
    • FIELD_ATTRIBUTE_DEF_PUBLIC

      public static final String FIELD_ATTRIBUTE_DEF_PUBLIC
      constant for field name for: attributeDefPublic
      See Also:
    • FIELD_ATTRIBUTE_DEF_TYPE

      public static final String FIELD_ATTRIBUTE_DEF_TYPE
      constant for field name for: attributeDefType
      See Also:
    • FIELD_CONTEXT_ID

      public static final String FIELD_CONTEXT_ID
      constant for field name for: contextId
      See Also:
    • FIELD_CREATED_ON_DB

      public static final String FIELD_CREATED_ON_DB
      constant for field name for: createdOnDb
      See Also:
    • FIELD_CREATOR_ID

      public static final String FIELD_CREATOR_ID
      constant for field name for: creatorId
      See Also:
    • FIELD_DESCRIPTION

      public static final String FIELD_DESCRIPTION
      constant for field name for: description
      See Also:
    • FIELD_EXTENSION

      public static final String FIELD_EXTENSION
      constant for field name for: extension
      See Also:
    • FIELD_ID

      public static final String FIELD_ID
      constant for field name for: id
      See Also:
    • FIELD_ID_INDEX

      public static final String FIELD_ID_INDEX
      constant for field name for: idIndex
      See Also:
    • FIELD_LAST_UPDATED_DB

      public static final String FIELD_LAST_UPDATED_DB
      constant for field name for: lastUpdatedDb
      See Also:
    • FIELD_MULTI_ASSIGNABLE

      public static final String FIELD_MULTI_ASSIGNABLE
      constant for field name for: multiAssignable
      See Also:
    • FIELD_MULTI_VALUED

      public static final String FIELD_MULTI_VALUED
      constant for field name for: multiValued
      See Also:
    • FIELD_NAME

      public static final String FIELD_NAME
      constant for field name for: name
      See Also:
    • FIELD_STEM_ID

      public static final String FIELD_STEM_ID
      constant for field name for: stemId
      See Also:
    • FIELD_VALUE_TYPE

      public static final String FIELD_VALUE_TYPE
      constant for field name for: valueType
      See Also:
  • Constructor Details

    • AttributeDef

      public AttributeDef()
  • Method Details

    • getParentStemName

      public String getParentStemName()
      get the name of the parent stem
      Returns:
      the name of the parent stem
    • massageSortField

      public static String massageSortField(String sortField)
      attribute defs dont have display extensions or name, so change them to extension and name
      Parameters:
      sortField -
      Returns:
      the new sort field
    • clone

      public AttributeDef clone()
      deep clone the fields in this object
      Specified by:
      clone in interface GrouperCloneable
      Specified by:
      clone in class GrouperAPI
      Returns:
      the clone of the object
      See Also:
    • getAttributeDefScopeDelegate

      public AttributeDefScopeDelegate getAttributeDefScopeDelegate()
      Returns:
      the delegate
    • getAttributeDelegate

      public AttributeAssignAttributeDefDelegate getAttributeDelegate()
      Description copied from interface: AttributeAssignable
      get the logic delegate
      Specified by:
      getAttributeDelegate in interface AttributeAssignable
      Returns:
      the delegate
    • getAttributeValueDelegate

      public AttributeValueDelegate getAttributeValueDelegate()
      this delegate works on attributes and values at the same time
      Specified by:
      getAttributeValueDelegate in interface AttributeAssignable
      Returns:
      the delegate
    • getAttributeDefActionDelegate

      public AttributeDefActionDelegate getAttributeDefActionDelegate()
      delegate the action list management to this class
      Returns:
      the delegate
    • getCreatorId

      public String getCreatorId()
      Returns:
      the creatorId
    • getCreateSubject

      public Subject getCreateSubject()
      get the subject that created this object or null if null or not found
      Returns:
      the subject or null
    • setCreatorId

      public void setCreatorId(String creatorId1)
      Parameters:
      creatorId1 - the creatorId to set
    • store

      public void store()
      store this group (update) to database
    • validate

      public void validate()
    • getPrivilegeDelegate

      public AttributeDefPrivilegeDelegate getPrivilegeDelegate()
      privilege delegate to handle security on this attribute def
      Returns:
      the delegate
    • isAssignToGroup

      public boolean isAssignToGroup()
      if can assign to group/role
      Returns:
      the assignToGroup
    • setAssignToGroup

      public void setAssignToGroup(boolean assignToGroup)
      if can assign to group/role
      Parameters:
      assignToGroup - the assignToGroup to set
    • isAssignToStem

      public boolean isAssignToStem()
      if can assign to stem
      Returns:
      the assignToStem
    • setAssignToStem

      public void setAssignToStem(boolean assignToStem)
      if can assign to stem
      Parameters:
      assignToStem - the assignToStem to set
    • isAssignToMember

      public boolean isAssignToMember()
      if can assign to member
      Returns:
      the assignToMember
    • setAssignToMember

      public void setAssignToMember(boolean assignToMember)
      if can assign to member
      Parameters:
      assignToMember - the assignToMember to set
    • isAssignToImmMembership

      public boolean isAssignToImmMembership()
      if can assign to immediate membership
      Returns:
      the assignToImmMembership
    • setAssignToImmMembership

      public void setAssignToImmMembership(boolean assignToImmMembership)
      if can assign to immediate membership
      Parameters:
      assignToImmMembership - the assignToImmMembership to set
    • isAssignToEffMembership

      public boolean isAssignToEffMembership()
      if can assign to effective membership
      Returns:
      the assignToEffMembership
    • setAssignToEffMembership

      public void setAssignToEffMembership(boolean assignToEffMembership)
      if can assign to effective membership
      Parameters:
      assignToEffMembership - the assignToEffMembership to set
    • isAssignToAttributeDef

      public boolean isAssignToAttributeDef()
      if can assign to attribute def
      Returns:
      the assignToAttributeDef
    • setAssignToAttributeDef

      public void setAssignToAttributeDef(boolean assignToAttributeDef)
      if can assign to attribute def
      Parameters:
      assignToAttributeDef - the assignToAttributeDef to set
    • isAssignToGroupAssn

      public boolean isAssignToGroupAssn()
      if can assign to assignment of group/role
      Returns:
      the assignToGroupAssn
    • setAssignToGroupAssn

      public void setAssignToGroupAssn(boolean assignToGroupAssn)
      if can assign to assignment of group/role
      Parameters:
      assignToGroupAssn - the assignToGroupAssn to set
    • isAssignToStemAssn

      public boolean isAssignToStemAssn()
      allowed to assign to a stem assignment
      Returns:
      the assignToStemAssn
    • setAssignToStemAssn

      public void setAssignToStemAssn(boolean assignToStemAssn)
      allowed to assign to a stem assignment
      Parameters:
      assignToStemAssn - the assignToStemAssn to set
    • isAssignToMemberAssn

      public boolean isAssignToMemberAssn()
      allowed to assign to a member assignment
      Returns:
      the assignToMemberAssn
    • setAssignToMemberAssn

      public void setAssignToMemberAssn(boolean assignToMemberAssn)
      allowed to assign to a member assignment
      Parameters:
      assignToMemberAssn - the assignToMemberAssn to set
    • isAssignToImmMembershipAssn

      public boolean isAssignToImmMembershipAssn()
      allowed to assign to an immediate membership assignment
      Returns:
      the assignToImmMembershipAssn
    • setAssignToImmMembershipAssn

      public void setAssignToImmMembershipAssn(boolean assignToImmMembershipAssn)
      allowed to assign to an immediate membership assignment
      Parameters:
      assignToImmMembershipAssn - the assignToImmMembershipAssn to set
    • isAssignToEffMembershipAssn

      public boolean isAssignToEffMembershipAssn()
      allowed to assign to an effective membership assignment
      Returns:
      the assignToEffMembershipAssn
    • setAssignToEffMembershipAssn

      public void setAssignToEffMembershipAssn(boolean assignToEffMembershipAssn)
      allowed to assign to an effective membership assignment
      Parameters:
      assignToEffMembershipAssn - the assignToEffMembershipAssn to set
    • isAssignToAttributeDefAssn

      public boolean isAssignToAttributeDefAssn()
      allowed to assign to an attribute definition assignment
      Returns:
      the assignToAttributeDefAssn
    • setAssignToAttributeDefAssn

      public void setAssignToAttributeDefAssn(boolean assignToAttributeDefAssn)
      allowed to assign to an attribute definition assignment
      Parameters:
      assignToAttributeDefAssn - the assignToAttributeDefAssn to set
    • getAssignToGroupDb

      public String getAssignToGroupDb()
      if can assign to group/role
      Returns:
      the assignToGroup
    • setAssignToGroupDb

      public void setAssignToGroupDb(String assignToGroup1)
      if can assign to group/role
      Parameters:
      assignToGroup1 - the assignToGroup to set
    • getAssignToStemDb

      public String getAssignToStemDb()
      if can assign to stem
      Returns:
      the assignToStem
    • setAssignToStemDb

      public void setAssignToStemDb(String assignToStem1)
      if can assign to stem
      Parameters:
      assignToStem1 - the assignToStem to set
    • getAssignToMemberDb

      public String getAssignToMemberDb()
      if can assign to member
      Returns:
      the assignToMember
    • setAssignToMemberDb

      public void setAssignToMemberDb(String assignToMember1)
      if can assign to member
      Parameters:
      assignToMember1 - the assignToMember to set
    • getAssignToImmMembershipDb

      public String getAssignToImmMembershipDb()
      if can assign to immediate membership
      Returns:
      the assignToImmMembership
    • setAssignToImmMembershipDb

      public void setAssignToImmMembershipDb(String assignToImmMembership1)
      if can assign to immediate membership
      Parameters:
      assignToImmMembership1 - the assignToImmMembership to set
    • getAssignToEffMembershipDb

      public String getAssignToEffMembershipDb()
      if can assign to effective membership
      Returns:
      the assignToEffMembership
    • setAssignToEffMembershipDb

      public void setAssignToEffMembershipDb(String assignToEffMembership1)
      if can assign to effective membership
      Parameters:
      assignToEffMembership1 - the assignToEffMembership to set
    • getAssignToAttributeDefDb

      public String getAssignToAttributeDefDb()
      if can assign to attribute def
      Returns:
      the assignToAttributeDef
    • setAssignToAttributeDefDb

      public void setAssignToAttributeDefDb(String assignToAttributeDef1)
      if can assign to attribute def
      Parameters:
      assignToAttributeDef1 - the assignToAttributeDef to set
    • getAssignToGroupAssnDb

      public String getAssignToGroupAssnDb()
      if can assign to assignment of group/role
      Returns:
      the assignToGroupAssn
    • setAssignToGroupAssnDb

      public void setAssignToGroupAssnDb(String assignToGroupAssn1)
      if can assign to assignment of group/role
      Parameters:
      assignToGroupAssn1 - the assignToGroupAssn to set
    • getAssignToStemAssnDb

      public String getAssignToStemAssnDb()
      allowed to assign to a stem assignment
      Returns:
      the assignToStemAssn
    • setAssignToStemAssnDb

      public void setAssignToStemAssnDb(String assignToStemAssn1)
      allowed to assign to a stem assignment
      Parameters:
      assignToStemAssn1 - the assignToStemAssn to set
    • getAssignToMemberAssnDb

      public String getAssignToMemberAssnDb()
      allowed to assign to a member assignment
      Returns:
      the assignToMemberAssn
    • setAssignToMemberAssnDb

      public void setAssignToMemberAssnDb(String assignToMemberAssn1)
      allowed to assign to a member assignment
      Parameters:
      assignToMemberAssn1 - the assignToMemberAssn to set
    • getAssignToImmMembershipAssnDb

      public String getAssignToImmMembershipAssnDb()
      allowed to assign to an immediate membership assignment
      Returns:
      the assignToImmMembershipAssn
    • setAssignToImmMembershipAssnDb

      public void setAssignToImmMembershipAssnDb(String assignToImmMembershipAssn1)
      allowed to assign to an immediate membership assignment
      Parameters:
      assignToImmMembershipAssn1 - the assignToImmMembershipAssn to set
    • getAssignToEffMembershipAssnDb

      public String getAssignToEffMembershipAssnDb()
      allowed to assign to an effective membership assignment
      Returns:
      the assignToEffMembershipAssn
    • setAssignToEffMembershipAssnDb

      public void setAssignToEffMembershipAssnDb(String assignToEffMembershipAssnDb1)
      allowed to assign to an effective membership assignment
      Parameters:
      assignToEffMembershipAssnDb1 - the assignToEffMembershipAssn to set
    • getAssignToAttributeDefAssnDb

      public String getAssignToAttributeDefAssnDb()
      allowed to assign to an attribute definition assignment
      Returns:
      the assignToAttributeDefAssn
    • setAssignToAttributeDefAssnDb

      public void setAssignToAttributeDefAssnDb(String assignToAttributeDefAssnDb)
      allowed to assign to an attribute definition assignment
      Parameters:
      assignToAttributeDefAssnDb - the assignToAttributeDefAssn to set
    • isAttributeDefPublic

      public boolean isAttributeDefPublic()
      if the attribute def is public, otherwise you just see it in this stem and substem
      Returns:
      if public
    • getAttributeDefPublicDb

      public String getAttributeDefPublicDb()
      hibernate mapped method for if this attribute def is public
      Returns:
      true if public, false if not (default false)
    • setAttributeDefPublicDb

      public void setAttributeDefPublicDb(String theAttributeDefPublicDb)
      if the attribute def is public, otherwise you just see it in this stem and substem
      Parameters:
      theAttributeDefPublicDb -
    • setAttributeDefPublic

      public void setAttributeDefPublic(boolean attributeDefPublic1)
      if the attribute def is public, otherwise you just see it in this stem and substem
      Parameters:
      attributeDefPublic1 -
    • getAttributeDefType

      public AttributeDefType getAttributeDefType()
      type of this attribute (e.g. attribute or privilege)
      Returns:
      attribute def type
    • setAttributeDefType

      public void setAttributeDefType(AttributeDefType attributeDefType)
      type of this attribute (e.g. attribute or privilege)
      Parameters:
      attributeDefType -
    • getAttributeDefTypeDb

      public String getAttributeDefTypeDb()
      type of this attribute (e.g. attribute or privilege)
      Returns:
      the attribute def type
    • setAttributeDefTypeDb

      public void setAttributeDefTypeDb(String theAttributeDefType)
      type of this attribute (e.g. attr or priv or limit)
      Parameters:
      theAttributeDefType -
    • getParentUuid

      public String getParentUuid()
      this method makes this class more compatible with Group and Stem
      Returns:
      the parent stem id
    • getStemId

      public String getStemId()
      stem that this attribute is in
      Returns:
      the stem id
    • getStem

      public Stem getStem()
      stem that this attribute is in
      Returns:
      the stem id
    • setStemId

      public void setStemId(String stemId1)
      stem that this attribute is in
      Parameters:
      stemId1 -
    • getValueType

      public AttributeDefValueType getValueType()
      type of the value, int, double, string, marker
      Returns:
      the type
    • setValueType

      public void setValueType(AttributeDefValueType valueType1)
      type of the value, int, double, string, marker
      Parameters:
      valueType1 -
    • getValueTypeDb

      public String getValueTypeDb()
      type of the value, int, double, string, marker
      Returns:
      the type
    • setValueTypeDb

      public void setValueTypeDb(String valueType1)
      type of the value, int, double, string, marker
      Parameters:
      valueType1 -
    • isMultiAssignable

      public boolean isMultiAssignable()
      if this attribute can be assigned to the same action to the same object more than once
      Returns:
      if multiassignable
    • getMultiAssignableDb

      public String getMultiAssignableDb()
      if this attribute can be assigned to the same action to the same object more than once convert to string for hibernate
      Returns:
      the string value
    • setMultiAssignableDb

      public void setMultiAssignableDb(String multiAssignableDb)
      if this attribute can be assigned to the same action to the same object more than once convert to string for hibernate
      Parameters:
      multiAssignableDb -
    • setMultiAssignable

      public void setMultiAssignable(boolean multiAssignable1)
      if this attribute can be assigned to the same action to the same object more than once
      Parameters:
      multiAssignable1 -
    • isMultiValued

      public boolean isMultiValued()
      if more than one value (same type) can be assigned to the attribute assignment
      Returns:
      boolean
    • getMultiValuedDb

      public String getMultiValuedDb()
      if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernate
      Returns:
      if multivalued
    • setMultiValuedDb

      public void setMultiValuedDb(String multiValuedDb)
      if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernate
      Parameters:
      multiValuedDb -
    • setMultiValued

      public void setMultiValued(boolean multiValued1)
      if more than one value (same type) can be assigned to the attribute assignment
      Parameters:
      multiValued1 -
    • getContextId

      public String getContextId()
      context id of the transaction
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId1)
      context id of the transaction
      Specified by:
      setContextId in interface GrouperHasContext
      Parameters:
      contextId1 -
    • getId

      public String getId()
      id of this attribute def
      Specified by:
      getId in interface GrouperId
      Returns:
      id
    • setId

      public void setId(String id1)
      id of this attribute def
      Parameters:
      id1 -
    • getLastUpdated

      public Timestamp getLastUpdated()
      when last updated
      Returns:
      timestamp
    • getLastUpdatedDb

      public Long getLastUpdatedDb()
      when last updated
      Returns:
      timestamp
    • setLastUpdated

      public void setLastUpdated(Timestamp lastUpdated1)
      when last updated
      Parameters:
      lastUpdated1 -
    • setLastUpdatedDb

      public void setLastUpdatedDb(Long lastUpdated1)
      when last updated
      Parameters:
      lastUpdated1 -
    • getCreatedOn

      public Timestamp getCreatedOn()
      when created
      Returns:
      timestamp
    • getCreatedOnDb

      public Long getCreatedOnDb()
      when created
      Returns:
      timestamp
    • setCreatedOn

      public void setCreatedOn(Timestamp createdOn1)
      when created
      Parameters:
      createdOn1 -
    • setCreatedOnDb

      public void setCreatedOnDb(Long createdOn1)
      when created
      Parameters:
      createdOn1 -
    • getDescription

      public String getDescription()
      description of attribute, friendly description, e.g. in sentence form, about what the attribute is about
      Specified by:
      getDescription in interface GrouperObject
      Returns:
      the description
    • setDescription

      public void setDescription(String description1)
      description of attribute, friendly description, e.g. in sentence form, about what the attribute is about
      Parameters:
      description1 -
    • getExtension

      public String getExtension()
      extension of attribute expireTime
      Returns:
      extension
    • getExtensionDb

      public String getExtensionDb()
      extension of attribute expireTime
      Returns:
      extension
    • setExtension

      public void setExtension(String extension1)
      extension of attribute expireTime
      Parameters:
      extension1 -
    • setExtensionDb

      public void setExtensionDb(String extension1)
      extension of attribute expireTime
      Parameters:
      extension1 -
    • getNameDb

      public String getNameDb()
      Returns:
      the name for hibernate
    • setNameDb

      public void setNameDb(String name1)
      Parameters:
      name1 -
    • getName

      public String getName() throws GrouperException
      Get group name.
      Specified by:
      getName in interface GrouperObject
      Specified by:
      getName in interface Owner
      Returns:
      Group name.
      Throws:
      GrouperException
    • setName

      public void setName(String value)
      Set attributeDef name. This should not be called
      Parameters:
      value - Set extension to this value.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • getUuid

      public String getUuid()
      Specified by:
      getUuid in interface Owner
      Returns:
      uuid
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also:
    • deleteOccuring

      public static boolean deleteOccuring()
      see if we are in the middle of a delete (e.g. for hook)
      Returns:
      true if delete is occurring
    • delete

      public void delete()
      delete this record (and security and actions etc, but not attribute def names yet)
    • xmlCopyBusinessPropertiesToExisting

      public void xmlCopyBusinessPropertiesToExisting(AttributeDef existingRecord)
      Description copied from interface: XmlImportableBase
      copy business (non update) properties to an existing record
      Specified by:
      xmlCopyBusinessPropertiesToExisting in interface XmlImportableBase<AttributeDef>
      See Also:
    • getParentStem

      public Stem getParentStem()
      Get parent stem.
       Stem parent = g.getParentStem();
       
      Specified by:
      getParentStem in interface GrouperObject
      Returns:
      Parent Stem.
      Throws:
      IllegalStateException
    • xmlDifferentBusinessProperties

      public boolean xmlDifferentBusinessProperties(AttributeDef other)
      Description copied from interface: XmlImportableBase
      see if the non update cols are different (e.g. name)
      Specified by:
      xmlDifferentBusinessProperties in interface XmlImportableBase<AttributeDef>
      Parameters:
      other - the one to compare with
      Returns:
      true if so
      See Also:
    • xmlDifferentUpdateProperties

      public boolean xmlDifferentUpdateProperties(AttributeDef other)
      Description copied from interface: XmlImportableBase
      see if the update cols are different (e.g. last updated)
      Specified by:
      xmlDifferentUpdateProperties in interface XmlImportableBase<AttributeDef>
      Parameters:
      other - the one to compare with
      Returns:
      true if so
      See Also:
    • xmlRetrieveByIdOrKey

      public AttributeDef xmlRetrieveByIdOrKey()
      Description copied from interface: XmlImportable
      retrieve from db by id or key. throws exception if duplicate
      Specified by:
      xmlRetrieveByIdOrKey in interface XmlImportable<AttributeDef>
      Returns:
      the object or null if not found
      See Also:
    • xmlSaveBusinessProperties

      public AttributeDef xmlSaveBusinessProperties(AttributeDef existingRecord)
      Description copied from interface: XmlImportableBase
      save the business properties (not update properties)
      Specified by:
      xmlSaveBusinessProperties in interface XmlImportableBase<AttributeDef>
      Parameters:
      existingRecord - null if insert, the object if exists in DB generally just copy the hibernate version number, and last updated to the object and store it
      Returns:
      the new object or existing
      See Also:
    • xmlSaveUpdateProperties

      public void xmlSaveUpdateProperties()
      Description copied from interface: XmlImportableBase
      save the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate
      Specified by:
      xmlSaveUpdateProperties in interface XmlImportableBase<AttributeDef>
      See Also:
    • xmlToExportAttributeDef

      public XmlExportAttributeDef xmlToExportAttributeDef(GrouperVersion grouperVersion)
      convert to xml bean for export
      Parameters:
      grouperVersion -
      Returns:
      xml bean
    • xmlGetId

      public String xmlGetId()
      Description copied from interface: XmlImportableBase
      set id key in db
      Specified by:
      xmlGetId in interface XmlImportableBase<AttributeDef>
      Returns:
      id
      See Also:
    • xmlSetId

      public void xmlSetId(String theId)
      Description copied from interface: XmlImportableBase
      set id key in db
      Specified by:
      xmlSetId in interface XmlImportableBase<AttributeDef>
      See Also:
    • xmlToString

      public String xmlToString()
      Description copied from interface: XmlImportableBase
      convert to string for log
      Specified by:
      xmlToString in interface XmlImportableBase<AttributeDef>
      Returns:
      the string value for log
      See Also:
    • dbVersion

      public AttributeDef dbVersion()
      save the state when retrieving from DB
      Overrides:
      dbVersion in class GrouperAPI
      Returns:
      the dbVersion
    • dbVersionReset

      public void dbVersionReset()
      take a snapshot of the data since this is what is in the db
      Overrides:
      dbVersionReset in class GrouperAPI
    • dbVersionDifferentFields

      public Set<String> dbVersionDifferentFields()
      Description copied from class: GrouperAPI
      see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName
      Overrides:
      dbVersionDifferentFields in class GrouperAPI
      Returns:
      a set of attributes changed, or empty set if none
      See Also:
    • getAttributeAssignTypes

      public Set<AttributeAssignType> getAttributeAssignTypes()
      Returns:
      the set of types
    • onPostDelete

      public void onPostDelete(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      after a delete occurs
      Specified by:
      onPostDelete in interface HibGrouperLifecycle
      Overrides:
      onPostDelete in class GrouperAPI
      See Also:
    • onPostSave

      public void onPostSave(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      after a save (insert) occurs
      Specified by:
      onPostSave in interface HibGrouperLifecycle
      Overrides:
      onPostSave in class GrouperAPI
      See Also:
    • onPostUpdate

      public void onPostUpdate(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      after an update occurs
      Specified by:
      onPostUpdate in interface HibGrouperLifecycle
      Overrides:
      onPostUpdate in class GrouperAPI
      See Also:
    • onPreDelete

      public void onPreDelete(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before a delete (insert) occurs
      Specified by:
      onPreDelete in interface HibGrouperLifecycle
      Overrides:
      onPreDelete in class GrouperAPI
      See Also:
    • onPreSave

      public void onPreSave(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before a save (insert) occurs
      Specified by:
      onPreSave in interface HibGrouperLifecycle
      Overrides:
      onPreSave in class GrouperAPI
      See Also:
    • onPreUpdate

      public void onPreUpdate(HibernateSession hibernateSession)
      Description copied from interface: HibGrouperLifecycle
      before an update occurs
      Specified by:
      onPreUpdate in interface HibGrouperLifecycle
      Overrides:
      onPreUpdate in class GrouperAPI
      See Also:
    • compareTo

      public int compareTo(GrouperObject that)
      Specified by:
      compareTo in interface Comparable<GrouperObject>
      See Also:
    • getIdIndex

      public Long getIdIndex()
      id of the group as a unique integer
      Returns:
      id
    • setIdIndex

      public void setIdIndex(Long idIndex1)
      id of the group as a unique integer
      Parameters:
      idIndex1 -
    • assignIdIndex

      public boolean assignIdIndex(long theIdIndex)
      assign different id index
      Parameters:
      theIdIndex -
      Returns:
      if it was changed
    • getDisplayName

      public String getDisplayName()
      Description copied from interface: GrouperObject
      display name of object
      Specified by:
      getDisplayName in interface GrouperObject
      Returns:
      display name
      See Also:
    • matchesLowerSearchStrings

      public boolean matchesLowerSearchStrings(Set<String> filterStrings)
      Description copied from interface: GrouperObject
      see if this object matches the filter strings
      Specified by:
      matchesLowerSearchStrings in interface GrouperObject
      Returns:
      true if matches
      See Also: