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

public class Attribute extends GrouperAPI
Basic Hibernate Attribute DTO interface.
Since:
Version:
$Id: Attribute.java,v 1.26 2009-04-13 16:53:08 mchyzer Exp $
See Also:
  • Field Details

  • Constructor Details

    • Attribute

      public Attribute()
  • Method Details

    • retrieveGroup

      public Group retrieveGroup(boolean retrieveIfNull)
      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

      public void assignGroupUuid(String groupUUID1, Group group1)
      Parameters:
      groupUUID1 -
      group1 -
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • toString

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

      public String getAttrName()
      Returns:
      attr name
    • internal_getGroupType

      public GroupType internal_getGroupType()
      Returns:
      group type
    • getGroupUuid

      public String getGroupUuid()
      Returns:
      group uuid
    • getId

      public String getId()
      Returns:
      id
    • getValue

      public String getValue()
      Returns:
      value
    • setGroupUuid

      public void setGroupUuid(String groupUUID1)
      Parameters:
      groupUUID1 -
    • setId

      public void setId(String id)
      Parameters:
      id -
    • setValue

      public void setValue(String value)
      Parameters:
      value -
    • clone

      public Attribute 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()
      context id of the transaction
      Returns:
      context id
    • setContextId

      public void setContextId(String contextId1)
      context id of the transaction
      Parameters:
      contextId1 -
    • delete

      public void delete()
    • internal_setAttributeAssignValue

      public void internal_setAttributeAssignValue(AttributeAssignValue attributeAssignValue1)
      used for caching
      Parameters:
      attributeAssignValue1 -
    • internal_getAttributeAssignValue

      public AttributeAssignValue 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 known
      exceptionIfNotLegacyAttribute -
      Returns:
      attribute