public class AdminInfo
extends java.lang.Object
Reflection
. These descriptions can then be overridden by the service initialisation admin document,
if different security levels are required.
Data is read as the first nested element under the Data
tag name. The Other_Meta
tag is recognised
as a slot for other metadata and the Policy
tag is recognised as a slot for an autonomous service's policy
or control script. This optional metadata is added to the additional
hash list, as separate XML elements with
optional keywords. These XML elements can then be retrieved from the 'additional' hash list directly, by using the
appropriate key. See the admin user guide for further details.
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> |
additional
List of additional XML sections.
|
Constructor and Description |
---|
AdminInfo()
Create a new instance of AdminInfo.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addLevelOrder(java.lang.String theLevel)
Add another level to the end of the list.
|
AdminInfo |
cloneAdminInfo()
Return a cloned copy of this admin info object.
|
java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> |
getAccessLevels()
Get the access levels for each method.
|
java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> |
getAdditional()
Additional metadata elements not necessarily processed directly in the base services.
|
java.lang.String |
getAdminFilePath()
Get the file path for the admin xml file.
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getAllExclude()
Get the excluded levels values.
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getAllGroups()
Get the groups the levels are put into.
|
org.licas_xml.abs.Element |
getAutonomicManagerAdmin()
Get the configuration description for the autonomic manager.
|
java.lang.String |
getCategory()
Get the service category.
|
org.licas_xml.abs.Element |
getData()
Get the data value.
|
org.licas_xml.abs.Element |
getDescription()
Get the description value.
|
static java.util.ArrayList<java.lang.String> |
getDistinctAdminTagNames()
Get a list of element names that are recognised as distinct script types.
|
org.licas_xml.abs.Element |
getInstanceValues()
Get the variable instance values script.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getLevelGroups()
Get the access levels with related groups.
|
java.util.ArrayList<java.lang.String> |
getLevelOrder()
Get the level order.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getLevelPasswords()
Get the passwords stored for each access level.
|
org.licas_xml.abs.Element |
getLoadServices()
Get the metadata defining the services to load.
|
boolean |
getMetaAccessAllowed()
Get the value indicating if access to the service metadata is allowed.
|
boolean |
getNestedAccessAllowed()
Get the value indicating if access to the nested services is allowed.
|
org.licas_xml.abs.Element |
getOtherMeta()
Get the metadata specific to this service.
|
org.licas_xml.abs.Element |
getSerializeValues()
Get the variable serialize values script.
|
org.licas_xml.abs.Element |
getServicelevelContracts()
Get the service level contracts value.
|
java.lang.String |
getType()
Get the service type.
|
java.lang.String |
getUuid()
Get the service uuid.
|
boolean |
hasAccessLevel(java.lang.String levelKey)
Return true if the access level exists.
|
static boolean |
isDistinctAdminTag(java.lang.String elementName)
Return true if the element name is a recognised admin tag name that gets processed
and stored in the default classes.
|
void |
setAccessLevels(java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> theAccessLevels)
Set the method access levels.
|
void |
setAdminFilePath(java.lang.String thisAdminFile)
Set the file path for the admin xml file.
|
void |
setAllExclude(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> theAllExclude)
Set the excluded levels values.
|
void |
setAllGroups(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> theAllGroups)
Set the level groups.
|
void |
setAutonomicManagerAdmin(org.licas_xml.abs.Element theAutoManAdmin)
Set the configuration description for the autonomic manager.
|
void |
setCategory(java.lang.String theCategory)
Set the service category.
|
void |
setData(org.licas_xml.abs.Element dataXml)
Set the data value.
|
void |
setDescription(org.licas_xml.abs.Element theDescription)
Set the description value.
|
void |
setInstanceValues(org.licas_xml.abs.Element theInstanceValues)
Set the variable instance values script.
|
void |
setLevelGroups(java.util.HashMap<java.lang.String,java.lang.String> theLevelGroups)
Set the groups for each level.
|
void |
setLevelOrder(java.util.ArrayList<java.lang.String> theLevelOrder)
Set the level order.
|
void |
setLevelPasswords(java.util.HashMap<java.lang.String,java.lang.String> theLevelPasswords)
Store the level passwords with the level names.
|
void |
setLoadServices(org.licas_xml.abs.Element theLoadServices)
Set the services to load value.
|
void |
setMetaAccessAllowed(boolean thisMetaAccessAllowed)
Set the values indicating if access to service metadata is allowed or blocked.
|
void |
setNestedAccessAllowed(boolean thisNestedAccessAllowed)
Set the values indicating if access to nested services is allowed or blocked.
|
void |
setOtherMeta(org.licas_xml.abs.Element otherMetaXml)
Set the additional other metadata values.
|
void |
setSeializeValues(org.licas_xml.abs.Element theSerializeValues)
Set the variable serialize values script.
|
void |
setServiceLevelContracts(org.licas_xml.abs.Element theServiceLevelAdmin)
Set the service level agreements value.
|
void |
setType(java.lang.String theType)
Set the service type.
|
void |
setUuid(java.lang.String theUuid)
Set the service uuid.
|
protected java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> additional
Event
element.public boolean hasAccessLevel(java.lang.String levelKey)
levelKey
- the access level key.public void setAdminFilePath(java.lang.String thisAdminFile)
thisAdminFile
- the admin document file path.public java.lang.String getAdminFilePath()
public void setUuid(java.lang.String theUuid)
theUuid
- the service uuid.public java.lang.String getUuid()
public void setType(java.lang.String theType)
theType
- the service type.public java.lang.String getType()
public void setCategory(java.lang.String theCategory)
theCategory
- the service category.public java.lang.String getCategory()
public void setMetaAccessAllowed(boolean thisMetaAccessAllowed)
thisMetaAccessAllowed
- if true access is allowed but still requires the password.
If false access is blocked for any condition.public boolean getMetaAccessAllowed()
public void setNestedAccessAllowed(boolean thisNestedAccessAllowed)
thisNestedAccessAllowed
- if true access is allowed but still requires the password.
If false access is blocked for any condition.public boolean getNestedAccessAllowed()
public void setDescription(org.licas_xml.abs.Element theDescription)
theDescription
- the description of the service.public org.licas_xml.abs.Element getDescription()
public void setAutonomicManagerAdmin(org.licas_xml.abs.Element theAutoManAdmin)
theAutoManAdmin
- the description of the autonomic manager config.public org.licas_xml.abs.Element getAutonomicManagerAdmin()
public void setServiceLevelContracts(org.licas_xml.abs.Element theServiceLevelAdmin)
theServiceLevelAdmin
- the description of the service levels.public org.licas_xml.abs.Element getServicelevelContracts()
public void setLoadServices(org.licas_xml.abs.Element theLoadServices)
theLoadServices
- the metadata related to the services to load.public org.licas_xml.abs.Element getLoadServices()
public void setData(org.licas_xml.abs.Element dataXml) throws java.lang.Exception
dataXml
- the service data.java.lang.Exception
- any error.public org.licas_xml.abs.Element getData()
public void setOtherMeta(org.licas_xml.abs.Element otherMetaXml)
otherMetaXml
- the additional metadata not included as default.public org.licas_xml.abs.Element getOtherMeta()
public java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> getAdditional()
public void setInstanceValues(org.licas_xml.abs.Element theInstanceValues)
theInstanceValues
- description of actual variable instance values.public org.licas_xml.abs.Element getInstanceValues()
public void setSeializeValues(org.licas_xml.abs.Element theSerializeValues)
theSerializeValues
- description of actual variable serialize values.public org.licas_xml.abs.Element getSerializeValues()
public boolean addLevelOrder(java.lang.String theLevel)
theLevel
- the name of the access level to add.public void setLevelOrder(java.util.ArrayList<java.lang.String> theLevelOrder)
theLevelOrder
- the level order. Values are level names of type String.public java.util.ArrayList<java.lang.String> getLevelOrder()
public void setLevelPasswords(java.util.HashMap<java.lang.String,java.lang.String> theLevelPasswords)
theLevelPasswords
- the passwords for each level. Keys are the
level names of type String and values are the access passwords of type String.public java.util.HashMap<java.lang.String,java.lang.String> getLevelPasswords()
public void setAccessLevels(java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> theAccessLevels)
theAccessLevels
- the access levels for each method. Keys are the
access levels of type String and values are descriptions of the methods
at each level of type String.public java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> getAccessLevels()
public void setLevelGroups(java.util.HashMap<java.lang.String,java.lang.String> theLevelGroups)
theLevelGroups
- the access levels with related groups. Keys are the
access levels of type String and values are the associated group names of
type String.public java.util.HashMap<java.lang.String,java.lang.String> getLevelGroups()
public void setAllGroups(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> theAllGroups)
theAllGroups
- the groups the levels are put into. Keys are the
group names of type String and values are the access levels in that group
of type ArrayList of Strings.public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getAllGroups()
public void setAllExclude(java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> theAllExclude)
theAllExclude
- the excluded levels values. Keys are the access
levels of type String and values are the excluded access levels of type
ArrayList of Strings.public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getAllExclude()
public AdminInfo cloneAdminInfo()
public static boolean isDistinctAdminTag(java.lang.String elementName)
Event
is not recognised.elementName
- the name of the element.public static java.util.ArrayList<java.lang.String> getDistinctAdminTagNames()
Event
is not returned.