|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.infostore.RightIDDescriptor
com.crystaldecisions.sdk.occa.infostore.RightDescriptor
public class RightDescriptor
This class contains information about a right, including the ID, the plugin type associated with the right, the owner flag, the scope, and the applicable kind.
| Field Summary | |
|---|---|
java.lang.Object |
applicableObjectType
Returns the plugin kind to which the right applies. |
java.lang.String |
scope
The scope of the right. |
| Fields inherited from class com.crystaldecisions.sdk.occa.infostore.RightIDDescriptor |
|---|
id, isOwner, kind |
| Constructor Summary | |
|---|---|
RightDescriptor(int id)
Deprecated. Do not use. A right must be constructed with the base right ID, the plugin kind, and the owner flag. Use one of the other constructors. |
|
RightDescriptor(int id,
java.lang.Object kind,
boolean isOwner)
This constructor takes the right ID, the right kind, and the owner flag. |
|
RightDescriptor(int id,
java.lang.Object kind,
boolean isOwner,
java.lang.String scope,
java.lang.Object applicableObjectType)
This constructor takes the right ID, the right kind, the owner flag, the scope, and the applicable kind. |
|
RightDescriptor(int id,
java.lang.String scope,
java.lang.Object applicableObjectType)
Deprecated. Do not use. A right must be constructed with the base right ID, the plugin kind, and the owner flag. Use one of the other constructors. |
|
RightDescriptor(RightDescriptor 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 |
|---|
public java.lang.String scope
CeSecurityOptions.RightScope.
public java.lang.Object applicableObjectType
Note that this should not be confused with the
RightIDDescriptor.kind field, which specifies the plugin that
defines plugin specific rights (custom rights).
| Constructor Detail |
|---|
public RightDescriptor(int id)
public RightDescriptor(int id,
java.lang.Object kind,
boolean isOwner)
id - the base ID of the right. Possible values are defined in
com.crystaldecisions.sdk.occa.security.CeSecurityID.Right.kind - the plugin kind for which the right is defined
It can be an Integer representing the plugin type ID or a
String representing the plugin kind. For system rights,
use an empty string.isOwner - the boolean flag indicating that the right only applies to owner of an object
public RightDescriptor(int id,
java.lang.String scope,
java.lang.Object applicableObjectType)
public RightDescriptor(int id,
java.lang.Object kind,
boolean isOwner,
java.lang.String scope,
java.lang.Object applicableObjectType)
id - the base ID of the right. Possible values are defined in
com.crystaldecisions.sdk.occa.security.CeSecurityID.Right.kind - the plugin kind for which the right is defined.
It can be an Integer representing the plugin type ID or a
String representing the plugin kind. For system rights,
use an empty string.
string.isOwner - set to true if the right only applies to the owner of an objectscope - the right scope. The possible values are defined in CeSecurityOptions.RightScope.applicableObjectType - the plugin kind the right is applicable to. It can be an Integer representing the plugin
type ID or a String representing the plugin kind. If the right applies to any type of object,
use CeSecurityOptions.ANY_OBJTYPE.public RightDescriptor(RightDescriptor right)
right - the right descriptor to be copied| Method Detail |
|---|
public int hashCode()
hashCode in class RightIDDescriptorpublic boolean equals(java.lang.Object obj)
equals in class RightIDDescriptorpublic java.lang.String toString()
toString in class RightIDDescriptor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||