|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.deployment.ServiceDeploymentDeleter
public final class ServiceDeploymentDeleter
Utility used to delete a SAS Foundation Services deployment from a SAS Metadata Repository.
Constructor Summary | |
---|---|
ServiceDeploymentDeleter(com.sas.metadata.remote.SoftwareComponent softwareComponent)
Constructs an instance of a utility that can be used to delete a SAS Foundation Services deployment. |
Method Summary | |
---|---|
protected void |
addDeletionTemplates(java.util.Map deletionTemplateMap)
Adds deletion templates necessary to delete the following: service component named services localized resources properties (Property) property's stored configuration (TextStore) |
void |
delete()
Delete this metadata ServiceComponent representing a
foundation service. |
static void |
deleteDeployment(java.lang.String[] args)
Main method for an application which is used to delete a SAS Foundation Services deployment from a SAS Metadata Repository. |
protected void |
deleteMetadataObjects(java.util.List deletedObjects)
Deletes the metadata objects specified in the list. |
protected static void |
deleteProperties(com.sas.metadata.remote.Root root,
java.util.List deletedObjects)
Disassociates properties from the metadata object by collecting the Property, its owning PropertyType, and its stored configuration Text eligible for deletion. |
protected static void |
deleteProperty(com.sas.metadata.remote.Property property,
java.util.List deletedObjects)
Disassociates properties from the metadata object by collecting the Property, its owning PropertyType, and its stored configuration Text eligible for deletion. |
static void |
deleteServiceDeployment(com.sas.metadata.remote.MdStore mdStore,
java.lang.String repositoryName,
java.lang.String serviceDeploymentName)
Deletes the SAS Foundation Services deployment from the metadata server. |
static void |
deleteServiceDeploymentForID(com.sas.metadata.remote.MdStore mdStore,
java.lang.String repositoryName,
java.lang.String serviceDeploymentID)
Deletes the SAS Foundation Services deployment from the metadata server which matches the specified FQID ( SoftwareComponent.Id ). |
protected static java.lang.String |
getDeleteTemplateDeployedComponent()
Gets a deletion template for a DeployedComponent. |
protected static java.lang.String |
getDeleteTemplateEvent()
Gets a deletion template for an Event. |
protected static java.lang.String |
getDeleteTemplateLocalizedResource()
Gets a deletion template for a localized resource. |
protected static java.lang.String |
getDeleteTemplateNamedService()
Gets a deletion template for a named service. |
protected static java.lang.String |
getDeleteTemplateProperty()
Gets a deletion template for a DeployedComponent. |
protected static java.lang.String |
getDeleteTemplateTextStore()
Gets a deletion template for a DeployedComponent. |
protected com.sas.metadata.remote.Root |
getRoot()
Gets the metadata object which is to be deleted. |
static void |
main(java.lang.String[] args)
Main method for an application which is used to delete a SAS Foundation Services deployment from a SAS Metadata Repository. |
protected void |
verifyIsOKToDelete()
Verify whether or not it is OK to delete the metadata object. |
Constructor Detail |
---|
public ServiceDeploymentDeleter(com.sas.metadata.remote.SoftwareComponent softwareComponent)
softwareComponent
- The SAS Foundation Services deployment that is to be deleted.
java.lang.IllegalArgumentException
- if an invalid service deployment is specified.Method Detail |
---|
protected void addDeletionTemplates(java.util.Map deletionTemplateMap) throws ServiceException
deletionTemplateMap
- Map keyed by a deletion template to a deletion template.
ServiceException
- if an exception occurred while attempting to delete the
foundation services deployment.protected void deleteMetadataObjects(java.util.List deletedObjects) throws ServiceException
deletedObjects
- Metadata objects to be deleted.
ServiceException
- if an exception occurred while attempting to delete the
foundation services deployment.public static void main(java.lang.String[] args)
SAS Foundation Services | |
---|---|
Option | Description |
-serviceDeploymentName |
Name of the SAS Foundation Services deployment (SoftwareComponent.Name) whose metadata is to be deleted from the SAS Metadata Server to a file |
-serviceDeploymentID |
FQID of the SAS Foundation Services deployment (SoftwareComponent.Id) whose metadata is to be deleted from the SAS Metadata Server to a file |
One must specify the SAS Metadata Server and the desired connection approach.
args
- Command line arguments specifying the metadata server, the
name of the services deployment to be deleted.
One may optionally specify whether
an option prompt is presented by specifying
the command line option -isPrompting <true|false>
public static void deleteDeployment(java.lang.String[] args) throws ServiceException
SAS Foundation Services | |
---|---|
Option | Description |
-serviceDeploymentName |
Name of the SAS Foundation Services deployment (SoftwareComponent.Name) whose metadata is to be deleted from the SAS Metadata Server to a file |
-serviceDeploymentID |
FQID of the SAS Foundation Services deployment (SoftwareComponent.Id) whose metadata is to be deleted from the SAS Metadata Server to a file |
One must specify the SAS Metadata Server and the desired connection approach.
args
- Command line arguments specifying the metadata server and either the
ID or name of the services deployment to be deleted.
One may optionally specify whether
an option prompt is presented by specifying
the command line option -isPrompting <true|false>
ServiceException
- if unable to delete the deployment.public static void deleteServiceDeployment(com.sas.metadata.remote.MdStore mdStore, java.lang.String repositoryName, java.lang.String serviceDeploymentName) throws ServiceException
mdStore
- Metadata store whose factory has a connection to the metadata server.repositoryName
- The name of the metadata repository that contains the SAS Foundation Services
deployment that is to be deleted.serviceDeploymentName
- The name of the SAS Foundation Services deployment that is to be deleted
from the SAS Metadata Server.
ServiceException
- if an exception is encountered.public static void deleteServiceDeploymentForID(com.sas.metadata.remote.MdStore mdStore, java.lang.String repositoryName, java.lang.String serviceDeploymentID) throws ServiceException
SoftwareComponent.Id
).
mdStore
- Metadata store whose factory has a connection to the metadata server.repositoryName
- The name of the metadata repository that contains the SAS Foundation Services
deployment that is to be deleted.serviceDeploymentID
- The FQID (SoftwareComponent.Id
) of the SAS Foundation Services
deployment that is to be deleted from the SAS Metadata Server.
ServiceException
- if an exception is encountered.protected static final java.lang.String getDeleteTemplateDeployedComponent()
protected static final java.lang.String getDeleteTemplateEvent()
protected static final java.lang.String getDeleteTemplateLocalizedResource()
protected static final java.lang.String getDeleteTemplateNamedService()
protected static final java.lang.String getDeleteTemplateTextStore()
protected static final java.lang.String getDeleteTemplateProperty()
public void delete() throws DependentServicesException, ServiceException
ServiceComponent
representing a
foundation service. Note that no other services must depend upon
this service or else this deletion request will be rejected.
DependentServicesException
- if the request to delete the service
was denied because another service depends upon the service being deleted.
ServiceException
- if unable to delete the service.protected void verifyIsOKToDelete() throws ServiceException
ServiceException
- if it is not OK to delete the metadata object.protected static final void deleteProperties(com.sas.metadata.remote.Root root, java.util.List deletedObjects) throws com.sas.metadata.remote.MdException
root
- The metadata object whose properties are to be cleared.deletedObjects
- List of CMetadata
objects which are to be deleted.
This list will be updated with objects which should be deleted.
com.sas.metadata.remote.MdException
- if unable to determine which objects need to be deleted.protected static final void deleteProperty(com.sas.metadata.remote.Property property, java.util.List deletedObjects) throws com.sas.metadata.remote.MdException
property
- A metadata property which is to be deleted.deletedObjects
- List of CMetadata
objects which are to be deleted.
This list will be updated with objects which should be deleted.
com.sas.metadata.remote.MdException
- if unable to determine which objects need to be deleted.protected final com.sas.metadata.remote.Root getRoot()
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |