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
public class AttributeDef
extends GrouperAPI
implements GrouperObject, GrouperHasContext, Hib3GrouperVersioned, Owner, XmlImportable<AttributeDef>, AttributeAssignable, Comparable<GrouperObject>
definition of an attribute
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdefault actionstatic final Stringconstant for column for: assign_to_attribute_defstatic final Stringconstant for column for: assign_to_attribute_def_assnstatic final Stringconstant for column for: assign_to_eff_membershipstatic final Stringconstant for column for: assign_to_eff_membership_assnstatic final Stringconstant for column for: assign_to_groupstatic final Stringconstant for column for: assign_to_group_assnstatic final Stringconstant for column for: assign_to_imm_membershipstatic final Stringconstant for column for: assign_to_imm_membership_assnstatic final Stringconstant for column for: assign_to_memberstatic final Stringconstant for column for: assign_to_member_assnstatic final Stringconstant for column for: assign_to_stemstatic final Stringconstant for column for: assign_to_stem_assnstatic final Stringif the attribute def is publicstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringunique number for this attribute defstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringcolumnstatic final Stringconstant for field name for: assignToAttributeDefstatic final Stringconstant for field name for: assignToAttributeDefAssnstatic final Stringconstant for field name for: assignToEffMembershipstatic final Stringconstant for field name for: assignToEffMembershipAssnstatic final Stringconstant for field name for: assignToGroupstatic final Stringconstant for field name for: assignToGroupAssnstatic final Stringconstant for field name for: assignToImmMembershipstatic final Stringconstant for field name for: assignToImmMembershipAssnstatic final Stringconstant for field name for: assignToMemberstatic final Stringconstant for field name for: assignToMemberAssnstatic final Stringconstant for field name for: assignToStemstatic final Stringconstant for field name for: assignToStemAssnstatic final Stringconstant for field name for: attributeDefPublicstatic final Stringconstant for field name for: attributeDefTypestatic final Stringconstant for field name for: contextIdstatic final Stringconstant for field name for: createdOnDbstatic final Stringconstant for field name for: creatorIdstatic final Stringconstant for field name for: descriptionstatic final Stringconstant for field name for: extensionstatic final Stringconstant for field name for: idstatic final Stringconstant for field name for: idIndexstatic final Stringconstant for field name for: lastUpdatedDbstatic final Stringconstant for field name for: multiAssignablestatic final Stringconstant for field name for: multiValuedstatic final Stringconstant for field name for: namestatic final Stringconstant for field name for: stemIdstatic final Stringconstant for field name for: valueTypestatic final Stringname of the groups attribute def table in the dbstatic final Stringstatic final Stringstatic final StringFields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBERFields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanassignIdIndex(long theIdIndex) assign different id indexclone()deep clone the fields in this objectintcompareTo(GrouperObject that) save the state when retrieving from DBsee which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeNamevoidtake a snapshot of the data since this is what is in the dbvoiddelete()delete this record (and security and actions etc, but not attribute def names yet)static booleansee if we are in the middle of a delete (e.g. for hook)booleanallowed to assign to an attribute definition assignmentif can assign to attribute defallowed to assign to an effective membership assignmentif can assign to effective membershipif can assign to assignment of group/roleif can assign to group/roleallowed to assign to an immediate membership assignmentif can assign to immediate membershipallowed to assign to a member assignmentif can assign to memberallowed to assign to a stem assignmentif can assign to stemdelegate the action list management to this classhibernate mapped method for if this attribute def is publictype of this attribute (e.g. attribute or privilege)type of this attribute (e.g. attribute or privilege)get the logic delegatethis delegate works on attributes and values at the same timecontext id of the transactionwhen createdwhen createdget the subject that created this object or null if null or not founddescription of attribute, friendly description, e.g. in sentence form, about what the attribute is aboutdisplay name of objectextension of attribute expireTimeextension of attribute expireTimegetId()id of this attribute defid of the group as a unique integerwhen last updatedwhen last updatedif this attribute can be assigned to the same action to the same object more than once convert to string for hibernateif more than one value (same type) can be assigned to the attribute assignment convert to String for hibernategetName()Get group name.Get parent stem.get the name of the parent stemthis method makes this class more compatible with Group and Stemprivilege delegate to handle security on this attribute defgetStem()stem that this attribute is instem that this attribute is ingetUuid()type of the value, int, double, string, markertype of the value, int, double, string, markerinthashCode()booleanif can assign to attribute defbooleanallowed to assign to an attribute definition assignmentbooleanif can assign to effective membershipbooleanallowed to assign to an effective membership assignmentbooleanif can assign to group/rolebooleanif can assign to assignment of group/rolebooleanif can assign to immediate membershipbooleanallowed to assign to an immediate membership assignmentbooleanif can assign to memberbooleanallowed to assign to a member assignmentbooleanif can assign to stembooleanallowed to assign to a stem assignmentbooleanif the attribute def is public, otherwise you just see it in this stem and substembooleanif this attribute can be assigned to the same action to the same object more than oncebooleanif more than one value (same type) can be assigned to the attribute assignmentstatic StringmassageSortField(String sortField) attribute defs dont have display extensions or name, so change them to extension and namebooleanmatchesLowerSearchStrings(Set<String> filterStrings) see if this object matches the filter stringsvoidonPostDelete(HibernateSession hibernateSession) after a delete occursvoidonPostSave(HibernateSession hibernateSession) after a save (insert) occursvoidonPostUpdate(HibernateSession hibernateSession) after an update occursvoidonPreDelete(HibernateSession hibernateSession) before a delete (insert) occursvoidonPreSave(HibernateSession hibernateSession) before a save (insert) occursvoidonPreUpdate(HibernateSession hibernateSession) before an update occursvoidsetAssignToAttributeDef(boolean assignToAttributeDef) if can assign to attribute defvoidsetAssignToAttributeDefAssn(boolean assignToAttributeDefAssn) allowed to assign to an attribute definition assignmentvoidsetAssignToAttributeDefAssnDb(String assignToAttributeDefAssnDb) allowed to assign to an attribute definition assignmentvoidsetAssignToAttributeDefDb(String assignToAttributeDef1) if can assign to attribute defvoidsetAssignToEffMembership(boolean assignToEffMembership) if can assign to effective membershipvoidsetAssignToEffMembershipAssn(boolean assignToEffMembershipAssn) allowed to assign to an effective membership assignmentvoidsetAssignToEffMembershipAssnDb(String assignToEffMembershipAssnDb1) allowed to assign to an effective membership assignmentvoidsetAssignToEffMembershipDb(String assignToEffMembership1) if can assign to effective membershipvoidsetAssignToGroup(boolean assignToGroup) if can assign to group/rolevoidsetAssignToGroupAssn(boolean assignToGroupAssn) if can assign to assignment of group/rolevoidsetAssignToGroupAssnDb(String assignToGroupAssn1) if can assign to assignment of group/rolevoidsetAssignToGroupDb(String assignToGroup1) if can assign to group/rolevoidsetAssignToImmMembership(boolean assignToImmMembership) if can assign to immediate membershipvoidsetAssignToImmMembershipAssn(boolean assignToImmMembershipAssn) allowed to assign to an immediate membership assignmentvoidsetAssignToImmMembershipAssnDb(String assignToImmMembershipAssn1) allowed to assign to an immediate membership assignmentvoidsetAssignToImmMembershipDb(String assignToImmMembership1) if can assign to immediate membershipvoidsetAssignToMember(boolean assignToMember) if can assign to membervoidsetAssignToMemberAssn(boolean assignToMemberAssn) allowed to assign to a member assignmentvoidsetAssignToMemberAssnDb(String assignToMemberAssn1) allowed to assign to a member assignmentvoidsetAssignToMemberDb(String assignToMember1) if can assign to membervoidsetAssignToStem(boolean assignToStem) if can assign to stemvoidsetAssignToStemAssn(boolean assignToStemAssn) allowed to assign to a stem assignmentvoidsetAssignToStemAssnDb(String assignToStemAssn1) allowed to assign to a stem assignmentvoidsetAssignToStemDb(String assignToStem1) if can assign to stemvoidsetAttributeDefPublic(boolean attributeDefPublic1) if the attribute def is public, otherwise you just see it in this stem and substemvoidsetAttributeDefPublicDb(String theAttributeDefPublicDb) if the attribute def is public, otherwise you just see it in this stem and substemvoidsetAttributeDefType(AttributeDefType attributeDefType) type of this attribute (e.g. attribute or privilege)voidsetAttributeDefTypeDb(String theAttributeDefType) type of this attribute (e.g. attr or priv or limit)voidsetContextId(String contextId1) context id of the transactionvoidsetCreatedOn(Timestamp createdOn1) when createdvoidsetCreatedOnDb(Long createdOn1) when createdvoidsetCreatorId(String creatorId1) voidsetDescription(String description1) description of attribute, friendly description, e.g. in sentence form, about what the attribute is aboutvoidsetExtension(String extension1) extension of attribute expireTimevoidsetExtensionDb(String extension1) extension of attribute expireTimevoidid of this attribute defvoidsetIdIndex(Long idIndex1) id of the group as a unique integervoidsetLastUpdated(Timestamp lastUpdated1) when last updatedvoidsetLastUpdatedDb(Long lastUpdated1) when last updatedvoidsetMultiAssignable(boolean multiAssignable1) if this attribute can be assigned to the same action to the same object more than oncevoidsetMultiAssignableDb(String multiAssignableDb) if this attribute can be assigned to the same action to the same object more than once convert to string for hibernatevoidsetMultiValued(boolean multiValued1) if more than one value (same type) can be assigned to the attribute assignmentvoidsetMultiValuedDb(String multiValuedDb) if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernatevoidSet attributeDef name.voidvoidstem that this attribute is invoidsetValueType(AttributeDefValueType valueType1) type of the value, int, double, string, markervoidsetValueTypeDb(String valueType1) type of the value, int, double, string, markervoidstore()store this group (update) to databasetoString()voidvalidate()voidxmlCopyBusinessPropertiesToExisting(AttributeDef existingRecord) copy business (non update) properties to an existing recordbooleansee if the non update cols are different (e.g. name)booleansee if the update cols are different (e.g. last updated)xmlGetId()set id key in dbretrieve from db by id or key.xmlSaveBusinessProperties(AttributeDef existingRecord) save the business properties (not update properties)voidsave the udpate properties (e.g. last updated).voidset id key in dbxmlToExportAttributeDef(GrouperVersion grouperVersion) convert to xml bean for exportconvert to string for logMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersionClear, dbVersionIsDifferent, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
VALIDATION_NAME_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
- See Also:
-
VALIDATION_EXTENSION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
- See Also:
-
VALIDATION_DESCRIPTION_OF_ATTRIBUTE_DEF_TOO_LONG_KEY
- See Also:
-
ACTION_DEFAULT
default action- See Also:
-
TABLE_GROUPER_ATTRIBUTE_DEF
name of the groups attribute def table in the db- See Also:
-
COLUMN_ASSIGN_TO_ATTRIBUTE_DEF
constant for column for: assign_to_attribute_def- See Also:
-
COLUMN_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
constant for column for: assign_to_attribute_def_assn- See Also:
-
COLUMN_ASSIGN_TO_EFF_MEMBERSHIP
constant for column for: assign_to_eff_membership- See Also:
-
COLUMN_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
constant for column for: assign_to_eff_membership_assn- See Also:
-
COLUMN_ASSIGN_TO_GROUP
constant for column for: assign_to_group- See Also:
-
COLUMN_ASSIGN_TO_GROUP_ASSN
constant for column for: assign_to_group_assn- See Also:
-
COLUMN_ASSIGN_TO_IMM_MEMBERSHIP
constant for column for: assign_to_imm_membership- See Also:
-
COLUMN_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
constant for column for: assign_to_imm_membership_assn- See Also:
-
COLUMN_ASSIGN_TO_MEMBER
constant for column for: assign_to_member- See Also:
-
COLUMN_ASSIGN_TO_MEMBER_ASSN
constant for column for: assign_to_member_assn- See Also:
-
COLUMN_ASSIGN_TO_STEM
constant for column for: assign_to_stem- See Also:
-
COLUMN_ASSIGN_TO_STEM_ASSN
constant for column for: assign_to_stem_assn- See Also:
-
COLUMN_ATTRIBUTE_DEF_PUBLIC
if the attribute def is public- See Also:
-
COLUMN_ATTRIBUTE_DEF_TYPE
column- See Also:
-
COLUMN_CONTEXT_ID
column- See Also:
-
COLUMN_CREATED_ON
column- See Also:
-
COLUMN_CREATOR_ID
column- See Also:
-
COLUMN_LAST_UPDATED
column- See Also:
-
COLUMN_DESCRIPTION
column- See Also:
-
COLUMN_EXTENSION
column- See Also:
-
COLUMN_NAME
column- See Also:
-
COLUMN_MULTI_ASSIGNABLE
column- See Also:
-
COLUMN_MULTI_VALUED
column- See Also:
-
COLUMN_STEM_ID
column- See Also:
-
COLUMN_VALUE_TYPE
column- See Also:
-
COLUMN_ID
column- See Also:
-
COLUMN_ID_INDEX
unique number for this attribute def- See Also:
-
FIELD_ASSIGN_TO_ATTRIBUTE_DEF
constant for field name for: assignToAttributeDef- See Also:
-
FIELD_ASSIGN_TO_ATTRIBUTE_DEF_ASSN
constant for field name for: assignToAttributeDefAssn- See Also:
-
FIELD_ASSIGN_TO_EFF_MEMBERSHIP
constant for field name for: assignToEffMembership- See Also:
-
FIELD_ASSIGN_TO_EFF_MEMBERSHIP_ASSN
constant for field name for: assignToEffMembershipAssn- See Also:
-
FIELD_ASSIGN_TO_GROUP
constant for field name for: assignToGroup- See Also:
-
FIELD_ASSIGN_TO_GROUP_ASSN
constant for field name for: assignToGroupAssn- See Also:
-
FIELD_ASSIGN_TO_IMM_MEMBERSHIP
constant for field name for: assignToImmMembership- See Also:
-
FIELD_ASSIGN_TO_IMM_MEMBERSHIP_ASSN
constant for field name for: assignToImmMembershipAssn- See Also:
-
FIELD_ASSIGN_TO_MEMBER
constant for field name for: assignToMember- See Also:
-
FIELD_ASSIGN_TO_MEMBER_ASSN
constant for field name for: assignToMemberAssn- See Also:
-
FIELD_ASSIGN_TO_STEM
constant for field name for: assignToStem- See Also:
-
FIELD_ASSIGN_TO_STEM_ASSN
constant for field name for: assignToStemAssn- See Also:
-
FIELD_ATTRIBUTE_DEF_PUBLIC
constant for field name for: attributeDefPublic- See Also:
-
FIELD_ATTRIBUTE_DEF_TYPE
constant for field name for: attributeDefType- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CREATED_ON_DB
constant for field name for: createdOnDb- See Also:
-
FIELD_CREATOR_ID
constant for field name for: creatorId- See Also:
-
FIELD_DESCRIPTION
constant for field name for: description- See Also:
-
FIELD_EXTENSION
constant for field name for: extension- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_ID_INDEX
constant for field name for: idIndex- See Also:
-
FIELD_LAST_UPDATED_DB
constant for field name for: lastUpdatedDb- See Also:
-
FIELD_MULTI_ASSIGNABLE
constant for field name for: multiAssignable- See Also:
-
FIELD_MULTI_VALUED
constant for field name for: multiValued- See Also:
-
FIELD_NAME
constant for field name for: name- See Also:
-
FIELD_STEM_ID
constant for field name for: stemId- See Also:
-
FIELD_VALUE_TYPE
constant for field name for: valueType- See Also:
-
-
Constructor Details
-
AttributeDef
public AttributeDef()
-
-
Method Details
-
getParentStemName
get the name of the parent stem- Returns:
- the name of the parent stem
-
massageSortField
attribute defs dont have display extensions or name, so change them to extension and name- Parameters:
sortField-- Returns:
- the new sort field
-
clone
deep clone the fields in this object- Specified by:
clonein interfaceGrouperCloneable- Specified by:
clonein classGrouperAPI- Returns:
- the clone of the object
- See Also:
-
getAttributeDefScopeDelegate
- Returns:
- the delegate
-
getAttributeDelegate
Description copied from interface:AttributeAssignableget the logic delegate- Specified by:
getAttributeDelegatein interfaceAttributeAssignable- Returns:
- the delegate
-
getAttributeValueDelegate
this delegate works on attributes and values at the same time- Specified by:
getAttributeValueDelegatein interfaceAttributeAssignable- Returns:
- the delegate
-
getAttributeDefActionDelegate
delegate the action list management to this class- Returns:
- the delegate
-
getCreatorId
- Returns:
- the creatorId
-
getCreateSubject
get the subject that created this object or null if null or not found- Returns:
- the subject or null
-
setCreatorId
- Parameters:
creatorId1- the creatorId to set
-
store
public void store()store this group (update) to database -
validate
public void validate() -
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
if can assign to group/role- Returns:
- the assignToGroup
-
setAssignToGroupDb
if can assign to group/role- Parameters:
assignToGroup1- the assignToGroup to set
-
getAssignToStemDb
if can assign to stem- Returns:
- the assignToStem
-
setAssignToStemDb
if can assign to stem- Parameters:
assignToStem1- the assignToStem to set
-
getAssignToMemberDb
if can assign to member- Returns:
- the assignToMember
-
setAssignToMemberDb
if can assign to member- Parameters:
assignToMember1- the assignToMember to set
-
getAssignToImmMembershipDb
if can assign to immediate membership- Returns:
- the assignToImmMembership
-
setAssignToImmMembershipDb
if can assign to immediate membership- Parameters:
assignToImmMembership1- the assignToImmMembership to set
-
getAssignToEffMembershipDb
if can assign to effective membership- Returns:
- the assignToEffMembership
-
setAssignToEffMembershipDb
if can assign to effective membership- Parameters:
assignToEffMembership1- the assignToEffMembership to set
-
getAssignToAttributeDefDb
if can assign to attribute def- Returns:
- the assignToAttributeDef
-
setAssignToAttributeDefDb
if can assign to attribute def- Parameters:
assignToAttributeDef1- the assignToAttributeDef to set
-
getAssignToGroupAssnDb
if can assign to assignment of group/role- Returns:
- the assignToGroupAssn
-
setAssignToGroupAssnDb
if can assign to assignment of group/role- Parameters:
assignToGroupAssn1- the assignToGroupAssn to set
-
getAssignToStemAssnDb
allowed to assign to a stem assignment- Returns:
- the assignToStemAssn
-
setAssignToStemAssnDb
allowed to assign to a stem assignment- Parameters:
assignToStemAssn1- the assignToStemAssn to set
-
getAssignToMemberAssnDb
allowed to assign to a member assignment- Returns:
- the assignToMemberAssn
-
setAssignToMemberAssnDb
allowed to assign to a member assignment- Parameters:
assignToMemberAssn1- the assignToMemberAssn to set
-
getAssignToImmMembershipAssnDb
allowed to assign to an immediate membership assignment- Returns:
- the assignToImmMembershipAssn
-
setAssignToImmMembershipAssnDb
allowed to assign to an immediate membership assignment- Parameters:
assignToImmMembershipAssn1- the assignToImmMembershipAssn to set
-
getAssignToEffMembershipAssnDb
allowed to assign to an effective membership assignment- Returns:
- the assignToEffMembershipAssn
-
setAssignToEffMembershipAssnDb
allowed to assign to an effective membership assignment- Parameters:
assignToEffMembershipAssnDb1- the assignToEffMembershipAssn to set
-
getAssignToAttributeDefAssnDb
allowed to assign to an attribute definition assignment- Returns:
- the assignToAttributeDefAssn
-
setAssignToAttributeDefAssnDb
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
hibernate mapped method for if this attribute def is public- Returns:
- true if public, false if not (default false)
-
setAttributeDefPublicDb
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
type of this attribute (e.g. attribute or privilege)- Returns:
- attribute def type
-
setAttributeDefType
type of this attribute (e.g. attribute or privilege)- Parameters:
attributeDefType-
-
getAttributeDefTypeDb
type of this attribute (e.g. attribute or privilege)- Returns:
- the attribute def type
-
setAttributeDefTypeDb
type of this attribute (e.g. attr or priv or limit)- Parameters:
theAttributeDefType-
-
getParentUuid
this method makes this class more compatible with Group and Stem- Returns:
- the parent stem id
-
getStemId
stem that this attribute is in- Returns:
- the stem id
-
getStem
stem that this attribute is in- Returns:
- the stem id
-
setStemId
stem that this attribute is in- Parameters:
stemId1-
-
getValueType
type of the value, int, double, string, marker- Returns:
- the type
-
setValueType
type of the value, int, double, string, marker- Parameters:
valueType1-
-
getValueTypeDb
type of the value, int, double, string, marker- Returns:
- the type
-
setValueTypeDb
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
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
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
if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernate- Returns:
- if multivalued
-
setMultiValuedDb
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
context id of the transaction- Returns:
- context id
-
setContextId
context id of the transaction- Specified by:
setContextIdin interfaceGrouperHasContext- Parameters:
contextId1-
-
getId
id of this attribute def -
setId
id of this attribute def- Parameters:
id1-
-
getLastUpdated
when last updated- Returns:
- timestamp
-
getLastUpdatedDb
when last updated- Returns:
- timestamp
-
setLastUpdated
when last updated- Parameters:
lastUpdated1-
-
setLastUpdatedDb
when last updated- Parameters:
lastUpdated1-
-
getCreatedOn
when created- Returns:
- timestamp
-
getCreatedOnDb
when created- Returns:
- timestamp
-
setCreatedOn
when created- Parameters:
createdOn1-
-
setCreatedOnDb
when created- Parameters:
createdOn1-
-
getDescription
description of attribute, friendly description, e.g. in sentence form, about what the attribute is about- Specified by:
getDescriptionin interfaceGrouperObject- Returns:
- the description
-
setDescription
description of attribute, friendly description, e.g. in sentence form, about what the attribute is about- Parameters:
description1-
-
getExtension
extension of attribute expireTime- Returns:
- extension
-
getExtensionDb
extension of attribute expireTime- Returns:
- extension
-
setExtension
extension of attribute expireTime- Parameters:
extension1-
-
setExtensionDb
extension of attribute expireTime- Parameters:
extension1-
-
getNameDb
- Returns:
- the name for hibernate
-
setNameDb
- Parameters:
name1-
-
getName
Get group name.- Specified by:
getNamein interfaceGrouperObject- Specified by:
getNamein interfaceOwner- Returns:
- Group name.
- Throws:
GrouperException
-
setName
Set attributeDef name. This should not be called- Parameters:
value- Set extension to this value.
-
equals
-
hashCode
public int hashCode() -
getUuid
-
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
Description copied from interface:XmlImportableBasecopy business (non update) properties to an existing record- Specified by:
xmlCopyBusinessPropertiesToExistingin interfaceXmlImportableBase<AttributeDef>- See Also:
-
getParentStem
Get parent stem.Stem parent = g.getParentStem();
- Specified by:
getParentStemin interfaceGrouperObject- Returns:
- Parent
Stem. - Throws:
IllegalStateException
-
xmlDifferentBusinessProperties
Description copied from interface:XmlImportableBasesee if the non update cols are different (e.g. name)- Specified by:
xmlDifferentBusinessPropertiesin interfaceXmlImportableBase<AttributeDef>- Parameters:
other- the one to compare with- Returns:
- true if so
- See Also:
-
xmlDifferentUpdateProperties
Description copied from interface:XmlImportableBasesee if the update cols are different (e.g. last updated)- Specified by:
xmlDifferentUpdatePropertiesin interfaceXmlImportableBase<AttributeDef>- Parameters:
other- the one to compare with- Returns:
- true if so
- See Also:
-
xmlRetrieveByIdOrKey
Description copied from interface:XmlImportableretrieve from db by id or key. throws exception if duplicate- Specified by:
xmlRetrieveByIdOrKeyin interfaceXmlImportable<AttributeDef>- Returns:
- the object or null if not found
- See Also:
-
xmlSaveBusinessProperties
Description copied from interface:XmlImportableBasesave the business properties (not update properties)- Specified by:
xmlSaveBusinessPropertiesin interfaceXmlImportableBase<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:XmlImportableBasesave the udpate properties (e.g. last updated). Note, this is done with a sql update statement, not with hibernate- Specified by:
xmlSaveUpdatePropertiesin interfaceXmlImportableBase<AttributeDef>- See Also:
-
xmlToExportAttributeDef
convert to xml bean for export- Parameters:
grouperVersion-- Returns:
- xml bean
-
xmlGetId
Description copied from interface:XmlImportableBaseset id key in db- Specified by:
xmlGetIdin interfaceXmlImportableBase<AttributeDef>- Returns:
- id
- See Also:
-
xmlSetId
Description copied from interface:XmlImportableBaseset id key in db- Specified by:
xmlSetIdin interfaceXmlImportableBase<AttributeDef>- See Also:
-
xmlToString
Description copied from interface:XmlImportableBaseconvert to string for log- Specified by:
xmlToStringin interfaceXmlImportableBase<AttributeDef>- Returns:
- the string value for log
- See Also:
-
dbVersion
save the state when retrieving from DB- Overrides:
dbVersionin classGrouperAPI- Returns:
- the dbVersion
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Overrides:
dbVersionResetin classGrouperAPI
-
dbVersionDifferentFields
Description copied from class:GrouperAPIsee which fields have changed compared to the DB state (last known) note that attributes will print out: attribute__attributeName- Overrides:
dbVersionDifferentFieldsin classGrouperAPI- Returns:
- a set of attributes changed, or empty set if none
- See Also:
-
getAttributeAssignTypes
- Returns:
- the set of types
-
onPostDelete
Description copied from interface:HibGrouperLifecycleafter a delete occurs- Specified by:
onPostDeletein interfaceHibGrouperLifecycle- Overrides:
onPostDeletein classGrouperAPI- See Also:
-
onPostSave
Description copied from interface:HibGrouperLifecycleafter a save (insert) occurs- Specified by:
onPostSavein interfaceHibGrouperLifecycle- Overrides:
onPostSavein classGrouperAPI- See Also:
-
onPostUpdate
Description copied from interface:HibGrouperLifecycleafter an update occurs- Specified by:
onPostUpdatein interfaceHibGrouperLifecycle- Overrides:
onPostUpdatein classGrouperAPI- See Also:
-
onPreDelete
Description copied from interface:HibGrouperLifecyclebefore a delete (insert) occurs- Specified by:
onPreDeletein interfaceHibGrouperLifecycle- Overrides:
onPreDeletein classGrouperAPI- See Also:
-
onPreSave
Description copied from interface:HibGrouperLifecyclebefore a save (insert) occurs- Specified by:
onPreSavein interfaceHibGrouperLifecycle- Overrides:
onPreSavein classGrouperAPI- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecyclebefore an update occurs- Specified by:
onPreUpdatein interfaceHibGrouperLifecycle- Overrides:
onPreUpdatein classGrouperAPI- See Also:
-
compareTo
- Specified by:
compareToin interfaceComparable<GrouperObject>- See Also:
-
getIdIndex
id of the group as a unique integer- Returns:
- id
-
setIdIndex
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
Description copied from interface:GrouperObjectdisplay name of object- Specified by:
getDisplayNamein interfaceGrouperObject- Returns:
- display name
- See Also:
-
matchesLowerSearchStrings
Description copied from interface:GrouperObjectsee if this object matches the filter strings- Specified by:
matchesLowerSearchStringsin interfaceGrouperObject- Returns:
- true if matches
- See Also:
-