Class ExternalSubjectAttribute
java.lang.Object
edu.internet2.middleware.grouper.GrouperAPI
edu.internet2.middleware.grouper.externalSubjects.ExternalSubjectAttribute
- All Implemented Interfaces:
HibGrouperLifecycle
,Hib3GrouperVersioned
,GrouperCloneable
,GrouperHasContext
,GrouperUtil.FieldValuable
,Serializable
,org.hibernate.classic.Lifecycle
public class ExternalSubjectAttribute
extends GrouperAPI
implements GrouperHasContext, Hib3GrouperVersioned
attribute on an external subject, configured in the grouper.properties
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
column name for attribute system namestatic final String
column name for attribute valuestatic final String
column name for context idstatic final String
column name for create timestatic final String
column name for creator member idstatic final String
column name for modifier member idstatic final String
column name for modify timestatic final String
column name for subject uuidstatic final String
column name for uuidstatic final String
constant for field name for: attributeSystemNamestatic final String
constant for field name for: attributeValuestatic final String
constant for field name for: contextIdstatic final String
constant for field name for: createTimestatic final String
constant for field name for: creatorMemberIdstatic final String
constant for field name for: modifierMemberIdstatic final String
constant for field name for: modifyTimestatic final String
constant for field name for: subjectUuidstatic final String
constant for field name for: uuidstatic final String
table name for external subject attributesFields 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 TypeMethodDescriptionstatic void
assertValidAttribute
(String attributeName) assert that the attribute name is validclone()
deep clone the fields in this objectsystem name of the attributesvalue of attributecontextId links to audit tablesGet creation time for this subject.long
Get modify time for this subject.long
subject uuid foreign key to subject tablegetUuid()
uuid of the attributevoid
onPreSave
(HibernateSession hibernateSession) before a save (insert) occursvoid
onPreUpdate
(HibernateSession hibernateSession) before an update occursvoid
setAttributeSystemName
(String attributeSystemName1) system name of the attributesvoid
setAttributeValue
(String attributeValue1) value of the attributevoid
setContextId
(String contextId1) contextId links to audit tablesvoid
setCreateTimeDb
(long createTime1) create timevoid
setCreatorMemberId
(String creatorMemberId1) member id of creatorvoid
setModifierMemberId
(String modifierMemberId1) member id of modifiervoid
setModifyTimeDb
(long modifyTime1) last time modifiedvoid
setSubjectUuid
(String subjectUuid1) subject uuid foreign key to subject tablevoid
uuid of the attributevoid
store
(ExternalSubject externalSubject) store this object to the DB.toString()
static boolean
validAttribute
(String attributeName, boolean errorOnNotfound) assert that the attribute name is validMethods inherited from class edu.internet2.middleware.grouper.GrouperAPI
dbVersion, dbVersionClear, dbVersionDifferentFields, dbVersionIsDifferent, dbVersionReset, fieldValue, getHibernateVersionNumber, onDelete, onLoad, onPostDelete, onPostSave, onPostUpdate, onPreDelete, onSave, onUpdate, setHibernateVersionNumber
-
Field Details
-
COLUMN_CREATE_TIME
column name for create time- See Also:
-
COLUMN_CREATOR_MEMBER_ID
column name for creator member id- See Also:
-
COLUMN_MODIFIER_MEMBER_ID
column name for modifier member id- See Also:
-
COLUMN_MODIFY_TIME
column name for modify time- See Also:
-
TABLE_GROUPER_EXT_SUBJ_ATTR
table name for external subject attributes- See Also:
-
COLUMN_CONTEXT_ID
column name for context id- See Also:
-
COLUMN_ATTRIBUTE_SYSTEM_NAME
column name for attribute system name- See Also:
-
COLUMN_ATTRIBUTE_VALUE
column name for attribute value- See Also:
-
COLUMN_SUBJECT_UUID
column name for subject uuid- See Also:
-
COLUMN_UUID
column name for uuid- See Also:
-
FIELD_ATTRIBUTE_SYSTEM_NAME
constant for field name for: attributeSystemName- See Also:
-
FIELD_ATTRIBUTE_VALUE
constant for field name for: attributeValue- See Also:
-
FIELD_CONTEXT_ID
constant for field name for: contextId- See Also:
-
FIELD_CREATE_TIME
constant for field name for: createTime- See Also:
-
FIELD_CREATOR_MEMBER_ID
constant for field name for: creatorMemberId- See Also:
-
FIELD_MODIFIER_MEMBER_ID
constant for field name for: modifierMemberId- See Also:
-
FIELD_MODIFY_TIME
constant for field name for: modifyTime- See Also:
-
FIELD_SUBJECT_UUID
constant for field name for: subjectUuid- See Also:
-
FIELD_UUID
constant for field name for: uuid- See Also:
-
-
Constructor Details
-
ExternalSubjectAttribute
public ExternalSubjectAttribute()
-
-
Method Details
-
getSubjectUuid
subject uuid foreign key to subject table- Returns:
- the uuid
-
setSubjectUuid
subject uuid foreign key to subject table- Parameters:
subjectUuid1
-
-
getAttributeSystemName
system name of the attributes- Returns:
- system name
-
setAttributeSystemName
system name of the attributes- Parameters:
attributeSystemName1
-
-
getAttributeValue
value of attribute- Returns:
- value
-
setAttributeValue
value of the attribute- Parameters:
attributeValue1
-
-
getUuid
uuid of the attribute- Returns:
- uuid
-
setUuid
uuid of the attribute- Parameters:
uuid1
-
-
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
contextId links to audit tables- Returns:
- context id
-
setContextId
contextId links to audit tables- Specified by:
setContextId
in interfaceGrouperHasContext
- Parameters:
contextId1
-
-
getCreateTime
Get creation time for this subject.- Returns:
Date
that this subject was created.
-
getCreateTimeDb
public long getCreateTimeDb()- Returns:
- create time
-
getCreatorMemberId
- Returns:
- creator
-
getModifierMemberId
- Returns:
- the modifier member id
-
getModifyTime
Get modify time for this subject.- Returns:
Date
that this subject was created.
-
getModifyTimeDb
public long getModifyTimeDb()- Returns:
- modify time
-
setCreateTimeDb
public void setCreateTimeDb(long createTime1) create time- Parameters:
createTime1
-
-
setCreatorMemberId
member id of creator- Parameters:
creatorMemberId1
-
-
setModifierMemberId
member id of modifier- Parameters:
modifierMemberId1
-
-
setModifyTimeDb
public void setModifyTimeDb(long modifyTime1) last time modified- Parameters:
modifyTime1
-
-
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:
-
assertValidAttribute
assert that the attribute name is valid- Parameters:
attributeName
-
-
validAttribute
assert that the attribute name is valid- Parameters:
attributeName
-errorOnNotfound
-- Returns:
- if found
-
store
store this object to the DB.- Parameters:
externalSubject
- reference back to owner
-
toString
-