|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.security.PrivateBlogFilterInvocationDefinitionSource
public class PrivateBlogFilterInvocationDefinitionSource
Bespoke FilterInvocationDefinitionSource that holds a mapping between blog IDs and the roles that can access them. This is used when blog owners mark their blog as "private", which forces authentication before the content can be accessed. This implementation allows mappings to be removed and added at runtime, making it possible to make blogs private without restarting the web/application server.
Constructor Summary | |
---|---|
PrivateBlogFilterInvocationDefinitionSource()
|
Method Summary | |
---|---|
ConfigAttributeDefinition |
getAttributes(java.lang.Object object)
Accesses the ConfigAttributeDefinition that applies to a given secure object. |
java.util.Iterator |
getConfigAttributeDefinitions()
If available, all of the ConfigAttributeDefinition s defined by the implementing class. |
boolean |
supports(java.lang.Class clazz)
Indicates whether the ObjectDefinitionSource implementation is able to provide
ConfigAttributeDefinition s for the indicated secure object type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrivateBlogFilterInvocationDefinitionSource()
Method Detail |
---|
public ConfigAttributeDefinition getAttributes(java.lang.Object object) throws java.lang.IllegalArgumentException
ConfigAttributeDefinition
that applies to a given secure object.Returns
null
if no ConfigAttribiteDefinition
applies.
object
- the object being secured
ConfigAttributeDefinition
that applies to the passed object
java.lang.IllegalArgumentException
- if the passed object is not of a type supported by the
ObjectDefinitionSource
implementationpublic java.util.Iterator getConfigAttributeDefinitions()
ConfigAttributeDefinition
s defined by the implementing class.This
is used by the org.acegisecurity.intercept.AbstractSecurityInterceptor
to perform startup time validation of each
ConfigAttribute
configured against it.
ConfigAttributeDefinition
s or null
if unsupportedpublic boolean supports(java.lang.Class clazz)
ObjectDefinitionSource
implementation is able to provide
ConfigAttributeDefinition
s for the indicated secure object type.
clazz
- the class that is being queried
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |