com.adobe.idp.um.api.infomodel
Class PermissionInfo

java.lang.Object
  extended by com.adobe.idp.um.api.infomodel.PermissionInfo
All Implemented Interfaces:
java.io.Serializable

public class PermissionInfo
extends java.lang.Object
implements java.io.Serializable

The PermissionInfo class manages information for permissions.

See Also:
Serialized Form

Constructor Summary
PermissionInfo()
           
 
Method Summary
 Permission getPermission()
          Retrieves the permission.
 boolean hasPermission()
          Determines whether the principal has the permission.
 boolean isHasPermission()
          Determines whether the principal has the permission.
 boolean isInherited()
          Determines whether the permission is inherited.
 void setHasPermission(boolean hasPermission)
          Sets whether the principal has the permission.
 void setIsInherited(boolean isInherited)
          Sets whether the permission is inherited.
 void setPermission(Permission permission)
          Sets the permission.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionInfo

public PermissionInfo()
Method Detail

setPermission

public void setPermission(Permission permission)
Sets the permission.

Parameters:
permission - A Permission object that represents the permission.

setIsInherited

public void setIsInherited(boolean isInherited)
Sets whether the permission is inherited.

Parameters:
isInherited - The value true if the permission is inherited, false otherwise.

setHasPermission

public void setHasPermission(boolean hasPermission)
Sets whether the principal has the permission.

Parameters:
hasPermission - The value true if the principal has the permission, false otherwise.

getPermission

public Permission getPermission()
Retrieves the permission.

Returns:
A Permission object that represents the permission.

isInherited

public boolean isInherited()
Determines whether the permission is inherited.

Returns:
The value true if the permission is inherited, false otherwise.

isHasPermission

public boolean isHasPermission()
Determines whether the principal has the permission. This method is added to fulfill the javabeans requirement for boolean types.

Returns:
The value true if the principal has the permission, false otherwise.

hasPermission

public boolean hasPermission()
Determines whether the principal has the permission.

Returns:
The value true if the principal has the permission, false otherwise.


[an error occurred while processing this directive] [an error occurred while processing this directive]