public class ServiceAdminHandler
extends java.lang.Object
Constructor and Description |
---|
ServiceAdminHandler()
Create a new instance of ServiceAdminHandler.
|
Modifier and Type | Method and Description |
---|---|
static org.licas_xml.abs.Element |
createAdminOnlyContractNo()
Create an admin document with only a yes contract section.
|
static org.licas_xml.abs.Element |
createAdminOnlyContractYes()
Create an admin document with only a yes contract section.
|
static ServiceMeta |
createFullServiceMeta(java.util.ArrayList<java.lang.String> jarFile,
java.lang.String theAdminKey,
ServiceAdmin sa)
Create a full metadata description of this service.
|
static ServiceMeta |
createMetaForRepos(ServiceAdmin sa)
Create a metadata description of the parent service for the server repository.
|
static ServiceMeta |
createServiceMeta(java.util.ArrayList<java.lang.String> jarFile,
java.lang.String theAdminKey,
ServiceAdmin sa)
Create a full metadata description of this service.
|
static void |
parseAdminInfo(org.licas_xml.abs.Element adminXml,
ServiceAdmin sa)
Parse the admin info XML to create the service admin info.
|
static void |
parseAdminXml(org.licas_xml.abs.Element adminXml,
ServiceAdmin sa)
Parse the adminXml element to determine what information it contains.
|
public ServiceAdminHandler()
public static void parseAdminInfo(org.licas_xml.abs.Element adminXml, ServiceAdmin sa) throws java.lang.Exception
adminXml
- the xml-based description of the service.sa
- the ServiceAdmin the operation is for.java.lang.Exception
- any error.public static void parseAdminXml(org.licas_xml.abs.Element adminXml, ServiceAdmin sa) throws java.lang.Exception
adminXml
- the metadata adminXml.sa
- the ServiceAdmin the operation is for.java.lang.Exception
- any error.public static ServiceMeta createServiceMeta(java.util.ArrayList<java.lang.String> jarFile, java.lang.String theAdminKey, ServiceAdmin sa) throws java.lang.Exception
Service
then create a new one so
that the settings are the most recent.
The description describes only this service and no nested services.jarFile
- list of remote jar files if loaded remotely.theAdminKey
- the unique service key for admin purposes.sa
- the ServiceAdmin the operation is for.java.lang.Exception
- any error.public static ServiceMeta createFullServiceMeta(java.util.ArrayList<java.lang.String> jarFile, java.lang.String theAdminKey, ServiceAdmin sa) throws java.lang.Exception
jarFile
- list of remote jar files if loaded remotely.theAdminKey
- the unique service key for admin purposes.sa
- the ServiceAdmin the operation is for.java.lang.Exception
- any error.public static ServiceMeta createMetaForRepos(ServiceAdmin sa) throws java.lang.Exception
sa
- the ServiceAdmin the operation is for.java.lang.Exception
- any error.public static org.licas_xml.abs.Element createAdminOnlyContractYes()
public static org.licas_xml.abs.Element createAdminOnlyContractNo()