5.1 Action Request System Java API

com.remedy.arsys.api
Class AccessNameID

java.lang.Object
  |
  +--com.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()
          This method can be used to populate a hash table.
 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.
Overrides:
toString in class java.lang.Object

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 if and only if the argument is not null and is a AccessNameID object that represents the same content.
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
This method can be used to populate a hash table. Implicitly used method to test equality of objects.
Overrides:
hashCode in class java.lang.Object

clone

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

5.1 Action Request System Java API