com.sap.security.api.acl

Class PermissionStatus

java.lang.Object
  extended by com.sap.security.api.acl.PermissionStatus

public class PermissionStatus
extends Object

Permission Status

The Permission Status.

This Enumaration Class defines three possible Permission Status, if a permission is allowed, is denied or is undefined.


Field Summary
static PermissionStatus IS_ALLOWED
           
static PermissionStatus IS_DENIED
           
static PermissionStatus IS_UNDEFINED
           
 
Method Summary
 boolean equals(Object otherPermissionStatus)
          Checks if a given PermissionStatus equals an other PermissionStatus.
 int getStatus()
          Gets the status of the IAclResult object.
 int hashCode()
          Provides the hashCode for this PermissionStatus object.
 boolean isAllowed()
          This methods checks if the status of the PermissionStatus is allowed.
 boolean isDenied()
          This methods checks if the status of the PermissionStatus is denied
 boolean isUndefined()
          This methods checks if the status of the PermissionStatus is undefined
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IS_ALLOWED

public static final PermissionStatus IS_ALLOWED

IS_DENIED

public static final PermissionStatus IS_DENIED

IS_UNDEFINED

public static final PermissionStatus IS_UNDEFINED
Method Detail

equals

public boolean equals(Object otherPermissionStatus)
Checks if a given PermissionStatus equals an other PermissionStatus.

Overrides:
equals in class Object
Returns:
true if given PermissionStatus equals the other PermissionStatus false otherwise

hashCode

public int hashCode()
Provides the hashCode for this PermissionStatus object.

Overrides:
hashCode in class Object

getStatus

public int getStatus()
Gets the status of the IAclResult object.

Returns:
status of the object

isAllowed

public boolean isAllowed()
This methods checks if the status of the PermissionStatus is allowed.

Returns:
true when the status is allowed false otherwise

isDenied

public boolean isDenied()
This methods checks if the status of the PermissionStatus is denied

Returns:
true when the status is denied false otherwise

isUndefined

public boolean isUndefined()
This methods checks if the status of the PermissionStatus is undefined

Returns:
true when the status is undefined false otherwise
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGINEAPI [sap.com] com.sap.security.api.sda
[sap.com] ENGFACADE [sap.com] tc/je/usermanagement/api
[sap.com] CORE-TOOLS [sap.com] com.sap.engine.client.lib


Copyright 2010 SAP AG Complete Copyright Notice