|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.security.impl.privileges.SimplePrivilegeFactory
public class SimplePrivilegeFactory
Default Factory creating Privileges for that are declared via a Repository Item and are not path dependant.
PrivilegeFactory| Method Summary | |
|---|---|
Privilege |
create(String privilegePath,
Authorizable authorizable,
PrivilegeStore store)
The Factory creates an Privilege in any case. |
Collection<String> |
handles()
Explicitly declare the Privileges this Factor is able to create Privileges for. In case another Factory for one of the Privileges is already configured, registration of this Factory fails |
boolean |
handles(String privilegePath)
Simple check to determine if the Factory will be able to create a Privilege for |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Collection<String> handles()
handles in interface PrivilegeFactoryPrivilege-ID
this factory registers forpublic boolean handles(String privilegePath)
privilegePath - to test
public Privilege create(String privilegePath,
Authorizable authorizable,
PrivilegeStore store)
create in interface PrivilegeFactoryprivilegePath - of the Privilege to create. must be contained in the set it handlesauthorizable - this privilege is created forstore - containing configuration for the authorizable/privilege pair
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||