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 Details

    • COLUMN_CREATE_TIME

      public static final String COLUMN_CREATE_TIME
      column name for create time
      See Also:
    • COLUMN_CREATOR_MEMBER_ID

      public static final String COLUMN_CREATOR_MEMBER_ID
      column name for creator member id
      See Also:
    • COLUMN_MODIFIER_MEMBER_ID

      public static final String COLUMN_MODIFIER_MEMBER_ID
      column name for modifier member id
      See Also:
    • COLUMN_MODIFY_TIME

      public static final String COLUMN_MODIFY_TIME
      column name for modify time
      See Also:
    • TABLE_GROUPER_EXT_SUBJ_ATTR

      public static final String TABLE_GROUPER_EXT_SUBJ_ATTR
      table name for external subject attributes
      See Also:
    • COLUMN_CONTEXT_ID

      public static final String COLUMN_CONTEXT_ID
      column name for context id
      See Also:
    • COLUMN_ATTRIBUTE_SYSTEM_NAME

      public static final String COLUMN_ATTRIBUTE_SYSTEM_NAME
      column name for attribute system name
      See Also:
    • COLUMN_ATTRIBUTE_VALUE

      public static final String COLUMN_ATTRIBUTE_VALUE
      column name for attribute value
      See Also:
    • COLUMN_SUBJECT_UUID

      public static final String COLUMN_SUBJECT_UUID
      column name for subject uuid
      See Also:
    • COLUMN_UUID

      public static final String COLUMN_UUID
      column name for uuid
      See Also:
    • FIELD_ATTRIBUTE_SYSTEM_NAME

      public static final String FIELD_ATTRIBUTE_SYSTEM_NAME
      constant for field name for: attributeSystemName
      See Also:
    • FIELD_ATTRIBUTE_VALUE

      public static final String FIELD_ATTRIBUTE_VALUE
      constant for field name for: attributeValue
      See Also:
    • FIELD_CONTEXT_ID

      public static final String FIELD_CONTEXT_ID
      constant for field name for: contextId
      See Also:
    • FIELD_CREATE_TIME

      public static final String FIELD_CREATE_TIME
      constant for field name for: createTime
      See Also:
    • FIELD_CREATOR_MEMBER_ID

      public static final String FIELD_CREATOR_MEMBER_ID
      constant for field name for: creatorMemberId
      See Also:
    • FIELD_MODIFIER_MEMBER_ID

      public static final String FIELD_MODIFIER_MEMBER_ID
      constant for field name for: modifierMemberId
      See Also:
    • FIELD_MODIFY_TIME

      public static final String FIELD_MODIFY_TIME
      constant for field name for: modifyTime
      See Also:
    • FIELD_SUBJECT_UUID

      public static final String FIELD_SUBJECT_UUID
      constant for field name for: subjectUuid
      See Also:
    • FIELD_UUID

      public static final String FIELD_UUID
      constant for field name for: uuid
      See Also:
  • Constructor Details

    • ExternalSubjectAttribute

      public ExternalSubjectAttribute()
  • Method Details

    • getSubjectUuid

      public String getSubjectUuid()
      subject uuid foreign key to subject table
      Returns:
      the uuid
    • setSubjectUuid

      public void setSubjectUuid(String subjectUuid1)
      subject uuid foreign key to subject table
      Parameters:
      subjectUuid1 -
    • getAttributeSystemName

      public String getAttributeSystemName()
      system name of the attributes
      Returns:
      system name
    • setAttributeSystemName

      public void setAttributeSystemName(String attributeSystemName1)
      system name of the attributes
      Parameters:
      attributeSystemName1 -
    • getAttributeValue

      public String getAttributeValue()
      value of attribute
      Returns:
      value
    • setAttributeValue

      public void setAttributeValue(String attributeValue1)
      value of the attribute
      Parameters:
      attributeValue1 -
    • getUuid

      public String getUuid()
      uuid of the attribute
      Returns:
      uuid
    • setUuid

      public void setUuid(String uuid1)
      uuid of the attribute
      Parameters:
      uuid1 -
    • clone

      public ExternalSubjectAttribute clone()
      Description copied from class: GrouperAPI
      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:
    • getContextId

      public String getContextId()
      contextId links to audit tables
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId1)
      contextId links to audit tables
      Specified by:
      setContextId in interface GrouperHasContext
      Parameters:
      contextId1 -
    • getCreateTime

      public Date getCreateTime()
      Get creation time for this subject.
      Returns:
      Date that this subject was created.
    • getCreateTimeDb

      public long getCreateTimeDb()
      Returns:
      create time
    • getCreatorMemberId

      public String getCreatorMemberId()
      Returns:
      creator
    • getModifierMemberId

      public String getModifierMemberId()
      Returns:
      the modifier member id
    • getModifyTime

      public Date 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

      public void setCreatorMemberId(String creatorMemberId1)
      member id of creator
      Parameters:
      creatorMemberId1 -
    • setModifierMemberId

      public void setModifierMemberId(String modifierMemberId1)
      member id of modifier
      Parameters:
      modifierMemberId1 -
    • setModifyTimeDb

      public void setModifyTimeDb(long modifyTime1)
      last time modified
      Parameters:
      modifyTime1 -
    • 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:
    • 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:
    • assertValidAttribute

      public static void assertValidAttribute(String attributeName)
      assert that the attribute name is valid
      Parameters:
      attributeName -
    • validAttribute

      public static boolean validAttribute(String attributeName, boolean errorOnNotfound)
      assert that the attribute name is valid
      Parameters:
      attributeName -
      errorOnNotfound -
      Returns:
      if found
    • store

      public void store(ExternalSubject externalSubject)
      store this object to the DB.
      Parameters:
      externalSubject - reference back to owner
    • toString

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