public class AcceptsGroupOnly extends AbstractContentFilter implements IContentFilter
UserManager is available.| Modifier and Type | Field and Description |
|---|---|
protected Collection<String> |
groups |
protected static org.apache.commons.logging.Log |
log |
protected UserManager |
um |
| Constructor and Description |
|---|
AcceptsGroupOnly() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsUserOrGroup(String userOrGroup)
Return true if the input string is the name of a group known by the
UserManager service. |
boolean |
isGroup(String user) |
isEveryoneprotected static org.apache.commons.logging.Log log
protected UserManager um
protected Collection<String> groups
public boolean acceptsUserOrGroup(String userOrGroup)
UserManager service.
Return also true if input is equal to SecurityConstants.EVERYONE,
since this is a special user name intended to define inheritance blocker
rules.acceptsUserOrGroup in interface IContentFilterpublic boolean isGroup(String user) throws ClientException
ClientExceptionCopyright © 2020 Nuxeo SA. All rights reserved.