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

This 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 - The permission.

setIsInherited

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

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

setHasPermission

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

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

getPermission

public Permission getPermission()
Retrieves the permission.

Returns:
The permission.

isInherited

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

Returns:
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:
true if the principal has the permission, false otherwise.

hasPermission

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

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