Class AuthorityServiceImpl.UserAuthoritySet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<String>
-
- org.alfresco.repo.security.authority.AuthorityServiceImpl.UserAuthoritySet
-
- Enclosing class:
- AuthorityServiceImpl
public final class AuthorityServiceImpl.UserAuthoritySet extends AbstractSet<String>
Lazy load set of authorities. Try not to iterate or ask for the size. Needed for the case where there are a large number of sites/groups.- Author:
- David Ward, Alan Davis
-
-
Constructor Summary
Constructors Constructor Description UserAuthoritySet(String username)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String e)voidclear()booleancontains(Object o)ObjectgetUsername()Iterator<String>iterator()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
UserAuthoritySet
public UserAuthoritySet(String username)
- Parameters:
username- String
-
-
Method Detail
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAllin interfaceCollection<String>- Specified by:
removeAllin interfaceSet<String>- Overrides:
removeAllin classAbstractSet<String>
-
add
public boolean add(String e)
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceSet<String>- Overrides:
addin classAbstractCollection<String>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<String>- Specified by:
clearin interfaceSet<String>- Overrides:
clearin classAbstractCollection<String>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<String>- Specified by:
containsin interfaceSet<String>- Overrides:
containsin classAbstractCollection<String>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<String>- Specified by:
removein interfaceSet<String>- Overrides:
removein classAbstractCollection<String>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAllin interfaceCollection<String>- Specified by:
retainAllin interfaceSet<String>- Overrides:
retainAllin classAbstractCollection<String>
-
size
public int size()
- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceSet<String>- Specified by:
sizein classAbstractCollection<String>
-
getUsername
public Object getUsername()
-
-