@Target(value=METHOD) @Retention(value=RUNTIME) public @interface ChildOf
Optionally, ChildOf methods may be marked as user locator methods by setting the isUser property of the annotation to true. If this is done then the method will be used for authentication, and the returned object will be used to derive an Access Control List which will be used for authorization.
Note that to perform authentication you MUST use a ChildOf method, you cannot use a ChildrenOf method
The method must:
@ChildOf
public User findUser(UsersHome homeFolder, String userId) {
return UserDao.findUser(userId);
}
| Modifier and Type | Optional Element and Description |
|---|---|
String |
pathSuffix
Will only match on paths which end with the given suffix.
|
public abstract String pathSuffix