Class SMDiscoveryServiceData
- java.lang.Object
-
- com.sun.identity.console.service.model.SMDiscoveryServiceData
-
- All Implemented Interfaces:
Serializable
public class SMDiscoveryServiceData extends Object implements Serializable
SMDiscoveryServiceDatadefines a set of methods that are required by discovery service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Debugdebugstatic intDYNAMIC_ENTRYstatic intGLOBAL_ENTRYstatic intUSER_RESOURCE_OFFERING_ENTRY
-
Constructor Summary
Constructors Constructor Description SMDiscoveryServiceData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourceData(SMDiscoEntryData data)Adds the resource offering entry to the list object.voiddeleteDiscoEntries(Integer[] array)Deletes the resource offering entries.StringgetAbstractValue(String discoStr)Returns the value of abstract type.MapgetAttr()Returns the global attributes for discovery service stored in this object.static MapgetDirectiveEntry(com.sun.identity.liberty.ws.disco.plugins.jaxb.DiscoEntryElement entry)Returns map of directive entries.SetgetDiscoveryEntries()Returns a set resource offering entries.MapgetDynamicAttr()Returns the dynamic attributes for discovery service stored in this object.static SMDiscoveryServiceDatagetEntries(Set set)Returns resource offering entry stored in the Directory Server.static SMDiscoveryServiceDatagetEntries(Set set, int type)Returns resource offering entry stored in the Directory Server.intgetEntryType()Returns true if the flag for global entry is set.StringgetPriority()Returns priority stored in this object.ListgetResourceData()Returns the list of resource offering.SMDiscoEntryDatagetSMDiscoEntryDataHandler()Returns the handler to theSMDiscoEntryDatainstance stored in this object.booleanhasResources()Returns true if there is an entry for resource offering.booleanisResourceOfferingModified()Returns true if a resource offering entries has modified.booleanisUserResourceOffering()Returns true if the flag for global entry is set.voidreplaceResourceData(int idx, SMDiscoEntryData data)Replaces the resource offering entry to the list object.voidsetAttr(Map map)Stores the global attributes for discovery services in this object.voidsetDynamicAttr(Map map)Stores the dynamic attributes for discovery services in this object.voidsetEntryType(int value)Sets the global entry flag to the value provided.voidsetPriority(String value)Sets the priority to a new value in this object.voidsetResourceOfferingEntryFlag(boolean value)Sets the resource offering entry flag to a new value in this object.voidsetSMDiscoEntryDataHandler(SMDiscoEntryData data)Sets the resource offering entry object to the value provided.
-
-
-
Field Detail
-
debug
public static Debug debug
-
GLOBAL_ENTRY
public static final int GLOBAL_ENTRY
- See Also:
- Constant Field Values
-
DYNAMIC_ENTRY
public static final int DYNAMIC_ENTRY
- See Also:
- Constant Field Values
-
USER_RESOURCE_OFFERING_ENTRY
public static final int USER_RESOURCE_OFFERING_ENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSMDiscoEntryDataHandler
public SMDiscoEntryData getSMDiscoEntryDataHandler()
Returns the handler to theSMDiscoEntryDatainstance stored in this object.- Returns:
- handler to the
SMDiscoEntryDatainstance.
-
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 AMConsoleExceptionReplaces 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) throws AMConsoleException
Returns resource offering entry stored in the Directory Server.- Parameters:
set- Set of entry data.- Returns:
- resource offering entry stored in the Directory Server.
- Throws:
AMConsoleException
-
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.
-
-