Class IdentityMembershipHelper


  • public class IdentityMembershipHelper
    extends Object
    This is a helper class to Identity Membership Condition View Beans.
    • Method Detail

      • getInstance

        public static IdentityMembershipHelper getInstance()
        Returns an instance of IdentityMembershipHelper.
        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 create AMIdentity object.
        userLocale - User Locale.
        viewBean - Instance of the view bean object that is used to create option list.
        values - Map of AMIdentityMembershipCondition.AM_IDENTITY_NAME to a set of identity IDs.
      • getSelectedIdentities

        public static Map getSelectedIdentities​(com.sun.web.ui.view.addremove.CCAddRemove child)
        Returns a map of AMIdentityMembershipCondition.AM_IDENTITY_NAME to a set of identity IDs.
        Parameters:
        child - Add Remove Child Component which contains the selected identity IDs.
        Returns:
        a map of AMIdentityMembershipCondition.AM_IDENTITY_NAME to 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 contains AMIdentity object options.
        Parameters:
        token - Administrator Single Sign On token that is used to create the AMIdentity object.
        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 of AMIdentity objects.
        Returns:
        an option list that contains AMIdentity object options.
      • getAMIdentityNames

        public static Set getAMIdentityNames​(SSOToken token,
                                             Collection ids)
        Returns a set of AMIdentity object names.
        Parameters:
        token - Administrator Single Sign On token to be used for creating the AMIdentity object.
        ids - Collection of identity IDs.
        Returns:
        a set of AMIdentity object names.
      • getAMIdentity

        public static Set getAMIdentity​(SSOToken token,
                                        Collection ids)
        Returns a set of AMIdentity objects.
        Parameters:
        token - Administrator Single Sign On token to be used for creating the AMIdentity object.
        ids - Collection of identity IDs.
        Returns:
        a set of AMIdentity objects.