public class RestrictionsList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(UserContext userContext)
Returns whether the given
UserContext matches one of the stored UIDs of this instance. |
void |
addUID(java.lang.String uid)
Add a user or role UID to this list.
|
java.util.Collection<java.lang.String> |
getUIDs()
Returns the list of all UIDs currently contained in this list.
|
void |
removeAllUIDs()
Clears this restrictions list.
|
boolean |
removeUID(java.lang.String uid)
Removes a user or role UID from this list.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public void addUID(java.lang.String uid)
uid
- UID to addpublic boolean removeUID(java.lang.String uid)
uid
- UID to removepublic void removeAllUIDs()
public boolean accepts(UserContext userContext)
UserContext
matches one of the stored UIDs of this instance.userContext
- the UserContext
to checktrue
if the unique user UID or on of the role UIDs of the given UserContext
is containedpublic java.util.Collection<java.lang.String> getUIDs()
String
instanceswww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.