public class PrincipalModelList extends AbstractList implements Serializable
Modifier and Type | Field and Description |
---|---|
protected List<Object> |
membersList |
protected Map<IDirPrincipal,PrincipalModel> |
wrappedObjCache |
modCount
Constructor and Description |
---|
PrincipalModelList(List<?> membersList)
Constructor to provide the list object for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element)
Add a member to the members list.
|
protected IDirPrincipal |
calcDirPrincipal(Object obj) |
void |
clear()
Clear the members list.
|
IPrincipalProvider |
get(int index)
Get a member from the members list.
|
protected IDirSystemBizPolicy |
getDirSystemBizPolicy()
Get the biz policy for directory systems.
|
protected IContext |
getPortalContext()
Acquire a portal context and cache it.
|
Object |
remove(int index)
Remove a member from the members list.
|
IPrincipalProvider |
set(int index,
Object element) |
int |
size()
Size of the members list.
|
PrincipalModel |
wrapObject(Object obj)
Create a principal model from the provided object.
|
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected Map<IDirPrincipal,PrincipalModel> wrappedObjCache
public PrincipalModelList(List<?> membersList)
membersList
- The list object for this class.public void add(int index, Object element)
add
in interface List
add
in class AbstractList
index
- The position in the list.element
- The member to add.public Object remove(int index)
remove
in interface List
remove
in class AbstractList
index
- The position in the list.public void clear()
clear
in interface Collection
clear
in interface List
clear
in class AbstractList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public IPrincipalProvider get(int index)
get
in interface List
get
in class AbstractList
index
- The position in the list.protected IContext getPortalContext()
protected IDirSystemBizPolicy getDirSystemBizPolicy() throws BizException
BizException
protected IDirPrincipal calcDirPrincipal(Object obj) throws PortalException
PortalException
public PrincipalModel wrapObject(Object obj)
obj
- The object used to create a principal model.PortalException
public IPrincipalProvider set(int index, Object element)
set
in interface List
set
in class AbstractList