|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.platform.security.util.RolePermissionFactory
public class RolePermissionFactory
This class is the factory for RolePermission instances.
Constructor Summary | |
---|---|
RolePermissionFactory()
|
Method Summary | |
---|---|
AuthorizationPermission |
create(AuthorizationResource role,
AuthorizationRealm realm,
AuthorizationActions actions,
java.lang.String contentModifier)
Create a new authorization permission for the specified resource. |
AuthorizationPermission |
create(java.lang.String roleName,
AuthorizationRealm realm)
Create a new authorization permission for the specified role. |
AuthorizationPermission |
create(java.lang.String roleName,
AuthorizationRealm realm,
AuthorizationActions actions)
Create a new authorization permission for the specified resource. |
AuthorizationResource |
createResource(java.lang.String name)
Create the AuthorizationResource type for the permission type that this factory creates instances of. |
java.lang.Class |
getPermissionClass()
Get the class that this factory creates instances of. |
static AuthorizationRealm |
getRealm()
Get the Realm under which the factory creates its roles. |
static java.lang.String |
getRealmName()
Get the name of the Realm under which the factory creates its roles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RolePermissionFactory()
Method Detail |
---|
public java.lang.Class getPermissionClass()
getPermissionClass
in interface AuthorizationPermissionFactory
create
methods.public AuthorizationResource createResource(java.lang.String name)
createResource
in interface AuthorizationPermissionFactory
public AuthorizationPermission create(java.lang.String roleName, AuthorizationRealm realm)
create
in interface AuthorizationPermissionFactory
roleName
- the new role namerealm
- the realm is thrown away. The RolePermissionFactory
knows the realm that roles belong.public AuthorizationPermission create(AuthorizationResource role, AuthorizationRealm realm, AuthorizationActions actions, java.lang.String contentModifier)
create
in interface AuthorizationPermissionFactory
roleName
- the name for the resource.realm
- the realm is thrown away. The RolePermissionFactory
knows the realm that roles belong.actions
- the actions for the resource - ignored in this factory.contentModifier
- the content modifier (may be null) - ignored in this factory.public AuthorizationPermission create(java.lang.String roleName, AuthorizationRealm realm, AuthorizationActions actions)
create
in interface AuthorizationPermissionFactory
roleName
- the new resource namerealm
- the realm is thrown away. The RolePermissionFactory
knows the realm that roles belong.actions
- the actions for the resource - ignored in this factory.public static java.lang.String getRealmName()
public static AuthorizationRealm getRealm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |