Package edu.internet2.middleware.grouper
Class Attribute
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.Attribute
- All Implemented Interfaces:
HibGrouperLifecycle
,GrouperCloneable
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
Basic Hibernate
Attribute
DTO interface.- Since:
- Version:
- $Id: Attribute.java,v 1.26 2009-04-13 16:53:08 mchyzer Exp $
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
column field_id col in dbstatic final String
column field_name col in dbstatic final String
column old_field_name col in dbstatic final String
constant for field name for: contextIdstatic final String
constant for field name for: groupstatic final String
constant for field name for: groupUUIDstatic final String
constant for field name for: idstatic final String
constant for field name for: valuestatic final String
constant for field name for: groupUUIDstatic 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 TypeMethodDescriptionvoid
assignGroupUuid
(String groupUUID1, Group group1) clone()
deep clone the fields in this objectvoid
delete()
boolean
context id of the transactiongetId()
getValue()
int
hashCode()
static Attribute
internal_getAttribute
(AttributeAssignValue value, Group group, boolean exceptionIfNotLegacyAttribute) void
internal_setAttributeAssignValue
(AttributeAssignValue attributeAssignValue1) used for cachingretrieveGroup
(boolean retrieveIfNull) try to get the current group if it is available (if this object is cloned, then it might be null)void
setContextId
(String contextId1) context id of the transactionvoid
setGroupUuid
(String groupUUID1) void
void
toString()
Methods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onPreSave, onPreUpdate, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_GROUP
constant for field name for: group- See Also:
-
FIELD_GROUP_UUID
constant for field name for: groupUUID- See Also:
-
FIELD_ID
constant for field name for: id- See Also:
-
FIELD_VALUE
constant for field name for: value- See Also:
-
PROPERTY_GROUP_UUID
constant for field name for: groupUUID- See Also:
-
TABLE_OLD_GROUPER_ATTRIBUTES
- See Also:
-
COLUMN_OLD_FIELD_ID
column field_id col in db- See Also:
-
COLUMN_OLD_FIELD_NAME
column field_name col in db- See Also:
-
COLUMN_OLDER_FIELD_NAME
column old_field_name col in db- See Also:
-
-
Constructor Details
-
Attribute
public Attribute()
-
-
Method Details
-
retrieveGroup
try to get the current group if it is available (if this object is cloned, then it might be null)- Parameters:
retrieveIfNull
- true to get from DB if null- Returns:
- the current group
-
assignGroupUuid
- Parameters:
groupUUID1
-group1
-
-
equals
-
hashCode
public int hashCode() -
toString
-
getAttrName
- Returns:
- attr name
-
internal_getGroupType
- Returns:
- group type
-
getGroupUuid
- Returns:
- group uuid
-
getId
- Returns:
- id
-
getValue
- Returns:
- value
-
setGroupUuid
- Parameters:
groupUUID1
-
-
setId
- Parameters:
id
-
-
setValue
- Parameters:
value
-
-
clone
Description copied from class:GrouperAPI
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:
-
getContextId
context id of the transaction- Returns:
- context id
-
setContextId
context id of the transaction- Parameters:
contextId1
-
-
delete
public void delete() -
internal_setAttributeAssignValue
used for caching- Parameters:
attributeAssignValue1
-
-
internal_getAttributeAssignValue
- Returns:
- attributeAssignValue
-
internal_getAttribute
public static Attribute internal_getAttribute(AttributeAssignValue value, Group group, boolean exceptionIfNotLegacyAttribute) - Parameters:
value
-group
- this is optional if the group is knownexceptionIfNotLegacyAttribute
-- Returns:
- attribute
-