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) |
isEveryone
protected static org.apache.commons.logging.Log log
protected UserManager um
protected Collection<String> groups
public AcceptsGroupOnly()
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 IContentFilter
Copyright © 2016 Nuxeo SA. All rights reserved.