Package com.sun.identity.console.policy
Class IdentityMembershipHelper
- java.lang.Object
-
- com.sun.identity.console.policy.IdentityMembershipHelper
-
public class IdentityMembershipHelper extends Object
This is a helper class to Identity Membership Condition View Beans.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.iplanet.jato.view.html.OptionListcreateOptionList(SSOToken token, Locale userLocale, AMViewBeanBase viewBean, Collection values)Returns an option list that containsAMIdentityobject options.static SetgetAMIdentity(SSOToken token, Collection ids)Returns a set ofAMIdentityobjects.static SetgetAMIdentityNames(SSOToken token, Collection ids)Returns a set ofAMIdentityobject names.static IdentityMembershipHelpergetInstance()Returns an instance ofIdentityMembershipHelper.static MapgetSelectedIdentities(com.sun.web.ui.view.addremove.CCAddRemove child)Returns a map ofAMIdentityMembershipCondition.AM_IDENTITY_NAMEto a set of identity IDs.static voidsetSelectedIdentities(com.sun.web.ui.view.addremove.CCAddRemove child, SSOToken token, Locale userLocale, AMViewBeanBase viewBean, Map values)Populates the add remove child component with identity IDs.
-
-
-
Method Detail
-
getInstance
public static IdentityMembershipHelper getInstance()
Returns an instance ofIdentityMembershipHelper.- Returns:
- an instance of
IdentityMembershipHelper.
-
setSelectedIdentities
public static void setSelectedIdentities(com.sun.web.ui.view.addremove.CCAddRemove child, SSOToken token, Locale userLocale, AMViewBeanBase viewBean, Map values)Populates the add remove child component with identity IDs.- Parameters:
child- The add remove child component.token- Administrator Single Sign Token which is used to createAMIdentityobject.userLocale- User Locale.viewBean- Instance of the view bean object that is used to create option list.values- Map ofAMIdentityMembershipCondition.AM_IDENTITY_NAMEto a set of identity IDs.
-
getSelectedIdentities
public static Map getSelectedIdentities(com.sun.web.ui.view.addremove.CCAddRemove child)
Returns a map ofAMIdentityMembershipCondition.AM_IDENTITY_NAMEto a set of identity IDs.- Parameters:
child- Add Remove Child Component which contains the selected identity IDs.- Returns:
- a map of
AMIdentityMembershipCondition.AM_IDENTITY_NAMEto a set of identity IDs.
-
createOptionList
public static com.iplanet.jato.view.html.OptionList createOptionList(SSOToken token, Locale userLocale, AMViewBeanBase viewBean, Collection values)
Returns an option list that containsAMIdentityobject options.- Parameters:
token- Administrator Single Sign On token that is used to create theAMIdentityobject.userLocale- User Locale.viewBean- Instance of the view bean object that is used to create option list.values- Either a collection of identity IDs or a collection ofAMIdentityobjects.- Returns:
- an option list that contains
AMIdentityobject options.
-
getAMIdentityNames
public static Set getAMIdentityNames(SSOToken token, Collection ids)
Returns a set ofAMIdentityobject names.- Parameters:
token- Administrator Single Sign On token to be used for creating theAMIdentityobject.ids- Collection of identity IDs.- Returns:
- a set of
AMIdentityobject names.
-
getAMIdentity
public static Set getAMIdentity(SSOToken token, Collection ids)
Returns a set ofAMIdentityobjects.- Parameters:
token- Administrator Single Sign On token to be used for creating theAMIdentityobject.ids- Collection of identity IDs.- Returns:
- a set of
AMIdentityobjects.
-
-