org.jboss.seam.security.permission
Class PermissionMetadata

java.lang.Object
  extended by org.jboss.seam.security.permission.PermissionMetadata

public class PermissionMetadata
extends Object

Permission actions can either be persisted as a comma-separated list of values, or as a bit-masked numerical value where certain bits represent specific actions for that class. This is a helper class that handles the conversion automatically and presents a unified API for dealing with these persistent actions.

Author:
Shane Bryzak

Nested Class Summary
protected  class PermissionMetadata.ActionSet
           
 
Constructor Summary
PermissionMetadata()
           
 
Method Summary
 PermissionMetadata.ActionSet createActionSet(Class targetClass, String members)
           
 List<String> listAllowableActions(Class targetClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionMetadata

public PermissionMetadata()
Method Detail

createActionSet

public PermissionMetadata.ActionSet createActionSet(Class targetClass,
                                                    String members)

listAllowableActions

public List<String> listAllowableActions(Class targetClass)