com.crystaldecisions.sdk.occa.infostore
Interface IRole


Deprecated. Since 12.0. Use custom roles instead.

public interface IRole

This interface defines roles that can be assigned to users. A role or access mode is a predefined set of object rights that allows you to set common object security levels quickly. They are designed to cover the most common cases of security rights settings. It is recommended that you start by using roles, and then apply more granular rights if necessary. The rights that are listed for each role are always granted to the principal, and never denied.


Field Summary
static IRole ADVANCED
          Deprecated.  This constant value specifies that the principal has individually set rights.
static IRole[] ALL_ROLES
          Deprecated.  This constant value is an array of Role objects that contains a role object corresponding to each of the constant predefined role values.
static IRole FULL_CONTROL
          Deprecated.  This constant value specifies that the principal has complete rights over the object.
static IRole NO_ACCESS
          Deprecated.  This constant value specifies that the principal has no access to the object.
static IRole SCHEDULE
          Deprecated.  This constant value specifies that the principal can view folders and reports.
static IRole VIEW
          Deprecated.  This constant value specifies that the principal can view folders and reports.
static IRole VIEW_ON_DEMAND
          Deprecated.  This constant value specifies that the principal can view folders and reports.
 
Method Summary
 void addRights(int[] rights)
          Deprecated. This method has been deprecated.
 java.lang.String getDescription(java.util.Locale locale)
          Deprecated.  Returns the display name of the role.
 int getID()
          Deprecated.  Returns the role ID.
 IRightID[] toArray()
          Deprecated.  Returns an array of IRightID's.
 

Field Detail

ADVANCED

static final IRole ADVANCED
Deprecated. 

This constant value specifies that the principal has individually set rights.


NO_ACCESS

static final IRole NO_ACCESS
Deprecated. 

This constant value specifies that the principal has no access to the object.


VIEW

static final IRole VIEW
Deprecated. 

This constant value specifies that the principal can view folders and reports. For reports, this means that the user can view the latest instance and view the history of the report.


VIEW_ON_DEMAND

static final IRole VIEW_ON_DEMAND
Deprecated. 

This constant value specifies that the principal can view folders and reports. In addition, to rights provided by the Schedule access mode, the user gains the right to refresh report objects and instances against their data source.


SCHEDULE

static final IRole SCHEDULE
Deprecated. 

This constant value specifies that the principal can view folders and reports. In addition, the user or group can set parameters, set database logon information, and generate Freeport instances by scheduling reports to run against the specified data source once or on a recurring basis.


FULL_CONTROL

static final IRole FULL_CONTROL
Deprecated. 

This constant value specifies that the principal has complete rights over the object. In addition to everything included with the Schedule right, the Full Control right allows users to schedule, run, and set default parameters for reports. Full Control is the only right that allows users to delete objects (folders, reports, instances).


ALL_ROLES

static final IRole[] ALL_ROLES
Deprecated. 

This constant value is an array of Role objects that contains a role object corresponding to each of the constant predefined role values.

Method Detail

addRights

void addRights(int[] rights)
Deprecated. This method has been deprecated.

This method has been deprecated.


getDescription

java.lang.String getDescription(java.util.Locale locale)
Deprecated. 

Returns the display name of the role.

Parameters:
locale - The Locale object specifying the locale-specific display information to be used.
Returns:
Returns a string containing the display name of the role.

toArray

IRightID[] toArray()
Deprecated. 

Returns an array of IRightID's.

Returns:
Return the rights for this role as an array of IRightIDs.

getID

int getID()
Deprecated. 

Returns the role ID.

Returns:
Return role ID.