com.metamatrix.platform.security.api
Interface AuthorizationPermissionFactory

All Known Implementing Classes:
BasicAuthorizationPermissionFactory, RolePermissionFactory

public interface AuthorizationPermissionFactory

This interface is implemented by classes that are able to create AuthorizationPermission instances, and is invoked by the service providers during loading and saving of policies from and to data storage.


Method Summary
 AuthorizationPermission create(AuthorizationResource resource, AuthorizationRealm realm, AuthorizationActions actions, java.lang.String contentModifier)
          Create a new authorization permission for the specified resource.
 AuthorizationPermission create(java.lang.String resource, AuthorizationRealm realm)
          Create a new authorization permission for the specified resource.
 AuthorizationPermission create(java.lang.String resource, AuthorizationRealm realm, AuthorizationActions actions)
          Create a new authorization permission for the specified resource with the given actions.
 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.
 

Method Detail

getPermissionClass

java.lang.Class getPermissionClass()
Get the class that this factory creates instances of.

Returns:
the class of the instances returned by this factory's create methods.

createResource

AuthorizationResource createResource(java.lang.String name)
Create the AuthorizationResource type for the permission type that this factory creates instances of.

Returns:
A new resource instance of the appropriate type.

create

AuthorizationPermission create(AuthorizationResource resource,
                               AuthorizationRealm realm,
                               AuthorizationActions actions,
                               java.lang.String contentModifier)
Create a new authorization permission for the specified resource.

Parameters:
resource - the resource identifier
realm - the realm into which this resource belongs
actions - the actions for the resource
contentModifier - the content modifier (may be null)

create

AuthorizationPermission create(java.lang.String resource,
                               AuthorizationRealm realm)
Create a new authorization permission for the specified resource.

Parameters:
resource - the resource identifier
realm - the realm into which this resource belongs

create

AuthorizationPermission create(java.lang.String resource,
                               AuthorizationRealm realm,
                               AuthorizationActions actions)
Create a new authorization permission for the specified resource with the given actions.

Parameters:
resource - the resource identifier
realm - the realm into which this resource belongs
actions - the actions for the resource


Copyright © 2009. All Rights Reserved.