public class ServiceMeta
extends java.lang.Object
A Service's AdminInfo
or ServiceLinks
objects also store metadata info that represent
the current service's use and associations, and helps to create these descriptive entries.
A ServiceMeta object is not stored permanently, but is created dynamically on request and populated
with information from these objects.
One ServiceMeta
object however is stored permanently on the server in the metadata repository
.
It is added, with the default subset of values, when the service is firstly loaded onto the server and
it is not updated unless the service manually updates it. Linking info would not typically
be updated automatically, for example, but an initialisation admin document can be included.
The metadata can be retrieved in parts as well, by asking for particular fields, as part of an include
list.
These can be defined by: Const
.UUID
, SERVICETYPE
, SERVICEGRADE
,
SERVICECATEGORY
, MODULE
, SERVICEPATH
, DESCRIPTION
, KEYWORDS
, CHILDSERVICES
,
LINKS
, ASSOCIATEDLINKS
, CLASSNAME
, JARFILE
, CONSTRUCTORS
,
METHODS
, OTHERMETA
, DATA
, INSTANCEVALUES
, PARAMETERS
.
Some of these require the admin key for access.
Modifier and Type | Field and Description |
---|---|
org.licas_xml.abs.Element |
childServiceMeta
The child service ids.
|
java.util.ArrayList<org.licas_xml.abs.Element> |
constructorMeta
A list of constructors.
|
org.licas_xml.abs.Element |
data
Any value-based metadata
|
org.licas_xml.abs.Element |
description
A description of the service
|
org.licas_xml.abs.Element |
instanceValues
List of variables with or without instance values
|
java.util.ArrayList<java.lang.String> |
jarFile
The name of the jar file(s) that the class can be loaded from.
|
KeywordHandler |
keywordHandler
The list of keywords relating to any of the concepts
|
org.licas_xml.abs.Element |
linkServiceMeta
The uuids of permanently linked services.
|
org.licas_xml.abs.Element |
meta
Any other metadata, such as keywords, etc
|
java.util.ArrayList<org.licas_xml.abs.Element> |
methodMeta
A list of public methods.
|
java.lang.String |
moduleName
The name of the module that the service class is loaded from
|
org.licas_xml.abs.Element |
parameters
Constructor parameters.
|
org.licas_xml.abs.Element |
serviceAssociations
The full paths of services that this service knows about.
|
java.lang.String |
serviceCategory
The service category
|
java.lang.String |
serviceClass
The service class
|
java.lang.String |
serviceGrade
The service grade
|
java.lang.String |
serviceType
The service type
|
org.licas_xml.abs.Element |
serviceUri
The service URI path
|
java.lang.String |
uuid
The service uuid
|
Constructor and Description |
---|
ServiceMeta()
Create a new instance of ServiceMeta.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetaPart(java.lang.String toInclude,
ServiceMeta thisMeta)
Add a meta part to this metadata object from the meta passed in.
|
void |
clearChildAndLinksMeta()
Clear all metadata descriptions for child services or links
|
java.lang.Object |
clone()
Return a cloned copy of this object.
|
java.util.ArrayList<java.lang.String> |
getAssociationServices()
Parse the association link service XML and return a list of stored IDs.
|
java.util.ArrayList<java.lang.Object> |
getChildServices()
Parse the child service metadata and return the text or XML-based descriptions.
|
org.licas_xml.abs.Element |
getKeywordXml()
Get the keywords metadata lists in XML format.
|
java.util.ArrayList<java.lang.String> |
getLinkServices()
Parse the permanent link service XML and return a list of stored IDs.
|
ServiceMeta |
getMetaForInfo()
Retrieve the meta that can be returned for info purposes.
|
boolean |
hasMetaForInfo(java.lang.String toInclude)
Return true if the this metadata object contains an entry for the specified
metadata part.
|
void |
setKeywordHandler(KeywordHandler theKeywordHandler)
Set the keyword handler for processing all keywords.
|
boolean |
setServiceMeta(java.lang.String theUuid,
java.lang.String theServiceType,
java.lang.String theServiceGrade,
java.lang.String theServiceClass,
org.licas_xml.abs.Element theServicePath,
java.util.ArrayList<java.lang.String> theJarFile)
Set the ServiceMeta details.
|
boolean |
setServiceMeta(java.lang.String theUuid,
java.lang.String theServiceType,
java.lang.String theServiceGrade,
java.lang.String theServiceClass,
org.licas_xml.abs.Element theServicePath,
java.util.ArrayList<java.lang.String> theJarFile,
AdminInfo adminInfo)
Set the ServiceMeta details.
|
boolean |
setServiceMeta(java.lang.String theUuid,
java.lang.String theServiceType,
java.lang.String theServiceGrade,
java.lang.String theServiceClass,
org.licas_xml.abs.Element theServicePath,
java.util.ArrayList<java.lang.String> theJarFile,
java.util.ArrayList<org.licas_xml.abs.Element> theConstructors,
java.util.ArrayList<org.licas_xml.abs.Element> theMethods,
AdminInfo adminInfo)
Set the ServiceMeta details.
|
public java.lang.String uuid
public java.lang.String serviceClass
public java.lang.String serviceType
public java.lang.String serviceGrade
public java.lang.String serviceCategory
public java.lang.String moduleName
public org.licas_xml.abs.Element serviceUri
public org.licas_xml.abs.Element description
public org.licas_xml.abs.Element meta
public org.licas_xml.abs.Element data
public org.licas_xml.abs.Element instanceValues
public java.util.ArrayList<org.licas_xml.abs.Element> constructorMeta
public java.util.ArrayList<org.licas_xml.abs.Element> methodMeta
public java.util.ArrayList<java.lang.String> jarFile
public KeywordHandler keywordHandler
public org.licas_xml.abs.Element childServiceMeta
public org.licas_xml.abs.Element linkServiceMeta
public org.licas_xml.abs.Element serviceAssociations
linkServiceMeta
structure would typically form the permanent network structure and therefore would
be confined to a single server only.public org.licas_xml.abs.Element parameters
public void clearChildAndLinksMeta()
public boolean hasMetaForInfo(java.lang.String toInclude)
toInclude
- additional meta parts to include as well as the default part.public boolean setServiceMeta(java.lang.String theUuid, java.lang.String theServiceType, java.lang.String theServiceGrade, java.lang.String theServiceClass, org.licas_xml.abs.Element theServicePath, java.util.ArrayList<java.lang.String> theJarFile) throws java.lang.Exception
theUuid
- the service uuid.theServiceType
- the service type.theServiceGrade
- the service grade, for example ServiceConst
.{code BASE} or UTILITY
.theServiceClass
- the fully qualified class name of the service the meta describes.theServicePath
- the fully qualified path to the service.theJarFile
- a list of jar files required to load the service.
Values are the jar file paths of type String.java.lang.Exception
- any error.public boolean setServiceMeta(java.lang.String theUuid, java.lang.String theServiceType, java.lang.String theServiceGrade, java.lang.String theServiceClass, org.licas_xml.abs.Element theServicePath, java.util.ArrayList<java.lang.String> theJarFile, AdminInfo adminInfo)
theUuid
- the service uuid.theServiceType
- the service type.theServiceGrade
- the service grade, for example ServiceConst
.{code BASE} or UTILITY
.theServiceClass
- the fully qualified class name of the service the meta describes.theServicePath
- the fully qualified path to the service.theJarFile
- a list of jar files required to load the service.
Values are the jar file paths of type String.adminInfo
- admin info with description and other metadata.public boolean setServiceMeta(java.lang.String theUuid, java.lang.String theServiceType, java.lang.String theServiceGrade, java.lang.String theServiceClass, org.licas_xml.abs.Element theServicePath, java.util.ArrayList<java.lang.String> theJarFile, java.util.ArrayList<org.licas_xml.abs.Element> theConstructors, java.util.ArrayList<org.licas_xml.abs.Element> theMethods, AdminInfo adminInfo)
theUuid
- the service uuid.theServiceType
- the service type.theServiceGrade
- the service grade, for example ServiceConst
.{code BASE} or UTILITY
.theServiceClass
- the fully qualified class name of the service the meta describes.theServicePath
- the fully qualified path to the service.theJarFile
- a list of jar files required to load the service.
Values are the jar file paths of type String.theConstructors
- a list of constructor definitions in XML.theMethods
- a list of method definitions in XML.adminInfo
- admin info with description and other metadata.public ServiceMeta getMetaForInfo()
public void addMetaPart(java.lang.String toInclude, ServiceMeta thisMeta)
toInclude
- the section to includethisMeta
- the other metadata object to copy from.public void setKeywordHandler(KeywordHandler theKeywordHandler)
theKeywordHandler
- the keyword handler.public org.licas_xml.abs.Element getKeywordXml() throws java.lang.Exception
java.lang.Exception
- any error.public java.util.ArrayList<java.lang.Object> getChildServices()
public java.util.ArrayList<java.lang.String> getLinkServices() throws java.lang.Exception
java.lang.Exception
- any error.public java.util.ArrayList<java.lang.String> getAssociationServices() throws java.lang.Exception
java.lang.Exception
- any error.public java.lang.Object clone()
clone
in class java.lang.Object