com.microstrategy.web.objects.admin.users.WebPrivilegeOrigin |
The WebPrivilegeOrigin interface represents a single origin of a privilege. The origin tells both the user that the privilege was derived from, and, if applicable, the role that it was derived from.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract WebProject |
getProject()
If the security role exists, then this will return the project that the security role
is assigned to for this user/privilege.
| ||||||||||
abstract WebSecurityRole |
getRole()
Returns the
WebSecurityRole object, if one exists, that the privilege was obtained as
a result of. | ||||||||||
abstract WebUserEntity |
getUser()
Returns the user that the privilege came from.
| ||||||||||
abstract boolean |
isInherited()
Returns whether the privilege is inherited from a group or not.
|
If the security role exists, then this will return the project that the security role is assigned to for this user/privilege. If this origin does not describe a security role, then this method will return null.
WebProject
object the security role is associated with, or null
if no security role is associated.
Returns the WebSecurityRole
object, if one exists, that the privilege was obtained as
a result of. Note that this may be null - this means that the privilege did not come from a
security role.
WebSecurityRole
object that the privilege came from, or null if it did not
come from a security role.
Returns the user that the privilege came from. This can be either a group which is a parent of the current user, or the current user itself.
WebUser
object corresponding to the user or group the privilege comes from.
Returns whether the privilege is inherited from a group or not. If this is false, then the privilege is coming from the user itself; if it is true, then the privilege is being inherited from a parent group.