public class ArrayCentralConfig extends Object
Modifier and Type | Method and Description |
---|---|
String |
createComponentAndSettings(String componentName,
String componentType,
String componentDescription,
List<String[]> nameValuePair) |
int |
createSettingEntries(String componentGUID,
String componentName,
String componentType,
List<String[]> nameValuePair)
The function creates a new setting entry on "AR System Configuration Component Setting" form.
|
boolean |
deleteSetting(String componentName,
String componentType,
String settingName,
String settingValue)
Delete settings entries that have a specific name and value.
|
Entry |
getActiveComponent(String componentName,
String componentType)
Get the active component entry for a given component name and type.
|
String |
getComponentGUID(String componentName,
String componentType)
This method will return the component guid for the given component name and component type
|
String |
getComponentGUIDFromEntry(Entry thisEntry) |
String |
getComponentNameFromEntry(Entry thisEntry) |
List<Entry> |
getComponentWithPrefix(String componentNamePrefix,
String componentType)
This method will return the component GUIDs that are active, with the given component type and prefixed with the
componentNamePrefix
|
List<String[]> |
getConfigSettingsAsList(String configName,
String configType,
String settingName) |
Map<String,List<String>> |
getConfigSettingsAsMap(String configName,
String configType,
String settingName)
This method will return a HashMap of setting name vs list of setting values associated with that setting name.
|
List<Entry> |
getConfigSettingsWithEntryIDs(String configName,
String configType,
String settingName) |
List<Entry> |
getConfigSettingsWithEntryIDs(String configName,
String configType,
String settingName,
int relationOPForCompName) |
String |
getEntryValue(Entry thisEntry) |
ARPluginDefinition |
getPlugin(String pluginDefName,
String pluginXmlPath,
String pluginSetName)
Retrieves the given plugin from the given plug-in server, if present, else returns null.
|
void |
registerPlugin(ARPluginDefinition pluginDef,
String pluginXmlPath,
String pluginSetName)
Use this method to add or modify a plug-in.
|
void |
setSettingEntries(String entryID,
String componentGUID,
String componentName,
String componentType,
String settingName,
String settingValue)
The function creates a new setting entry on "AR System Configuration Component Setting" form.
|
void |
unregisterPlugin(String pluginDefName,
String pluginXmlPath,
String pluginSetName)
Deletes the given plugin from the given plug-in server.
|
void |
updateComponentFileTimeStamp(String componentGUID,
Timestamp expectedTimeStamp)
This method can be used to update component values like name, type and description provided these fields are not
null Status will always be updated This method will not update the GUID
|
void |
updateConfigSetting(String settingEntryID,
String settingName,
String settingValue) |
void |
updateOrCreateSetting(String componentGUID,
String componentName,
String componentType,
String settingName,
String settingValue)
Only use this method if setting name is unique, will not work for duplicates as it will only update the first one
|
public String createComponentAndSettings(String componentName, String componentType, String componentDescription, List<String[]> nameValuePair) throws ARException
ARException
public List<Entry> getComponentWithPrefix(String componentNamePrefix, String componentType) throws ARException
componentNamePrefix
- componentType
- ARException
public Entry getActiveComponent(String componentName, String componentType) throws ARException
componentName
- componentType
- ARException
public int createSettingEntries(String componentGUID, String componentName, String componentType, List<String[]> nameValuePair) throws ARException
componentGUID
- : Component GUID. If a NULL is passed here, a new component entry will get createdcomponentName
- : Component Name.componentType
- : Component Type.nameValuePair
- : List of Name value pairs.ARException
public void setSettingEntries(String entryID, String componentGUID, String componentName, String componentType, String settingName, String settingValue) throws ARException
componentGUID
- : Component GUID. If a NULL is passed here, a new component entry will get createdcomponentName
- : Component Name.componentType
- : Component Type.nameValuePair
- : List of Name value pairs.ARException
public List<String[]> getConfigSettingsAsList(String configName, String configType, String settingName) throws ARException
ARException
public List<Entry> getConfigSettingsWithEntryIDs(String configName, String configType, String settingName) throws ARException
ARException
public List<Entry> getConfigSettingsWithEntryIDs(String configName, String configType, String settingName, int relationOPForCompName) throws ARException
ARException
public Map<String,List<String>> getConfigSettingsAsMap(String configName, String configType, String settingName) throws ARException
configName
- configType
- settingName
- ARException
public void updateComponentFileTimeStamp(String componentGUID, Timestamp expectedTimeStamp) throws ARException
componentGUID
- status
- ARException
public void updateConfigSetting(String settingEntryID, String settingName, String settingValue) throws ARException
ARException
public void updateOrCreateSetting(String componentGUID, String componentName, String componentType, String settingName, String settingValue) throws ARException
componentGUID
- componentName
- componentType
- settingName
- settingValue
- ARException
public boolean deleteSetting(String componentName, String componentType, String settingName, String settingValue) throws ARException
componentName
- the component namecomponentType
- the component typesettingName
- the setting namesettingValue
- the setting valueARException
public void registerPlugin(ARPluginDefinition pluginDef, String pluginXmlPath, String pluginSetName) throws ARException
ARException
public void unregisterPlugin(String pluginDefName, String pluginXmlPath, String pluginSetName) throws ARException
pluginDefName
- pluginXmlPath
- pluginSetName
- ARException
public ARPluginDefinition getPlugin(String pluginDefName, String pluginXmlPath, String pluginSetName) throws ARException
pluginDefName
- pluginXmlPath
- pluginSetName
- ARException
public String getComponentGUID(String componentName, String componentType) throws ARException
ARException
? Copyright 2013 BMC Software, Inc.