Class DiscoEntryHandlerImplUtils


  • public class DiscoEntryHandlerImplUtils
    extends Object
    • Field Detail

      • debug

        protected static Debug debug
    • Constructor Detail

      • DiscoEntryHandlerImplUtils

        public DiscoEntryHandlerImplUtils()
    • Method Detail

      • getQueryResults

        public static Map getQueryResults​(Map discoEntries,
                                          List reqServiceTypes)
      • handleRemoves

        public static boolean handleRemoves​(Map discoEntriesMap,
                                            List removes)
      • handleInserts

        public static Map handleInserts​(Set discoEntries,
                                        List inserts)
      • getGlobalDiscoEntries

        public static void getGlobalDiscoEntries​(AMIdentity amIdentity,
                                                 String attrName,
                                                 Map discoEntries,
                                                 String userID)
                                          throws Exception
        This is used by the global disocvery service handler to retrieve the resource offerings registered at the realm, org, role etc.
        Throws:
        Exception
      • setGlobalDiscoEntries

        public static boolean setGlobalDiscoEntries​(AMIdentity amIdentity,
                                                    String attrName,
                                                    Collection entries)
        Registers the discovery service resource offerings to the AMIdentity This is used by the global disocvery service handler to register the resource offerings to the realm, org, role etc.
        Parameters:
        amIdentity - the idrepo object that the resource offerings are being set.
        attrName - the discovery service attribute name where the disco entries are being stored.
        entries - the list of discovery services that needs to be set.
        Returns:
        true if successfully set the entries.