org.apache.lenya.cms.ac.workflow
Class WorkflowAuthorizer

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.ac.workflow.WorkflowAuthorizer
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.framework.service.Serviceable, Authorizer

public class WorkflowAuthorizer
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements Authorizer, org.apache.avalon.framework.service.Serviceable

If the client requested invoking a workflow event, this authorizer checks if the current document state and identity roles allow this transition.


Field Summary
protected static java.lang.String EVENT_PARAMETER
           
 
Fields inherited from interface org.apache.lenya.ac.Authorizer
ROLE
 
Constructor Summary
WorkflowAuthorizer()
           
 
Method Summary
 boolean authorize(org.apache.cocoon.environment.Request request)
          Authorizes an identity at a URL.
 void service(org.apache.avalon.framework.service.ServiceManager manager)
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_PARAMETER

protected static final java.lang.String EVENT_PARAMETER
See Also:
Constant Field Values
Constructor Detail

WorkflowAuthorizer

public WorkflowAuthorizer()
Method Detail

authorize

public boolean authorize(org.apache.cocoon.environment.Request request)
                  throws AccessControlException
Description copied from interface: Authorizer
Authorizes an identity at a URL.

Specified by:
authorize in interface Authorizer
Parameters:
request - The request.
Returns:
true if the identity is authorized, false otherwise.
Throws:
AccessControlException - when something went wrong.
See Also:
Authorizer.authorize(org.apache.cocoon.environment.Request)

service

public void service(org.apache.avalon.framework.service.ServiceManager manager)
             throws org.apache.avalon.framework.service.ServiceException
Specified by:
service in interface org.apache.avalon.framework.service.Serviceable
Throws:
org.apache.avalon.framework.service.ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)


Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.