com.crystaldecisions.sdk.occa.infostore
Class RightIDDescriptor

java.lang.Object
  extended by com.crystaldecisions.sdk.occa.infostore.RightIDDescriptor
Direct Known Subclasses:
RightDescriptor

public class RightIDDescriptor
extends java.lang.Object

The class describes the basic information of a right as an identifier which specifies the id, the right plugin type, and the owner flag.


Field Summary
 int id
          The base right ID
 boolean isOwner
          The boolean flag indicating that the right only applies to owner of an object
 java.lang.Object kind
          The plugin kind which the right is specifically defined in.
 
Constructor Summary
RightIDDescriptor(int id)
          Deprecated. A right must be constructed with the base right id, the kind the right is customly defined in, and the owner flag. Use constructors with all these required parameters instead.
RightIDDescriptor(int id, java.lang.Object kind, boolean isOwner)
          This constructor takes the right id,the right kind, and the owner flag - parameters that are used to compose the net right id
RightIDDescriptor(RightIDDescriptor right)
          Copy constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id
The base right ID


kind

public java.lang.Object kind
The plugin kind which the right is specifically defined in. It can be an Integer representing the plugin type id or a String representing the plugin kind. For system rights, always provide kind as an empty string.


isOwner

public boolean isOwner
The boolean flag indicating that the right only applies to owner of an object

Constructor Detail

RightIDDescriptor

public RightIDDescriptor(int id)
Deprecated. A right must be constructed with the base right id, the kind the right is customly defined in, and the owner flag. Use constructors with all these required parameters instead.


RightIDDescriptor

public RightIDDescriptor(int id,
                         java.lang.Object kind,
                         boolean isOwner)
This constructor takes the right id,the right kind, and the owner flag - parameters that are used to compose the net right id

Parameters:
id - The base id of the right
kind - The plugin kind which the right is specifically defined in. It can be an Integer representing the plugin type id or a String representing the plugin kind. For system rights, provide kind as an empty string.
isOwner - The boolean flag indicating that the right only applies to owner of an object

RightIDDescriptor

public RightIDDescriptor(RightIDDescriptor right)
Copy constructor

Parameters:
right - Right to be copied
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object