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
Modifier and TypeFieldDescriptionstatic final String
default actionstatic final String
constant for column for: assign_to_attribute_defstatic final String
constant for column for: assign_to_attribute_def_assnstatic final String
constant for column for: assign_to_eff_membershipstatic final String
constant for column for: assign_to_eff_membership_assnstatic final String
constant for column for: assign_to_groupstatic final String
constant for column for: assign_to_group_assnstatic final String
constant for column for: assign_to_imm_membershipstatic final String
constant for column for: assign_to_imm_membership_assnstatic final String
constant for column for: assign_to_memberstatic final String
constant for column for: assign_to_member_assnstatic final String
constant for column for: assign_to_stemstatic final String
constant for column for: assign_to_stem_assnstatic final String
if the attribute def is publicstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
unique number for this attribute defstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
columnstatic final String
constant for field name for: assignToAttributeDefstatic final String
constant for field name for: assignToAttributeDefAssnstatic final String
constant for field name for: assignToEffMembershipstatic final String
constant for field name for: assignToEffMembershipAssnstatic final String
constant for field name for: assignToGroupstatic final String
constant for field name for: assignToGroupAssnstatic final String
constant for field name for: assignToImmMembershipstatic final String
constant for field name for: assignToImmMembershipAssnstatic final String
constant for field name for: assignToMemberstatic final String
constant for field name for: assignToMemberAssnstatic final String
constant for field name for: assignToStemstatic final String
constant for field name for: assignToStemAssnstatic final String
constant for field name for: attributeDefPublicstatic final String
constant for field name for: attributeDefTypestatic final String
constant for field name for: contextIdstatic final String
constant for field name for: createdOnDbstatic final String
constant for field name for: creatorIdstatic final String
constant for field name for: descriptionstatic final String
constant for field name for: extensionstatic final String
constant for field name for: idstatic final String
constant for field name for: idIndexstatic final String
constant for field name for: lastUpdatedDbstatic final String
constant for field name for: multiAssignablestatic final String
constant for field name for: multiValuedstatic final String
constant for field name for: namestatic final String
constant for field name for: stemIdstatic final String
constant for field name for: valueTypestatic final String
name of the groups attribute def table in the dbstatic final String
static final String
static final String
Fields inherited from class edu.internet2.middleware.grouper.GrouperAPI
COLUMN_HIBERNATE_VERSION_NUMBER, dbVersion, FIELD_DB_VERSION, FIELD_HIBERNATE_VERSION_NUMBER, INITIAL_VERSION_NUMBER
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
assignIdIndex
(long theIdIndex) assign different id indexclone()
deep clone the fields in this objectint
compareTo
(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__attributeNamevoid
take a snapshot of the data since this is what is in the dbvoid
delete()
delete this record (and security and actions etc, but not attribute def names yet)static boolean
see if we are in the middle of a delete (e.g.boolean
allowed 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.type of this attribute (e.g.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.display 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, markerint
hashCode()
boolean
if can assign to attribute defboolean
allowed to assign to an attribute definition assignmentboolean
if can assign to effective membershipboolean
allowed to assign to an effective membership assignmentboolean
if can assign to group/roleboolean
if can assign to assignment of group/roleboolean
if can assign to immediate membershipboolean
allowed to assign to an immediate membership assignmentboolean
if can assign to memberboolean
allowed to assign to a member assignmentboolean
if can assign to stemboolean
allowed to assign to a stem assignmentboolean
if the attribute def is public, otherwise you just see it in this stem and substemboolean
if this attribute can be assigned to the same action to the same object more than onceboolean
if more than one value (same type) can be assigned to the attribute assignmentstatic String
massageSortField
(String sortField) attribute defs dont have display extensions or name, so change them to extension and nameboolean
matchesLowerSearchStrings
(Set<String> filterStrings) see if this object matches the filter stringsvoid
onPostDelete
(HibernateSession hibernateSession) after a delete occursvoid
onPostSave
(HibernateSession hibernateSession) after a save (insert) occursvoid
onPostUpdate
(HibernateSession hibernateSession) after an update occursvoid
onPreDelete
(HibernateSession hibernateSession) before a delete (insert) occursvoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursvoid
setAssignToAttributeDef
(boolean assignToAttributeDef) if can assign to attribute defvoid
setAssignToAttributeDefAssn
(boolean assignToAttributeDefAssn) allowed to assign to an attribute definition assignmentvoid
setAssignToAttributeDefAssnDb
(String assignToAttributeDefAssnDb) allowed to assign to an attribute definition assignmentvoid
setAssignToAttributeDefDb
(String assignToAttributeDef1) if can assign to attribute defvoid
setAssignToEffMembership
(boolean assignToEffMembership) if can assign to effective membershipvoid
setAssignToEffMembershipAssn
(boolean assignToEffMembershipAssn) allowed to assign to an effective membership assignmentvoid
setAssignToEffMembershipAssnDb
(String assignToEffMembershipAssnDb1) allowed to assign to an effective membership assignmentvoid
setAssignToEffMembershipDb
(String assignToEffMembership1) if can assign to effective membershipvoid
setAssignToGroup
(boolean assignToGroup) if can assign to group/rolevoid
setAssignToGroupAssn
(boolean assignToGroupAssn) if can assign to assignment of group/rolevoid
setAssignToGroupAssnDb
(String assignToGroupAssn1) if can assign to assignment of group/rolevoid
setAssignToGroupDb
(String assignToGroup1) if can assign to group/rolevoid
setAssignToImmMembership
(boolean assignToImmMembership) if can assign to immediate membershipvoid
setAssignToImmMembershipAssn
(boolean assignToImmMembershipAssn) allowed to assign to an immediate membership assignmentvoid
setAssignToImmMembershipAssnDb
(String assignToImmMembershipAssn1) allowed to assign to an immediate membership assignmentvoid
setAssignToImmMembershipDb
(String assignToImmMembership1) if can assign to immediate membershipvoid
setAssignToMember
(boolean assignToMember) if can assign to membervoid
setAssignToMemberAssn
(boolean assignToMemberAssn) allowed to assign to a member assignmentvoid
setAssignToMemberAssnDb
(String assignToMemberAssn1) allowed to assign to a member assignmentvoid
setAssignToMemberDb
(String assignToMember1) if can assign to membervoid
setAssignToStem
(boolean assignToStem) if can assign to stemvoid
setAssignToStemAssn
(boolean assignToStemAssn) allowed to assign to a stem assignmentvoid
setAssignToStemAssnDb
(String assignToStemAssn1) allowed to assign to a stem assignmentvoid
setAssignToStemDb
(String assignToStem1) if can assign to stemvoid
setAttributeDefPublic
(boolean attributeDefPublic1) if the attribute def is public, otherwise you just see it in this stem and substemvoid
setAttributeDefPublicDb
(String theAttributeDefPublicDb) if the attribute def is public, otherwise you just see it in this stem and substemvoid
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 transactionvoid
setCreatedOn
(Timestamp createdOn1) when createdvoid
setCreatedOnDb
(Long createdOn1) when createdvoid
setCreatorId
(String creatorId1) void
setDescription
(String description1) description of attribute, friendly description, e.g.void
setExtension
(String extension1) extension of attribute expireTimevoid
setExtensionDb
(String extension1) extension of attribute expireTimevoid
id of this attribute defvoid
setIdIndex
(Long idIndex1) id of the group as a unique integervoid
setLastUpdated
(Timestamp lastUpdated1) when last updatedvoid
setLastUpdatedDb
(Long lastUpdated1) when last updatedvoid
setMultiAssignable
(boolean multiAssignable1) if this attribute can be assigned to the same action to the same object more than oncevoid
setMultiAssignableDb
(String multiAssignableDb) if this attribute can be assigned to the same action to the same object more than once convert to string for hibernatevoid
setMultiValued
(boolean multiValued1) if more than one value (same type) can be assigned to the attribute assignmentvoid
setMultiValuedDb
(String multiValuedDb) if more than one value (same type) can be assigned to the attribute assignment convert to String for hibernatevoid
Set attributeDef name.void
void
stem that this attribute is invoid
setValueType
(AttributeDefValueType valueType1) type of the value, int, double, string, markervoid
setValueTypeDb
(String valueType1) type of the value, int, double, string, markervoid
store()
store this group (update) to databasetoString()
void
validate()
void
xmlCopyBusinessPropertiesToExisting
(AttributeDef existingRecord) copy business (non update) properties to an existing recordboolean
see if the non update cols are different (e.g.boolean
see if the update cols are different (e.g.xmlGetId()
set id key in dbretrieve from db by id or key.xmlSaveBusinessProperties
(AttributeDef existingRecord) save the business properties (not update properties)void
save the udpate properties (e.g.void
set 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:
clone
in interfaceGrouperCloneable
- Specified by:
clone
in classGrouperAPI
- Returns:
- the clone of the object
- See Also:
-
getAttributeDefScopeDelegate
- Returns:
- the delegate
-
getAttributeDelegate
Description copied from interface:AttributeAssignable
get the logic delegate- Specified by:
getAttributeDelegate
in interfaceAttributeAssignable
- Returns:
- the delegate
-
getAttributeValueDelegate
this delegate works on attributes and values at the same time- Specified by:
getAttributeValueDelegate
in 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:
setContextId
in 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:
getDescription
in 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:
getName
in interfaceGrouperObject
- Specified by:
getName
in 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:XmlImportableBase
copy business (non update) properties to an existing record- Specified by:
xmlCopyBusinessPropertiesToExisting
in interfaceXmlImportableBase<AttributeDef>
- See Also:
-
getParentStem
Get parent stem.Stem parent = g.getParentStem();
- Specified by:
getParentStem
in interfaceGrouperObject
- Returns:
- Parent
Stem
. - Throws:
IllegalStateException
-
xmlDifferentBusinessProperties
Description copied from interface:XmlImportableBase
see if the non update cols are different (e.g. name)- Specified by:
xmlDifferentBusinessProperties
in interfaceXmlImportableBase<AttributeDef>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlDifferentUpdateProperties
Description copied from interface:XmlImportableBase
see if the update cols are different (e.g. last updated)- Specified by:
xmlDifferentUpdateProperties
in interfaceXmlImportableBase<AttributeDef>
- Parameters:
other
- the one to compare with- Returns:
- true if so
- See Also:
-
xmlRetrieveByIdOrKey
Description copied from interface:XmlImportable
retrieve from db by id or key. throws exception if duplicate- Specified by:
xmlRetrieveByIdOrKey
in interfaceXmlImportable<AttributeDef>
- Returns:
- the object or null if not found
- See Also:
-
xmlSaveBusinessProperties
Description copied from interface:XmlImportableBase
save the business properties (not update properties)- Specified by:
xmlSaveBusinessProperties
in 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: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 interfaceXmlImportableBase<AttributeDef>
- See Also:
-
xmlToExportAttributeDef
convert to xml bean for export- Parameters:
grouperVersion
-- Returns:
- xml bean
-
xmlGetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlGetId
in interfaceXmlImportableBase<AttributeDef>
- Returns:
- id
- See Also:
-
xmlSetId
Description copied from interface:XmlImportableBase
set id key in db- Specified by:
xmlSetId
in interfaceXmlImportableBase<AttributeDef>
- See Also:
-
xmlToString
Description copied from interface:XmlImportableBase
convert to string for log- Specified by:
xmlToString
in interfaceXmlImportableBase<AttributeDef>
- Returns:
- the string value for log
- See Also:
-
dbVersion
save the state when retrieving from DB- Overrides:
dbVersion
in classGrouperAPI
- Returns:
- the dbVersion
-
dbVersionReset
public void dbVersionReset()take a snapshot of the data since this is what is in the db- Overrides:
dbVersionReset
in classGrouperAPI
-
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 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:HibGrouperLifecycle
after a delete occurs- Specified by:
onPostDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPostDelete
in classGrouperAPI
- See Also:
-
onPostSave
Description copied from interface:HibGrouperLifecycle
after a save (insert) occurs- Specified by:
onPostSave
in interfaceHibGrouperLifecycle
- Overrides:
onPostSave
in classGrouperAPI
- See Also:
-
onPostUpdate
Description copied from interface:HibGrouperLifecycle
after an update occurs- Specified by:
onPostUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPostUpdate
in classGrouperAPI
- See Also:
-
onPreDelete
Description copied from interface:HibGrouperLifecycle
before a delete (insert) occurs- Specified by:
onPreDelete
in interfaceHibGrouperLifecycle
- Overrides:
onPreDelete
in classGrouperAPI
- See Also:
-
onPreSave
Description copied from interface:HibGrouperLifecycle
before a save (insert) occurs- Specified by:
onPreSave
in interfaceHibGrouperLifecycle
- Overrides:
onPreSave
in classGrouperAPI
- See Also:
-
onPreUpdate
Description copied from interface:HibGrouperLifecycle
before an update occurs- Specified by:
onPreUpdate
in interfaceHibGrouperLifecycle
- Overrides:
onPreUpdate
in classGrouperAPI
- See Also:
-
compareTo
- Specified by:
compareTo
in 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:GrouperObject
display name of object- Specified by:
getDisplayName
in interfaceGrouperObject
- Returns:
- display name
- See Also:
-
matchesLowerSearchStrings
Description copied from interface:GrouperObject
see if this object matches the filter strings- Specified by:
matchesLowerSearchStrings
in interfaceGrouperObject
- Returns:
- true if matches
- See Also:
-