public class PrincipalAttributeValueSourceSelectItemGroupProvider extends DefaultSelectItemGroupProvider implements ISelectItemGroupProvider
Modifier and Type | Class and Description |
---|---|
protected static class |
PrincipalAttributeValueSourceSelectItemGroupProvider.SelectItemComparator |
m_filter, m_filterable, m_items
m_description, m_disabled, m_escaped, m_icon, m_label, m_style, m_value, source
Constructor and Description |
---|
PrincipalAttributeValueSourceSelectItemGroupProvider()
Default AttrValueSource provider.
|
PrincipalAttributeValueSourceSelectItemGroupProvider(int principalType)
AttrValueSource provider.
|
PrincipalAttributeValueSourceSelectItemGroupProvider(int principalType,
boolean includeCommonAttrs)
AttrValueSource provider.
|
Modifier and Type | Method and Description |
---|---|
protected List<SelectItemGroup> |
calculateAttrValueItems(int principalType,
boolean includeCommonAttrs)
Calculate the available attributes for the requested principal type.
|
protected SelectItemGroup |
loadAttributesForProvider(Locale locale,
IContext portalContext,
IPrincipalAttributeBizPolicy papBizPolicy,
IThingID providerThingID,
int principalType,
IDirSystemBizPolicy dirSysPolicy)
Load all the attributes for a principal type and return them as a SelectItemGroup.
|
add, findSelectItemContentProvider, getFilter, getSelectItemContentProviders, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, initialize, isFilterable, setFilter, setFilterable
getDescription, getIcon, getLabel, getSource, getStyle, getValue, initialize, initialize, isDisabled, isEscape, setDescription, setDisabled, setEscape, setIcon, setLabel, setSource, setStyle, setValue
isNoSelectionOption, setNoSelectionOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSelectItemContentProviders
getDescription, getIcon, getLabel, getStyle, getValue, isDisabled, isEscape
public PrincipalAttributeValueSourceSelectItemGroupProvider()
IDirConstants.TYPE_USER
.public PrincipalAttributeValueSourceSelectItemGroupProvider(int principalType)
principalType
- The principal type to use for this provider.public PrincipalAttributeValueSourceSelectItemGroupProvider(int principalType, boolean includeCommonAttrs)
principalType
- The principal type to use for this provider.includeCommonAttrs
- To include common attributes provided by the directory service.protected List<SelectItemGroup> calculateAttrValueItems(int principalType, boolean includeCommonAttrs)
principalType
- The principal type to use.includeCommonAttrs
- To include common attributes provided by the directory service.protected SelectItemGroup loadAttributesForProvider(Locale locale, IContext portalContext, IPrincipalAttributeBizPolicy papBizPolicy, IThingID providerThingID, int principalType, IDirSystemBizPolicy dirSysPolicy) throws PortalException
locale
- The local to use for the attributes titles.portalContext
- papBizPolicy
- providerThingID
- principalType
- Use IDirConstants.TYPE_USER
, IDirConstants.TYPE_ROLE
, or IDirConstants.TYPE_GROUP
.dirSysPolicy
- PortalException