org.csapi.jr.se.pam
Class PAMAttributeDef

java.lang.Object
  |
  +--org.csapi.jr.se.pam.PAMAttributeDef
All Implemented Interfaces:
java.io.Serializable

public final class PAMAttributeDef
extends java.lang.Object
implements java.io.Serializable

This is a Sequence of Data Elements containing the definition of an attribute. This definition constitutes the 'schema' for an attribute and contains fields to define the type and behaviour of a dynamic attribute. Each definition using these fields results in a TpPAMAttribute with the corresponding name and type and dynamic behaviour as defined by the remaining fields.

See Also:
Serialized Form

Constructor Summary
PAMAttributeDef()
          Creates a new PAMAttributeDef instance.
PAMAttributeDef(java.lang.String _name, java.lang.String _type, boolean _isStatic, boolean _isRevertOnExpiration, java.lang.Object _defaultValues)
          Creates a new PAMAttributeDef instance.
 
Method Summary
 boolean equals(java.lang.Object o)
          Indicates whether some other object is 'equal to' this one.
 java.lang.Object getDefaultValues()
          This method returns a defaultValues.
 boolean getIsRevertOnExpiration()
          This method returns a isRevertOnExpiration.
 boolean getIsStatic()
          This method returns a isStatic.
 java.lang.String getName()
          This method returns a name.
 java.lang.String getType()
          This method returns a type.
 int hashCode()
          Returns a hashcode value for the object.
 void setDefaultValues(java.lang.Object defaultValues)
          This method sets a defaultValues.
 void setIsRevertOnExpiration(boolean isRevertOnExpiration)
          This method sets a isRevertOnExpiration.
 void setIsStatic(boolean isStatic)
          This method sets a isStatic.
 void setName(java.lang.String name)
          This method sets a name.
 void setType(java.lang.String type)
          This method sets a type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAMAttributeDef

public PAMAttributeDef()
Creates a new PAMAttributeDef instance.


PAMAttributeDef

public PAMAttributeDef(java.lang.String _name,
                       java.lang.String _type,
                       boolean _isStatic,
                       boolean _isRevertOnExpiration,
                       java.lang.Object _defaultValues)
Creates a new PAMAttributeDef instance.

Parameters:
_name - Name of presence data
_type - Type of attribute. Valid values for Type must include at least TpString, TpInt32 and TpFloat.
_isStatic - True indicates that the attributes is always static and its values never expire. False indicates that the attribute can be dynamic and may contain values that expire.
_isRevertOnExpiration - True indicates that the attribute reverts to the default value on expiration. False indicates that the attribute will not revert to the default value.
_defaultValues - An attribute is always initialized with this value. If the isRevertOnExpiration attribute is set to true, a dynamic attribute that has expired while stored in a PAM implementation is reset to this value with the expiresIn interval set to PAM_MAX_LONGINT. The default attribute value is interpreted based on the value of the attribute Type.
Method Detail

getName

public java.lang.String getName()
This method returns a name.

Returns:
a String value

getType

public java.lang.String getType()
This method returns a type.

Returns:
a String value

getIsStatic

public boolean getIsStatic()
This method returns a isStatic.

Returns:
a boolean value

getIsRevertOnExpiration

public boolean getIsRevertOnExpiration()
This method returns a isRevertOnExpiration.

Returns:
a boolean value

getDefaultValues

public java.lang.Object getDefaultValues()
This method returns a defaultValues.

Returns:
a Object value

setName

public void setName(java.lang.String name)
This method sets a name.


setType

public void setType(java.lang.String type)
This method sets a type.


setIsStatic

public void setIsStatic(boolean isStatic)
This method sets a isStatic.


setIsRevertOnExpiration

public void setIsRevertOnExpiration(boolean isRevertOnExpiration)
This method sets a isRevertOnExpiration.


setDefaultValues

public void setDefaultValues(java.lang.Object defaultValues)
This method sets a defaultValues.


equals

public boolean equals(java.lang.Object o)
Indicates whether some other object is 'equal to' this one.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Returns a hashcode value for the object.

Overrides:
hashCode in class java.lang.Object