com.metamatrix.platform.security.api
Class BasicAuthorizationPermissionFactory

java.lang.Object
  extended by com.metamatrix.platform.security.api.BasicAuthorizationPermissionFactory
All Implemented Interfaces:
AuthorizationPermissionFactory, java.io.Serializable

public class BasicAuthorizationPermissionFactory
extends java.lang.Object
implements AuthorizationPermissionFactory, java.io.Serializable

This class is the factory for BasicAuthorizationPermission instances.

See Also:
Serialized Form

Constructor Summary
BasicAuthorizationPermissionFactory()
           
 
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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicAuthorizationPermissionFactory

public BasicAuthorizationPermissionFactory()
Method Detail

getPermissionClass

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

Specified by:
getPermissionClass in interface AuthorizationPermissionFactory
Returns:
the class of the instances returned by this factory's create methods.

createResource

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

Specified by:
createResource in interface AuthorizationPermissionFactory
Returns:
A new resource instance of the appropriate type.

create

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

Specified by:
create in interface AuthorizationPermissionFactory
Parameters:
resource - the resource
realm - the realm into which this resource belongs
actions - the actions for the resource
contentModifier - the content modifier (may be null)

create

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

Specified by:
create in interface AuthorizationPermissionFactory
Parameters:
resource - the resource
realm - the realm into which this resource belongs

create

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

Specified by:
create in interface AuthorizationPermissionFactory
Parameters:
resource - the resource
realm - the realm into which this resource belongs
actions - the actions for the resource


Copyright © 2009. All Rights Reserved.