|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.lenya.cms.ac.usecase.UsecaseAuthorizer
public class UsecaseAuthorizer
Authorizer for usecases.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIGURATION_FILE
|
static java.lang.String |
PARAMETER_CONFIGURATION
|
static java.lang.String |
TYPE
|
static java.lang.String |
USECASE_PARAMETER
|
| Fields inherited from interface org.apache.lenya.ac.Authorizer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
UsecaseAuthorizer()
|
|
| Method Summary | |
|---|---|
boolean |
authorize(org.apache.cocoon.environment.Request request)
Authorizes an identity at a URL. |
boolean |
authorizeUsecase(java.lang.String usecase,
Role[] roles,
Publication publication)
Authorizes a usecase. |
boolean |
authorizeUsecase(java.lang.String usecase,
Role[] roles,
java.lang.String configurationUri)
Authorizes a usecase. |
void |
dispose()
|
SourceCache |
getCache()
Returns the configuration source cache. |
java.lang.String |
getConfigurationURI()
Returns the configuration URL. |
protected java.lang.String |
getConfigurationURI(Publication publication)
Returns the source URI of the usecase role configuration file for a certain publication. |
void |
parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
|
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 |
|---|
public static final java.lang.String TYPE
public static final java.lang.String USECASE_PARAMETER
public static final java.lang.String CONFIGURATION_FILE
public static final java.lang.String PARAMETER_CONFIGURATION
| Constructor Detail |
|---|
public UsecaseAuthorizer()
| Method Detail |
|---|
public SourceCache getCache()
protected java.lang.String getConfigurationURI(Publication publication)
publication - The publication.
public boolean authorize(org.apache.cocoon.environment.Request request)
throws AccessControlException
Authorizer
authorize in interface Authorizerrequest - The request.
true if the identity is authorized, false otherwise.
AccessControlException - when something went wrong.Authorizer.authorize(org.apache.cocoon.environment.Request)
public boolean authorizeUsecase(java.lang.String usecase,
Role[] roles,
java.lang.String configurationUri)
throws AccessControlException
usecase - The usecase ID.roles - The roles of the current identity.configurationUri - The URI to retrieve the policy configuration from.
AccessControlException - when something went wrong.
public void service(org.apache.avalon.framework.service.ServiceManager manager)
throws org.apache.avalon.framework.service.ServiceException
service in interface org.apache.avalon.framework.service.Serviceableorg.apache.avalon.framework.service.ServiceExceptionServiceable.service(org.apache.avalon.framework.service.ServiceManager)public void dispose()
dispose in interface org.apache.avalon.framework.activity.DisposableDisposable.dispose()
public void parameterize(org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.avalon.framework.parameters.ParameterException
parameterize in interface org.apache.avalon.framework.parameters.Parameterizableorg.apache.avalon.framework.parameters.ParameterExceptionParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)public java.lang.String getConfigurationURI()
public boolean authorizeUsecase(java.lang.String usecase,
Role[] roles,
Publication publication)
throws AccessControlException
usecase - The usecase to authorize.roles - The roles of the identity.publication - The publication.
AccessControlException - when something went wrong.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||