edu.internet2.middleware.grouper.attr
Class AttributeDef

java.lang.Object
  extended by edu.internet2.middleware.grouper.GrouperAPI
      extended by 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<AttributeDef>, org.hibernate.classic.Lifecycle

public class AttributeDef
extends GrouperAPI
implements GrouperObject, GrouperHasContext, Hib3GrouperVersioned, Owner, XmlImportable<AttributeDef>, AttributeAssignable, Comparable<AttributeDef>

definition of an attribute

Author:
mchyzer
See Also:
Serialized Form

Field Summary
static String ACTION_DEFAULT
          default action
static String COLUMN_ASSIGN_TO_ATTRIBUTE_DEF
          constant for column for: assign_to_attribute_def
static String COLUMN_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
          constant for column for: assign_to_attribute_def_assn
static String COLUMN_ASSIGN_TO_EFF_MEMBERSHIP
          constant for column for: assign_to_eff_membership
static String COLUMN_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
          constant for column for: assign_to_eff_membership_assn
static String COLUMN_ASSIGN_TO_GROUP
          constant for column for: assign_to_group
static String COLUMN_ASSIGN_TO_GROUP_ASSN
          constant for column for: assign_to_group_assn
static String COLUMN_ASSIGN_TO_IMM_MEMBERSHIP
          constant for column for: assign_to_imm_membership
static String COLUMN_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
          constant for column for: assign_to_imm_membership_assn
static String COLUMN_ASSIGN_TO_MEMBER
          constant for column for: assign_to_member
static String COLUMN_ASSIGN_TO_MEMBER_ASSN
          constant for column for: assign_to_member_assn
static String COLUMN_ASSIGN_TO_STEM
          constant for column for: assign_to_stem
static String COLUMN_ASSIGN_TO_STEM_ASSN
          constant for column for: assign_to_stem_assn
static String COLUMN_ATTRIBUTE_DEF_PUBLIC
          if the attribute def is public
static String COLUMN_ATTRIBUTE_DEF_TYPE
          column
static String COLUMN_CONTEXT_ID
          column
static String COLUMN_CREATED_ON
          column
static String COLUMN_CREATOR_ID
          column
static String COLUMN_DESCRIPTION
          column
static String COLUMN_EXTENSION
          column
static String COLUMN_ID
          column
static String COLUMN_ID_INDEX
          unique number for this attribute def
static String COLUMN_LAST_UPDATED
          column
static String COLUMN_MULTI_ASSIGNABLE
          column
static String COLUMN_MULTI_VALUED
          column
static String COLUMN_NAME
          column
static String COLUMN_STEM_ID
          column
static String COLUMN_VALUE_TYPE
          column
static String FIELD_ASSIGN_TO_ATTRIBUTE_DEF
          constant for field name for: assignToAttributeDef
static String FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
          constant for field name for: assignToAttributeDefAssn
static String FIELD_ASSIGN_TO_EFF_MEMBERSHIP
          constant for field name for: assignToEffMembership
static String FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
          constant for field name for: assignToEffMembershipAssn
static String FIELD_ASSIGN_TO_GROUP
          constant for field name for: assignToGroup
static String FIELD_ASSIGN_TO_GROUP_ASSN
          constant for field name for: assignToGroupAssn
static String FIELD_ASSIGN_TO_IMM_MEMBERSHIP
          constant for field name for: assignToImmMembership
static String FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
          constant for field name for: assignToImmMembershipAssn
static String FIELD_ASSIGN_TO_MEMBER
          constant for field name for: assignToMember
static String FIELD_ASSIGN_TO_MEMBER_ASSN
          constant for field name for: assignToMemberAssn
static String FIELD_ASSIGN_TO_STEM
          constant for field name for: assignToStem
static String FIELD_ASSIGN_TO_STEM_ASSN
          constant for field name for: assignToStemAssn
static String FIELD_ATTRIBUTE_DEF_PUBLIC
          constant for field name for: attributeDefPublic
static String FIELD_ATTRIBUTE_DEF_TYPE
          constant for field name for: attributeDefType
static String FIELD_CONTEXT_ID
          constant for field name for: contextId
static String FIELD_CREATED_ON_DB
          constant for field name for: createdOnDb
static String FIELD_CREATOR_ID
          constant for field name for: creatorId
static String FIELD_DESCRIPTION
          constant for field name for: description
static String FIELD_EXTENSION
          constant for field name for: extension
static String FIELD_ID
          constant for field name for: id
static String FIELD_ID_INDEX
          constant for field name for: idIndex
static String FIELD_LAST_UPDATED_DB
          constant for field name for: lastUpdatedDb
static String FIELD_MULTI_ASSIGNABLE
          constant for field name for: multiAssignable
static String FIELD_MULTI_VALUED
          constant for field name for: multiValued
static String FIELD_NAME
          constant for field name for: name
static String FIELD_STEM_ID
          constant for field name for: stemId
static String FIELD_VALUE_TYPE
          constant for field name for: valueType
static String TABLE_GROUPER_ATTRIBUTE_DEF
          name of the groups attribute def table in the db
static String VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
           
static String VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
           
static String VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
           
 
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
AttributeDef()
           
 
Method Summary
 boolean assignIdIndex(long theIdIndex)
          assign different id index
 AttributeDef clone()
          deep clone the fields in this object
 int compareTo(AttributeDef that)
           
 AttributeDef dbVersion()
          save the state when retrieving from DB
 Set<String> dbVersionDifferentFields()
          see which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName
 void dbVersionReset()
          take a snapshot of the data since this is what is in the db
 void delete()
          delete this record (and security and actions etc, but not attribute def names yet)
static boolean deleteOccuring()
          see if we are in the middle of a delete (e.g.
 boolean equals(Object obj)
           
 String getAssignToAttributeDefAssnDb()
          allowed to assign to an attribute definition assignment
 String getAssignToAttributeDefDb()
          if can assign to attribute def
 String getAssignToEffMembershipAssnDb()
          allowed to assign to an effective membership assignment
 String getAssignToEffMembershipDb()
          if can assign to effective membership
 String getAssignToGroupAssnDb()
          if can assign to assignment of group/role
 String getAssignToGroupDb()
          if can assign to group/role
 String getAssignToImmMembershipAssnDb()
          allowed to assign to an immediate membership assignment
 String getAssignToImmMembershipDb()
          if can assign to immediate membership
 String getAssignToMemberAssnDb()
          allowed to assign to a member assignment
 String getAssignToMemberDb()
          if can assign to member
 String getAssignToStemAssnDb()
          allowed to assign to a stem assignment
 String getAssignToStemDb()
          if can assign to stem
 Set<AttributeAssignType> getAttributeAssignTypes()
           
 AttributeDefActionDelegate getAttributeDefActionDelegate()
          delegate the action list management to this class
 String getAttributeDefPublicDb()
          hibernate mapped method for if this attribute def is public
 AttributeDefScopeDelegate getAttributeDefScopeDelegate()
           
 AttributeDefType getAttributeDefType()
          type of this attribute (e.g.
 String getAttributeDefTypeDb()
          type of this attribute (e.g.
 AttributeAssignAttributeDefDelegate getAttributeDelegate()
          get the logic delegate
 AttributeValueDelegate getAttributeValueDelegate()
          this delegate works on attributes and values at the same time
 String getContextId()
          context id of the transaction
 Timestamp getCreatedOn()
          when created
 Long getCreatedOnDb()
          when created
 edu.internet2.middleware.subject.Subject getCreateSubject()
          get the subject that created this object or null if null or not found
 String getCreatorId()
           
 String getDescription()
          description of attribute, friendly description, e.g.
 String getDisplayName()
          display name of object
 String getExtension()
          extension of attribute expireTime
 String getExtensionDb()
          extension of attribute expireTime
 String getId()
          id of this attribute def
 Long getIdIndex()
          id of the group as a unique integer
 Timestamp getLastUpdated()
          when last updated
 Long getLastUpdatedDb()
          when last updated
 String getMultiAssignableDb()
          if this attribute can be assigned to the same action to the same object more than once convert to string for hibernate
 String getMultiValuedDb()
          if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernate
 String getName()
          Get group name.
 String getNameDb()
           
 Stem getParentStem()
          Get parent stem.
 String getParentStemName()
          get the name of the parent stem
 String getParentUuid()
          this method makes this class more compatible with Group and Stem
 AttributeDefPrivilegeDelegate getPrivilegeDelegate()
          privilege delegate to handle security on this attribute def
 Stem getStem()
          stem that this attribute is in
 String getStemId()
          stem that this attribute is in
 String getUuid()
           
 AttributeDefValueType getValueType()
          type of the value, int, double, string, marker
 String getValueTypeDb()
          type of the value, int, double, string, marker
 int hashCode()
           
 boolean isAssignToAttributeDef()
          if can assign to attribute def
 boolean isAssignToAttributeDefAssn()
          allowed to assign to an attribute definition assignment
 boolean isAssignToEffMembership()
          if can assign to effective membership
 boolean isAssignToEffMembershipAssn()
          allowed to assign to an effective membership assignment
 boolean isAssignToGroup()
          if can assign to group/role
 boolean isAssignToGroupAssn()
          if can assign to assignment of group/role
 boolean isAssignToImmMembership()
          if can assign to immediate membership
 boolean isAssignToImmMembershipAssn()
          allowed to assign to an immediate membership assignment
 boolean isAssignToMember()
          if can assign to member
 boolean isAssignToMemberAssn()
          allowed to assign to a member assignment
 boolean isAssignToStem()
          if can assign to stem
 boolean isAssignToStemAssn()
          allowed to assign to a stem assignment
 boolean isAttributeDefPublic()
          if the attribute def is public, otherwise you just see it in this stem and substem
 boolean isMultiAssignable()
          if this attribute can be assigned to the same action to the same object more than once
 boolean isMultiValued()
          if more than one value (same type) can be assigned to the attribute assignment
static String massageSortField(String sortField)
          attribute defs dont have display extensions or name, so change them to extension and name
 boolean matchesLowerSearchStrings(Set<String> filterStrings)
          see if this object matches the filter strings
 void onPostDelete(HibernateSession hibernateSession)
          after a delete occurs
 void onPostSave(HibernateSession hibernateSession)
          after a save (insert) occurs
 void onPostUpdate(HibernateSession hibernateSession)
          after an update occurs
 void onPreDelete(HibernateSession hibernateSession)
          before a delete (insert) occurs
 void onPreSave(HibernateSession hibernateSession)
          before a save (insert) occurs
 void onPreUpdate(HibernateSession hibernateSession)
          before an update occurs
 void setAssignToAttributeDef(boolean assignToAttributeDef)
          if can assign to attribute def
 void setAssignToAttributeDefAssn(boolean assignToAttributeDefAssn)
          allowed to assign to an attribute definition assignment
 void setAssignToAttributeDefAssnDb(String assignToAttributeDefAssnDb)
          allowed to assign to an attribute definition assignment
 void setAssignToAttributeDefDb(String assignToAttributeDef1)
          if can assign to attribute def
 void setAssignToEffMembership(boolean assignToEffMembership)
          if can assign to effective membership
 void setAssignToEffMembershipAssn(boolean assignToEffMembershipAssn)
          allowed to assign to an effective membership assignment
 void setAssignToEffMembershipAssnDb(String assignToEffMembershipAssnDb1)
          allowed to assign to an effective membership assignment
 void setAssignToEffMembershipDb(String assignToEffMembership1)
          if can assign to effective membership
 void setAssignToGroup(boolean assignToGroup)
          if can assign to group/role
 void setAssignToGroupAssn(boolean assignToGroupAssn)
          if can assign to assignment of group/role
 void setAssignToGroupAssnDb(String assignToGroupAssn1)
          if can assign to assignment of group/role
 void setAssignToGroupDb(String assignToGroup1)
          if can assign to group/role
 void setAssignToImmMembership(boolean assignToImmMembership)
          if can assign to immediate membership
 void setAssignToImmMembershipAssn(boolean assignToImmMembershipAssn)
          allowed to assign to an immediate membership assignment
 void setAssignToImmMembershipAssnDb(String assignToImmMembershipAssn1)
          allowed to assign to an immediate membership assignment
 void setAssignToImmMembershipDb(String assignToImmMembership1)
          if can assign to immediate membership
 void setAssignToMember(boolean assignToMember)
          if can assign to member
 void setAssignToMemberAssn(boolean assignToMemberAssn)
          allowed to assign to a member assignment
 void setAssignToMemberAssnDb(String assignToMemberAssn1)
          allowed to assign to a member assignment
 void setAssignToMemberDb(String assignToMember1)
          if can assign to member
 void setAssignToStem(boolean assignToStem)
          if can assign to stem
 void setAssignToStemAssn(boolean assignToStemAssn)
          allowed to assign to a stem assignment
 void setAssignToStemAssnDb(String assignToStemAssn1)
          allowed to assign to a stem assignment
 void setAssignToStemDb(String assignToStem1)
          if can assign to stem
 void setAttributeDefPublic(boolean attributeDefPublic1)
          if the attribute def is public, otherwise you just see it in this stem and substem
 void setAttributeDefPublicDb(String theAttributeDefPublicDb)
          if the attribute def is public, otherwise you just see it in this stem and substem
 void setAttributeDefType(AttributeDefType attributeDefType)
          type of this attribute (e.g.
 void setAttributeDefTypeDb(String theAttributeDefType)
          type of this attribute (e.g.
 void setContextId(String contextId1)
          context id of the transaction
 void setCreatedOn(Timestamp createdOn1)
          when created
 void setCreatedOnDb(Long createdOn1)
          when created
 void setCreatorId(String creatorId1)
           
 void setDescription(String description1)
          description of attribute, friendly description, e.g.
 void setExtension(String extension1)
          extension of attribute expireTime
 void setExtensionDb(String extension1)
          extension of attribute expireTime
 void setId(String id1)
          id of this attribute def
 void setIdIndex(Long idIndex1)
          id of the group as a unique integer
 void setLastUpdated(Timestamp lastUpdated1)
          when last updated
 void setLastUpdatedDb(Long lastUpdated1)
          when last updated
 void setMultiAssignable(boolean multiAssignable1)
          if this attribute can be assigned to the same action to the same object more than once
 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
 void setMultiValued(boolean multiValued1)
          if more than one value (same type) can be assigned to the attribute assignment
 void setMultiValuedDb(String multiValuedDb)
          if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernate
 void setName(String value)
          Set attributeDef name.
 void setNameDb(String name1)
           
 void setStemId(String stemId1)
          stem that this attribute is in
 void setValueType(AttributeDefValueType valueType1)
          type of the value, int, double, string, marker
 void setValueTypeDb(String valueType1)
          type of the value, int, double, string, marker
 void store()
          store this group (update) to database
 String toString()
           
 void validate()
           
 void xmlCopyBusinessPropertiesToExisting(AttributeDef existingRecord)
          copy business (non update) properties to an existing record
 boolean xmlDifferentBusinessProperties(AttributeDef other)
          see if the non update cols are different (e.g.
 boolean xmlDifferentUpdateProperties(AttributeDef other)
          see if the update cols are different (e.g.
 String xmlGetId()
          set id key in db
 AttributeDef xmlRetrieveByIdOrKey()
          retrieve from db by id or key.
 AttributeDef xmlSaveBusinessProperties(AttributeDef existingRecord)
          save the business properties (not update properties)
 void xmlSaveUpdateProperties()
          save the udpate properties (e.g.
 void xmlSetId(String theId)
          set id key in db
 XmlExportAttributeDef xmlToExportAttributeDef(GrouperVersion grouperVersion)
          convert to xml bean for export
 String xmlToString()
          convert to string for log
 
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

public static final String VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
See Also:
Constant Field Values

VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

public static final String VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
See Also:
Constant Field Values

VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY

public static final String VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
See Also:
Constant Field Values

ACTION_DEFAULT

public static final String ACTION_DEFAULT
default action

See Also:
Constant Field Values

TABLE_GROUPER_ATTRIBUTE_DEF

public static final String TABLE_GROUPER_ATTRIBUTE_DEF
name of the groups attribute def table in the db

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_ATTRIBUTE_DEF

public static final String COLUMN_ASSIGN_TO_ATTRIBUTE_DEF
constant for column for: assign_to_attribute_def

See Also:
Constant Field Values

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:
Constant Field Values

COLUMN_ASSIGN_TO_EFF_MEMBERSHIP

public static final String COLUMN_ASSIGN_TO_EFF_MEMBERSHIP
constant for column for: assign_to_eff_membership

See Also:
Constant Field Values

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:
Constant Field Values

COLUMN_ASSIGN_TO_GROUP

public static final String COLUMN_ASSIGN_TO_GROUP
constant for column for: assign_to_group

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_GROUP_ASSN

public static final String COLUMN_ASSIGN_TO_GROUP_ASSN
constant for column for: assign_to_group_assn

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_IMM_MEMBERSHIP

public static final String COLUMN_ASSIGN_TO_IMM_MEMBERSHIP
constant for column for: assign_to_imm_membership

See Also:
Constant Field Values

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:
Constant Field Values

COLUMN_ASSIGN_TO_MEMBER

public static final String COLUMN_ASSIGN_TO_MEMBER
constant for column for: assign_to_member

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_MEMBER_ASSN

public static final String COLUMN_ASSIGN_TO_MEMBER_ASSN
constant for column for: assign_to_member_assn

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_STEM

public static final String COLUMN_ASSIGN_TO_STEM
constant for column for: assign_to_stem

See Also:
Constant Field Values

COLUMN_ASSIGN_TO_STEM_ASSN

public static final String COLUMN_ASSIGN_TO_STEM_ASSN
constant for column for: assign_to_stem_assn

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_DEF_PUBLIC

public static final String COLUMN_ATTRIBUTE_DEF_PUBLIC
if the attribute def is public

See Also:
Constant Field Values

COLUMN_ATTRIBUTE_DEF_TYPE

public static final String COLUMN_ATTRIBUTE_DEF_TYPE
column

See Also:
Constant Field Values

COLUMN_CONTEXT_ID

public static final String COLUMN_CONTEXT_ID
column

See Also:
Constant Field Values

COLUMN_CREATED_ON

public static final String COLUMN_CREATED_ON
column

See Also:
Constant Field Values

COLUMN_CREATOR_ID

public static final String COLUMN_CREATOR_ID
column

See Also:
Constant Field Values

COLUMN_LAST_UPDATED

public static final String COLUMN_LAST_UPDATED
column

See Also:
Constant Field Values

COLUMN_DESCRIPTION

public static final String COLUMN_DESCRIPTION
column

See Also:
Constant Field Values

COLUMN_EXTENSION

public static final String COLUMN_EXTENSION
column

See Also:
Constant Field Values

COLUMN_NAME

public static final String COLUMN_NAME
column

See Also:
Constant Field Values

COLUMN_MULTI_ASSIGNABLE

public static final String COLUMN_MULTI_ASSIGNABLE
column

See Also:
Constant Field Values

COLUMN_MULTI_VALUED

public static final String COLUMN_MULTI_VALUED
column

See Also:
Constant Field Values

COLUMN_STEM_ID

public static final String COLUMN_STEM_ID
column

See Also:
Constant Field Values

COLUMN_VALUE_TYPE

public static final String COLUMN_VALUE_TYPE
column

See Also:
Constant Field Values

COLUMN_ID

public static final String COLUMN_ID
column

See Also:
Constant Field Values

COLUMN_ID_INDEX

public static final String COLUMN_ID_INDEX
unique number for this attribute def

See Also:
Constant Field Values

FIELD_ASSIGN_TO_ATTRIBUTE_DEF

public static final String FIELD_ASSIGN_TO_ATTRIBUTE_DEF
constant for field name for: assignToAttributeDef

See Also:
Constant Field Values

FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN

public static final String FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
constant for field name for: assignToAttributeDefAssn

See Also:
Constant Field Values

FIELD_ASSIGN_TO_EFF_MEMBERSHIP

public static final String FIELD_ASSIGN_TO_EFF_MEMBERSHIP
constant for field name for: assignToEffMembership

See Also:
Constant Field Values

FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN

public static final String FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
constant for field name for: assignToEffMembershipAssn

See Also:
Constant Field Values

FIELD_ASSIGN_TO_GROUP

public static final String FIELD_ASSIGN_TO_GROUP
constant for field name for: assignToGroup

See Also:
Constant Field Values

FIELD_ASSIGN_TO_GROUP_ASSN

public static final String FIELD_ASSIGN_TO_GROUP_ASSN
constant for field name for: assignToGroupAssn

See Also:
Constant Field Values

FIELD_ASSIGN_TO_IMM_MEMBERSHIP

public static final String FIELD_ASSIGN_TO_IMM_MEMBERSHIP
constant for field name for: assignToImmMembership

See Also:
Constant Field Values

FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN

public static final String FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
constant for field name for: assignToImmMembershipAssn

See Also:
Constant Field Values

FIELD_ASSIGN_TO_MEMBER

public static final String FIELD_ASSIGN_TO_MEMBER
constant for field name for: assignToMember

See Also:
Constant Field Values

FIELD_ASSIGN_TO_MEMBER_ASSN

public static final String FIELD_ASSIGN_TO_MEMBER_ASSN
constant for field name for: assignToMemberAssn

See Also:
Constant Field Values

FIELD_ASSIGN_TO_STEM

public static final String FIELD_ASSIGN_TO_STEM
constant for field name for: assignToStem

See Also:
Constant Field Values

FIELD_ASSIGN_TO_STEM_ASSN

public static final String FIELD_ASSIGN_TO_STEM_ASSN
constant for field name for: assignToStemAssn

See Also:
Constant Field Values

FIELD_ATTRIBUTE_DEF_PUBLIC

public static final String FIELD_ATTRIBUTE_DEF_PUBLIC
constant for field name for: attributeDefPublic

See Also:
Constant Field Values

FIELD_ATTRIBUTE_DEF_TYPE

public static final String FIELD_ATTRIBUTE_DEF_TYPE
constant for field name for: attributeDefType

See Also:
Constant Field Values

FIELD_CONTEXT_ID

public static final String FIELD_CONTEXT_ID
constant for field name for: contextId

See Also:
Constant Field Values

FIELD_CREATED_ON_DB

public static final String FIELD_CREATED_ON_DB
constant for field name for: createdOnDb

See Also:
Constant Field Values

FIELD_CREATOR_ID

public static final String FIELD_CREATOR_ID
constant for field name for: creatorId

See Also:
Constant Field Values

FIELD_DESCRIPTION

public static final String FIELD_DESCRIPTION
constant for field name for: description

See Also:
Constant Field Values

FIELD_EXTENSION

public static final String FIELD_EXTENSION
constant for field name for: extension

See Also:
Constant Field Values

FIELD_ID

public static final String FIELD_ID
constant for field name for: id

See Also:
Constant Field Values

FIELD_ID_INDEX

public static final String FIELD_ID_INDEX
constant for field name for: idIndex

See Also:
Constant Field Values

FIELD_LAST_UPDATED_DB

public static final String FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb

See Also:
Constant Field Values

FIELD_MULTI_ASSIGNABLE

public static final String FIELD_MULTI_ASSIGNABLE
constant for field name for: multiAssignable

See Also:
Constant Field Values

FIELD_MULTI_VALUED

public static final String FIELD_MULTI_VALUED
constant for field name for: multiValued

See Also:
Constant Field Values

FIELD_NAME

public static final String FIELD_NAME
constant for field name for: name

See Also:
Constant Field Values

FIELD_STEM_ID

public static final String FIELD_STEM_ID
constant for field name for: stemId

See Also:
Constant Field Values

FIELD_VALUE_TYPE

public static final String FIELD_VALUE_TYPE
constant for field name for: valueType

See Also:
Constant Field Values
Constructor Detail

AttributeDef

public AttributeDef()
Method Detail

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:
Object.clone()

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 edu.internet2.middleware.subject.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:
Object.equals(java.lang.Object)

hashCode

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

getUuid

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

toString

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

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:
XmlImportableBase.xmlCopyBusinessPropertiesToExisting(java.lang.Object)

getParentStem

public Stem getParentStem()
Get parent stem.
 Stem parent = g.getParentStem();
 

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:
XmlImportableBase.xmlDifferentBusinessProperties(java.lang.Object)

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:
XmlImportableBase.xmlDifferentUpdateProperties(java.lang.Object)

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:
XmlImportable.xmlRetrieveByIdOrKey()

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:
XmlImportableBase.xmlSaveBusinessProperties(java.lang.Object)

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:
XmlImportableBase.xmlSaveUpdateProperties()

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:
XmlImportableBase.xmlGetId()

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:
XmlImportableBase.xmlSetId(java.lang.String)

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:
XmlImportableBase.xmlToString()

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:
GrouperAPI.dbVersionDifferentFields()

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:
GrouperAPI.onPostDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)

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:
HibGrouperLifecycle.onPostSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

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:
HibGrouperLifecycle.onPostUpdate(HibernateSession)

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:
GrouperAPI.onPreDelete(edu.internet2.middleware.grouper.hibernate.HibernateSession)

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:
GrouperAPI.onPreSave(edu.internet2.middleware.grouper.hibernate.HibernateSession)

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:
GrouperAPI.onPreUpdate(edu.internet2.middleware.grouper.hibernate.HibernateSession)

compareTo

public int compareTo(AttributeDef that)
Specified by:
compareTo in interface Comparable<AttributeDef>
See Also:
Comparable.compareTo(Object)

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:
GrouperObject.getDisplayName()

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:
GrouperObject.matchesLowerSearchStrings(Set)