Package com.microstrategy.web.objects
Interface WebAccessControlEntry
-
public interface WebAccessControlEntry
The WebAccessControlEntry interface represents a single access control entry within aWebAccessControlList
collection. A single entry is a single permission (or restriction of permission) for a single user or user group. There are usually multiple entries on aWebAccessControlList
object, and each one gives one rule for access/denial of access to an object.- Since:
- MicroStrategy Web 7.5.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getRights()
Returns the rights assigned to the user on this ACE.WebUserEntity
getTrustee()
Returns theWebUser
object which is currently designated as the trustee of the access control entry.int
getType()
The type of ACE, fromEnumDSSXMLAccessEntryType
.boolean
isAccessDenied()
Returns whether the access denied flag is set on the ACE.boolean
isInheritable()
Returns the value of the inheritable flag, which determines whether the ACE will be inherited or not.void
setAccessDenied(boolean val)
Sets the access denied flag on the ACE.void
setInheritable(boolean val)
Sets the inheritable flag, which determines whether the ACE will be inherited.void
setRights(int rights)
Sets the rights assigned to the user on this ACE.void
setTrustee(WebUserEntity trustee)
Sets the user designated as the trustee of the access control entry.
-
-
-
Method Detail
-
getTrustee
WebUserEntity getTrustee()
Returns theWebUser
object which is currently designated as the trustee of the access control entry. This may be null in the case of a newly created ACE object, but this must be set correctly before saving back to metadata.- Returns:
- The
WebUser
object designated as the trustee of the ACE.
-
setTrustee
void setTrustee(WebUserEntity trustee)
Sets the user designated as the trustee of the access control entry.- Parameters:
trustee
- TheWebUser
object to set as the trustee.
-
getRights
int getRights()
Returns the rights assigned to the user on this ACE.- Returns:
- The rights assigned to the user, the bitwise or of values from
EnumDSSXMLAccessRightFlags
.
-
setRights
void setRights(int rights)
Sets the rights assigned to the user on this ACE. The input values should be the bitwise or (|) of values fromEnumDSSXMLAccessRightFlags
.}- Parameters:
rights
- The rights to assign to the user, fromEnumDSSXMLAccessRightFlags
.
-
isAccessDenied
boolean isAccessDenied()
Returns whether the access denied flag is set on the ACE. If this is set, then the ACE is specifying denied access.- Returns:
- The current value of the access denied flag.
-
setAccessDenied
void setAccessDenied(boolean val)
Sets the access denied flag on the ACE. If this is set, then the ACE is specifying denied access.- Parameters:
val
- The new value of the access denied flag.
-
isInheritable
boolean isInheritable()
Returns the value of the inheritable flag, which determines whether the ACE will be inherited or not.- Returns:
- True if the ACE is inheritable, false otherwise.
-
setInheritable
void setInheritable(boolean val)
Sets the inheritable flag, which determines whether the ACE will be inherited.- Parameters:
val
- The new value of the inheritable flag.
-
getType
int getType()
The type of ACE, fromEnumDSSXMLAccessEntryType
. Note that this value is set upon creation of the access control entry.- Returns:
- The type of ACE, from
EnumDSSXMLAccessEntryType
.
-
-