|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.security.PermissionFactory
Factory class to convert String literals into Permission objects
Field Summary | |
private static java.util.List |
factoryMethods
Permission factory classes |
Constructor Summary | |
private |
PermissionFactory()
private constructor for a utility class |
Method Summary | |
static Permission |
parse(java.lang.String permissionLiteral)
Creates for the argument an object of type Permission. |
static void |
register(java.lang.Class permissionClass)
Registers a permission factory method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.List factoryMethods
Constructor Detail |
private PermissionFactory()
Method Detail |
public static void register(java.lang.Class permissionClass)
permissionClass
- the permission class to register. The class needs to expose
the following method:
public static Permission parse(String permissionLiteral) throws PermissionException
public static Permission parse(java.lang.String permissionLiteral) throws PermissionException
Legal values for an access protection:
permissionLiteral
- String to parse
PermissionException
- if the argument is not matched
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |