Package icc.util

Class BundleUtil


  • public class BundleUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BundleUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<sailpoint.object.Profile> buildFlatProfilesList​(sailpoint.api.SailPointContext context, java.util.List<java.lang.String> entitlements)
      Build a List of Profiles from a List of ManagedAttributes IDs.
      static java.util.List<sailpoint.object.Profile> buildProfilesList​(sailpoint.api.SailPointContext context, java.util.List<java.lang.String> entitlements)
      Build a List of Profiles from a List of ManagedAttributes IDs.
      static java.util.List<java.lang.String> getBusinessRolesContainingEntitlementOverItRole​(sailpoint.api.SailPointContext context, java.lang.String entitlementApp, java.lang.String entitlementName, java.lang.String entitlementValue)
      Searches for all business roles that contain an it role containing the specified entitlement
      static java.util.List<sailpoint.object.Filter> getConstraints​(sailpoint.object.Bundle bundle)
      Get constraints of a it role
      static java.lang.String getDisplayableName​(sailpoint.api.SailPointContext ctx, java.lang.String pNameOrId)
      Converts the name or id of a bundle to its displayable name
      static java.util.ArrayList<java.lang.String> getEntitlementIdsUsedInBundle​(sailpoint.api.SailPointContext context)  
      static java.util.Set<sailpoint.object.Entitlement> getEntitlementObjectsFromBundle​(sailpoint.api.SailPointContext context, sailpoint.object.Bundle bundle)
      Method to get all entitlement objects present the given bundle
      static java.util.Set<sailpoint.object.Entitlement> getEntitlementObjectsFromFilter​(sailpoint.api.SailPointContext context, sailpoint.object.Filter filter, java.lang.String application)
      Method to gather all entitlement objects present in a given filter
      static java.util.List<sailpoint.object.ManagedAttribute> getEntitlementsFromBundle​(sailpoint.api.SailPointContext context, sailpoint.object.Bundle bundle)  
      static java.util.List<sailpoint.object.ManagedAttribute> getEntitlementsFromFilter​(sailpoint.api.SailPointContext context, sailpoint.object.Filter filter, java.lang.String appId)
      Get entitlements
      static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getEntitlementsNamesFromITRoleAsListOfMaps​(sailpoint.object.Filter filter)
      Get entitlements' names recursively from an it-role
      static java.util.List<java.util.Map<java.lang.String,​java.util.List<java.lang.String>>> getFilteredEntitlementsNamesFromITRoleAsListOfMaps​(sailpoint.object.Filter filter)
      Method to get a map of all the entitlement values with the corresponding attributes present in the given filter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BundleUtil

        public BundleUtil()
    • Method Detail

      • getConstraints

        public static java.util.List<sailpoint.object.Filter> getConstraints​(sailpoint.object.Bundle bundle)
                                                                      throws sailpoint.tools.GeneralException
        Get constraints of a it role
        Parameters:
        bundle - of an it-role
        Returns:
        returns a list of constraints (CompositeFilters and Filters)
        Throws:
        sailpoint.tools.GeneralException
      • getEntitlementsNamesFromITRoleAsListOfMaps

        public static java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getEntitlementsNamesFromITRoleAsListOfMaps​(sailpoint.object.Filter filter)
        Get entitlements' names recursively from an it-role
        Parameters:
        cFilter - CompositeFilter object being contained by the filter object
        Returns:
        returns Map of property and its values from LeafFilter object
      • getEntitlementsFromBundle

        public static java.util.List<sailpoint.object.ManagedAttribute> getEntitlementsFromBundle​(sailpoint.api.SailPointContext context,
                                                                                                  sailpoint.object.Bundle bundle)
                                                                                           throws sailpoint.tools.GeneralException
        Parameters:
        bundle - Bundle object
        Returns:
        returns entitlements
        Throws:
        sailpoint.tools.GeneralException
      • getEntitlementsFromFilter

        public static java.util.List<sailpoint.object.ManagedAttribute> getEntitlementsFromFilter​(sailpoint.api.SailPointContext context,
                                                                                                  sailpoint.object.Filter filter,
                                                                                                  java.lang.String appId)
                                                                                           throws sailpoint.tools.GeneralException
        Get entitlements
        Parameters:
        filter - containing entitlements
        appId - application id
        Returns:
        returns entitlements
        Throws:
        sailpoint.tools.GeneralException
      • getEntitlementObjectsFromBundle

        public static java.util.Set<sailpoint.object.Entitlement> getEntitlementObjectsFromBundle​(sailpoint.api.SailPointContext context,
                                                                                                  sailpoint.object.Bundle bundle)
                                                                                           throws sailpoint.tools.GeneralException
        Method to get all entitlement objects present the given bundle
        Parameters:
        context -
        bundle -
        Returns:
        Throws:
        sailpoint.tools.GeneralException
      • getEntitlementObjectsFromFilter

        public static java.util.Set<sailpoint.object.Entitlement> getEntitlementObjectsFromFilter​(sailpoint.api.SailPointContext context,
                                                                                                  sailpoint.object.Filter filter,
                                                                                                  java.lang.String application)
                                                                                           throws sailpoint.tools.GeneralException
        Method to gather all entitlement objects present in a given filter
        Parameters:
        context -
        filter -
        application -
        Returns:
        Throws:
        sailpoint.tools.GeneralException
      • getFilteredEntitlementsNamesFromITRoleAsListOfMaps

        public static java.util.List<java.util.Map<java.lang.String,​java.util.List<java.lang.String>>> getFilteredEntitlementsNamesFromITRoleAsListOfMaps​(sailpoint.object.Filter filter)
                                                                                                                                                         throws sailpoint.tools.GeneralException
        Method to get a map of all the entitlement values with the corresponding attributes present in the given filter
        Parameters:
        filter -
        Returns:
        Throws:
        sailpoint.tools.GeneralException
      • getEntitlementIdsUsedInBundle

        public static java.util.ArrayList<java.lang.String> getEntitlementIdsUsedInBundle​(sailpoint.api.SailPointContext context)
                                                                                   throws sailpoint.tools.GeneralException
        Parameters:
        context -
        Returns:
        Throws:
        sailpoint.tools.GeneralException
      • getBusinessRolesContainingEntitlementOverItRole

        public static java.util.List<java.lang.String> getBusinessRolesContainingEntitlementOverItRole​(sailpoint.api.SailPointContext context,
                                                                                                       java.lang.String entitlementApp,
                                                                                                       java.lang.String entitlementName,
                                                                                                       java.lang.String entitlementValue)
                                                                                                throws sailpoint.tools.GeneralException
        Searches for all business roles that contain an it role containing the specified entitlement
        Parameters:
        context -
        entitlementApp - Application name
        entitlementName - Entitlement name
        entitlementValue - Entitlement value
        Returns:
        A List of business role names that have been found
        Throws:
        sailpoint.tools.GeneralException
      • buildFlatProfilesList

        public static java.util.List<sailpoint.object.Profile> buildFlatProfilesList​(sailpoint.api.SailPointContext context,
                                                                                     java.util.List<java.lang.String> entitlements)
                                                                              throws sailpoint.tools.GeneralException
        Build a List of Profiles from a List of ManagedAttributes IDs. Every Entitlement gets it's own Profile.
        Parameters:
        context - SailPointContext
        entitlements - List of ManagedAttributes IDs
        Returns:
        List of Profiles
        Throws:
        sailpoint.tools.GeneralException
      • buildProfilesList

        public static java.util.List<sailpoint.object.Profile> buildProfilesList​(sailpoint.api.SailPointContext context,
                                                                                 java.util.List<java.lang.String> entitlements)
                                                                          throws sailpoint.tools.GeneralException
        Build a List of Profiles from a List of ManagedAttributes IDs. Entitlements are sorted by Applications. This means, if multiple Entitlements have the same Application, they are collected in one Profile.
        Parameters:
        context - SailPointContext
        entitlements - List of ManagedAttributes IDs
        Returns:
        List of Profiles
        Throws:
        sailpoint.tools.GeneralException
      • getDisplayableName

        public static java.lang.String getDisplayableName​(sailpoint.api.SailPointContext ctx,
                                                          java.lang.String pNameOrId)
        Converts the name or id of a bundle to its displayable name
        Parameters:
        ctx - SailPointContext
        pNameOrId - Name or Id of a bundle
        Returns: