|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ISecurityInfo2,
which can be retrieved by calling IInfoObject.getSecurityInfo2().
public interface ISecurityInfo
The ISecurityInfo interface allows you to set the security roles, rights, and limits on an
object for a specific user or group. Roles are predefined set of object rights that are
designed to cover the most common cases of security access. It is recommended that you start
by using roles, and then apply more granular rights if necessary. Specifically, rights permit
a user or group to perform specific actions on an object; limits restrict the number of
instances for each object, user, or group that are allowed on the system. Users or groups that
are given specific object rights and limits are called object principals.
SAP BusinessObjects Enterprise uses object security, which means that roles, rights, and limits are set for
each InfoObject in the system and not for each principal. For example, all folders have a set
of available rights that the system makes available to them. You can use a report's SecurityInfo
object to determine which of these rights you want to give to a particular user or group.
Specifically, you can use the getKnownRights method to select the rights that you want to grant
or deny to a principal, and then add these rights to the principal's SecurityRights collection.
ISecurityRights| Nested Class Summary | |
|---|---|
static interface |
ISecurityInfo.CeRightModes
Deprecated. |
| Method Summary | |
|---|---|
boolean |
checkCustomRight(int RightID,
java.lang.String kind)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean[] |
checkCustomRights(int[] rights,
java.lang.String[] kinds,
boolean useCache)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean |
checkRight(int RightID)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean[] |
checkRights(int[] rights)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean[] |
checkRights(int[] rights,
boolean useCache)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean |
checkSystemRight(int RightID)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
boolean[] |
checkSystemRights(int[] rights,
boolean useCache)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IObjectPrincipal |
getAnyPrincipal(int PrincipalID)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IRightID[] |
getKnownLimits()
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IRightID[] |
getKnownRights()
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IObjectPrincipals |
getObjectPrincipals()
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IObjectPrincipals |
getObjectPrincipals(int flag)
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
IObjectPrincipals |
newObjectPrincipals()
Deprecated. Since version 12.0, ISecurityInfo has been replaced by ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2() |
| Method Detail |
|---|
boolean checkRight(int RightID)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns whether the specified right is permitted for the current user.
RightID - The right ID of the right to be checked.
boolean indicating whether the specified right is permitted for this object. If
the value is true the specified right is permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean checkSystemRight(int RightID)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns whether the specified system right is defined for the current user.
RightID - The right ID of the right to be checked.
boolean indicating whether the specified right is permitted for this object. If
the value is true the specified right is permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean checkCustomRight(int RightID,
java.lang.String kind)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns whether the specified custom right is defined for the current user.
RightID - The right ID of the right to be checked.kind - The kind of the right to be checked. The kind represents the InfoObject type.
boolean indicating whether the specified right is permitted for this object. If
the value is true the specified right is permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean[] checkRights(int[] rights)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns multiple rights from the CMS in a single batch. Using this method is the easiest way to determine the current user's net rights. This method is particularly useful when you are working with inheritance. For example, if the right to schedule a report has been explicitly granted to the current user, but that user is also set to inherit rights from a parent folder on which the right has been denied, the user will not be permitted to schedule the report.
rights - A int[] array specifying right ids.
boolean array indicating whether specified rights are permitted for this object. If
the value is true the specified rights are permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean[] checkRights(int[] rights,
boolean useCache)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Sets whether rights that have been cached will be used. When set to false,
rights will be retrieved from the server regardless of whether they exist in the cache.
When set to true if rights have been cached they will be used, and if
they have not been cached they will be retrieved from the server. Using this method is the easiest
way to determine the current user's net rights. This method is particularly useful when you
are working with inheritance. For example, if the right to schedule a report has been explicitly
granted to the current user, but that user is also set to inherit rights from a parent folder on
which the right has been denied, the user will not be permitted to schedule the report.
rights - A int[] array specifying right ids.useCache - This value should be set to false
to retrieve rights from the server rather than using cached rights.
boolean array indicating whether specified rights are permitted for this object. If
the value is true the specified rights are permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean[] checkSystemRights(int[] rights,
boolean useCache)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns multiple system rights from the CMS in a single batch. Using this method is the easiest way to determine the current user's net rights. This method is particularly useful when you are working with inheritance. For example, if the right to schedule a report has been explicitly granted to the current user, but that user is also set to inherit rights from a parent folder on which the right has been denied, the user will not be permitted to schedule the report.
rights - A int[] array specifying system right ids.useCache - This value should be set to false
to retrieve rights from the server rather than using cached rights.
boolean array indicating whether specified system rights are permitted for this object. If
the value is true the specified rights are permitted for this object,
otherwise false.
SDKException - This is thrown if the process is unsuccessful.
boolean[] checkCustomRights(int[] rights,
java.lang.String[] kinds,
boolean useCache)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns custom rights from the CMS in a single batch.Using this method is the easiest way to determine the current user's net rights. This method is particularly useful when you are working with inheritance. For example, if the right to schedule a report has been explicitly granted to the current user, but that user is also set to inherit rights from a parent folder on which the right has been denied, the user will not be permitted to schedule the report.
rights - A int[] array specifying system right ids.kinds - A String[] array specifying the InfoObject types.useCache - This value should be set to false
to retrieve rights from the server rather than using cached rights.
boolean array indicating whether specified system rights are permitted for this object. If
the value is true the specified rights are permitted for this object,
otherwise false.
SDKException
IRightID[] getKnownRights()
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns a collection of rights that this object supports.
IRightID objects specifying the rights
this object supports.
SDKException - This is thrown if the process is unsuccessful.
IObjectPrincipals getObjectPrincipals()
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns the collection of principals that have rights on the object.
IObjectPrincipals collection that contains the
principals that have rights on this object.
SDKException - This is thrown if the process is unsuccessful.
IObjectPrincipals getObjectPrincipals(int flag)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
SDKException
IObjectPrincipals newObjectPrincipals()
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
SDKException
IObjectPrincipal getAnyPrincipal(int PrincipalID)
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns the effective rights and limits for any principal, even if the principal does not have explicit rights to the object.
PrincipalID - The ID of the principal as an int.
IObjectPrincipal object containing the effective rights for the
specified principal.
SDKException - This is thrown if the process is unsuccessful.
IRightID[] getKnownLimits()
throws SDKException
ISecurityInfo2 accessible through IInfoObject.getSecurityInfo2()
Returns a collection of limits that this object supports.
IRightID objects specifying the limits
this object supports.
SDKException - This is thrown if the process is unsuccessful.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||