Class SMDiscoveryServiceData

  • All Implemented Interfaces:
    Serializable

    public class SMDiscoveryServiceData
    extends Object
    implements Serializable
    SMDiscoveryServiceData defines a set of methods that are required by discovery service.
    See Also:
    Serialized Form
    • Constructor Detail

      • SMDiscoveryServiceData

        public SMDiscoveryServiceData()
    • Method Detail

      • getSMDiscoEntryDataHandler

        public SMDiscoEntryData getSMDiscoEntryDataHandler()
        Returns the handler to the SMDiscoEntryData instance stored in this object.
        Returns:
        handler to the SMDiscoEntryData instance.
      • setSMDiscoEntryDataHandler

        public void setSMDiscoEntryDataHandler​(SMDiscoEntryData data)
        Sets the resource offering entry object to the value provided.
        Parameters:
        data - SMDiscoEntryData
      • hasResources

        public boolean hasResources()
        Returns true if there is an entry for resource offering.
        Returns:
        true if there is an entry for resource offering.
      • addResourceData

        public void addResourceData​(SMDiscoEntryData data)
        Adds the resource offering entry to the list object.
        Parameters:
        data - SMDiscoEntryData
      • replaceResourceData

        public void replaceResourceData​(int idx,
                                        SMDiscoEntryData data)
                                 throws AMConsoleException
        Replaces the resource offering entry to the list object.
        Parameters:
        idx - Index of element in resource offering list.
        data - SMDiscoEntryData
        Throws:
        AMConsoleException
      • getResourceData

        public List getResourceData()
        Returns the list of resource offering.
        Returns:
        the list of resource offering.
      • setAttr

        public void setAttr​(Map map)
        Stores the global attributes for discovery services in this object.
        Parameters:
        map - global attributes and values.
      • setDynamicAttr

        public void setDynamicAttr​(Map map)
        Stores the dynamic attributes for discovery services in this object.
        Parameters:
        map - dynamic attributes and values.
      • getAttr

        public Map getAttr()
        Returns the global attributes for discovery service stored in this object.
        Returns:
        the map of global attributes.
      • getDynamicAttr

        public Map getDynamicAttr()
        Returns the dynamic attributes for discovery service stored in this object.
        Returns:
        the map of dynamic attributes.
      • isUserResourceOffering

        public boolean isUserResourceOffering()
        Returns true if the flag for global entry is set.
        Returns:
        true if the flag for global entry is set.
      • getEntryType

        public int getEntryType()
        Returns true if the flag for global entry is set.
        Returns:
        true if the flag for global entry is set.
      • setEntryType

        public void setEntryType​(int value)
        Sets the global entry flag to the value provided. True value indicate that it is a global entry.
        Parameters:
        value - value to indicate global entry or not.
      • setPriority

        public void setPriority​(String value)
        Sets the priority to a new value in this object.
        Parameters:
        value - priority value.
      • getPriority

        public String getPriority()
        Returns priority stored in this object.
        Returns:
        priority stored in this object.
      • isResourceOfferingModified

        public boolean isResourceOfferingModified()
        Returns true if a resource offering entries has modified.
        Returns:
        true if a resource offering entries has modified.
      • setResourceOfferingEntryFlag

        public void setResourceOfferingEntryFlag​(boolean value)
        Sets the resource offering entry flag to a new value in this object.
        Parameters:
        value - resource offering entry flag value.
      • getDiscoveryEntries

        public Set getDiscoveryEntries()
        Returns a set resource offering entries.
        Returns:
        resource offering entries in entry.
      • deleteDiscoEntries

        public void deleteDiscoEntries​(Integer[] array)
        Deletes the resource offering entries.
        Parameters:
        array - Array of entries to be deleted.
      • getEntries

        public static SMDiscoveryServiceData getEntries​(Set set,
                                                        int type)
                                                 throws AMConsoleException
        Returns resource offering entry stored in the Directory Server.
        Parameters:
        set - Set of entry data.
        type - Type of offering entry, global, dynamic or user.
        Returns:
        resource offering entry stored in the Directory Server.
        Throws:
        AMConsoleException
      • getAbstractValue

        public String getAbstractValue​(String discoStr)
        Returns the value of abstract type.
        Parameters:
        discoStr - resource offering entry string.
        Returns:
        the value of abstract type in the resource offering entry.
      • getDirectiveEntry

        public static Map getDirectiveEntry​(com.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElement entry)
        Returns map of directive entries.
        Returns:
        map of directive entries.