7.0 Action Request System Java API

com.remedy.arsys.api
Class AccessNameID

java.lang.Object
  extended bycom.remedy.arsys.api.AccessNameID
All Implemented Interfaces:
java.lang.Cloneable, IARIdentifier, java.io.Serializable

public class AccessNameID
extends java.lang.Object
implements java.lang.Cloneable, IARIdentifier

The AccessNameID class is used to represent the user name, password, and group name of an AR System user. There is a 30-byte limit in the information returned (the size is set to Constants.AR_MAX_ACCESS_NAME_SIZE).

See Also:
Serialized Form

Constructor Summary
AccessNameID()
          constructor
AccessNameID(AccessNameID accessnameID)
           
AccessNameID(char[] str)
           
AccessNameID(java.lang.String str)
           
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality of AccessNameID.
 java.lang.String getValue()
          Gets user name, password, and group name information.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setValue(java.lang.String str)
          Sets user name, password, or group name information to a string value whose limit is specified by Constants.AR_MAX_ACCESS_NAME_SIZE.
 char[] toCharArray()
          Returns user name, password, or group name information in an array of characters.
 java.lang.String toString()
          Returns user name, password, or group name information in a string.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AccessNameID

public AccessNameID()
constructor


AccessNameID

public AccessNameID(java.lang.String str)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException - if the string length is longer than Constants.AR_MAX_ACCESS_NAME_SIZE.

AccessNameID

public AccessNameID(char[] str)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException - if the string length is longer than Constants.AR_MAX_ACCESS_NAME_SIZE.

AccessNameID

public AccessNameID(AccessNameID accessnameID)
Method Detail

toCharArray

public char[] toCharArray()
Returns user name, password, or group name information in an array of characters.


toString

public java.lang.String toString()
Returns user name, password, or group name information in a string.


getValue

public java.lang.String getValue()
Gets user name, password, and group name information.


setValue

public void setValue(java.lang.String str)
              throws java.lang.IllegalArgumentException
Sets user name, password, or group name information to a string value whose limit is specified by Constants.AR_MAX_ACCESS_NAME_SIZE.

Throws:
java.lang.IllegalArgumentException - if the string length is longer than Constants.AR_MAX_ACCESS_NAME_SIZE.

equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality of AccessNameID. The result is true only if the argument is not null and is a AccessNameID object that represents the same content.


hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Throws:
java.lang.CloneNotSupportedException

7.0 Action Request System Java API