public interface DeploymentManager
Modifier and Type | Method and Description |
---|---|
void |
deploy(java.util.Collection<Service> services,
CentraSiteRegistryObject gateway,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Deploys the given Services to the specified gateway
|
void |
deploy(DeploymentData deploymentData)
Deploys the services to the specified gateway given in the deployment data description.
|
void |
deploy(Service service,
CentraSiteRegistryObject gateway,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Deploys the given Service instance in the given gateways.
|
void |
deployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Triggers policy which deploys the Runtime aliases to all available gateways.
|
java.util.List<Gateway> |
getApplicableGateways()
Gets all Gateways in all organization and, filters only gateways, to which user has edit permission to.
|
DeploymentConfig |
getDeploymentConfig()
Get deployment settings from some 'DeploymentSettings/xxx entry in centrasite.xml
|
java.util.List<Gateway> |
getGateways()
Gets the List of configured Gateways.
|
RestServiceStack |
getRestServiceStack()
Get the 'restServiceStack' value out from the 'DeploymentSettings' entry in centrasite.xml.
|
DeploymentSuppressInfo |
getSuppressDeploymentPermission()
Get the configured value out from the 'DeploymentSettings/SuppressDeploymentPermission' entry in centrasite.xml.
|
void |
grantAccessToEveryOne(Service serviceToBeDeployed)
Triggers a policy which sets permissions to given assets & its dependents.
|
boolean |
isApiPublishedToAtleastOnePortal(CentraSiteObject centraSiteObject)
Checks whether given service is published to atleast one API-Portal
|
boolean |
isServiceDeployedToApiGateway(CentraSiteRegistryObject csro)
Checks whether given virtual service is deployed to at least one API gateway
|
boolean |
isServiceDeployedToAtleastOneMediator(CentraSiteRegistryObject csro)
Checks whether given virtual service is deployed to at least one mediator
|
boolean |
isSuppressDeploymentPermission()
Get the boolean value out from the 'DeploymentSettings/SuppressDeploymentPermission' entry in centrasite.xml.
|
void |
revokeConsumability(Service serviceToBeUnDeployed)
Triggers policy which removes the permissions configured in action of given asset.
|
void |
setDefaultUserCredentials(java.lang.String userId,
java.lang.String password)
Set the default userId and password to be used if gateway does not contain user credentials
This will be used during deployment
|
void |
undeploy(java.util.Collection<Service> services,
CentraSiteRegistryObject gateway,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Undeploy the given Service instances from the given gateway.
|
void |
undeploy(Service service,
CentraSiteRegistryObject gateway,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Undeploy the given Service instance from the given gateway.
|
void |
undeployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey,
Gateway gateway,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Triggers policy which undeploys the Runtime aliases from all available gateways.
|
void |
undeployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey,
java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks)
Triggers policy which undeploys the Runtime aliases from all available gateways.
|
java.util.List<Gateway> getGateways() throws CLLException
Gateway
s sorted by name.CLLException
- If an error occurs while getting the gateways listjava.util.List<Gateway> getApplicableGateways() throws CLLException
Gateway
s sorted by name.CLLException
- If an error occurs while getting the gateways listvoid setDefaultUserCredentials(java.lang.String userId, java.lang.String password)
userId
- Logged in UserId to be used if gateway does not contain user credentialspassword
- Logged in User password to be used if gateway does not contain user credentialsvoid deploy(Service service, CentraSiteRegistryObject gateway, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
service
- the Service
instance that needs to be deployedgateway
- The CentraSiteRegistryObject
PEP instance in which the given service is deployedcallbacks
- The List
of IEventCallback
instancesCLLException
- If an error occurs while deploying the service in the given gatewayvoid deploy(java.util.Collection<Service> services, CentraSiteRegistryObject gateway, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
services
- the collection of Service
instances that need to be deployedgateway
- The gateway instance to which the given services are to be deployedcallbacks
- The List
of IEventCallback
instancesCLLException
- If an error occurs while deploying the services to the gatewayvoid deploy(DeploymentData deploymentData) throws CLLException
deploymentData
- CLLException
void undeploy(Service service, CentraSiteRegistryObject gateway, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
service
- the Service
instance that needs to be undeployedgateway
- the CentraSiteRegistryObject
PEP instances in which the given service is undeployedcallbacks
- The List
of IEventCallback
instancesCLLException
- If an error occurs in undeploying the given service from the gatewayvoid undeploy(java.util.Collection<Service> services, CentraSiteRegistryObject gateway, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
services
- the Service
instance that needs to be undeployedgateway
- the CentraSiteRegistryObject
PEP instances in which the given service is undeployedcallbacks
- The List
of IEventCallback
instancesCLLException
- If an error occurs in undeploying the given service from the gatewayvoid grantAccessToEveryOne(Service serviceToBeDeployed) throws CLLException
serviceToBeDeployed
- asset which is published successfully.CLLException
- In case of a failure to grant access to every one.void revokeConsumability(Service serviceToBeUnDeployed) throws CLLException
serviceToBeUnDeployed
- asset which is unpublished successfully.CLLException
- In case of a failure to revoke the consumabilityvoid deployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
aliasesKey
- Collection
of Runtime aliases RegistryObject
that needs to be deployedcallbacks
- the List
of IEventCallback
instancesCLLException
- If an error occurs while deploying the Runtime aliases to the gatewaysvoid undeployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
aliasesKey
- Collection
of Runtime aliases RegistryObject
that needs to be undeployedcallbacks
- the List
of IEventCallback
instancesCLLException
- If an error occurs while undeploying the Runtime aliases from the gatewaysvoid undeployRuntimeAliases(java.util.List<javax.xml.registry.infomodel.RegistryObject> aliasesKey, Gateway gateway, java.util.List<com.centrasite.jaxr.importexport.IEventCallback> callbacks) throws CLLException
aliasesKey
- Collection
of Runtime aliases RegistryObject
that needs to be undeployedgateway
- Gateway
from which the Runtime aliases to be undeployedcallbacks
- the List
of IEventCallback
instancesCLLException
- If an error occurs while undeploying the Runtime aliases from the gatewaysboolean isApiPublishedToAtleastOnePortal(CentraSiteObject centraSiteObject) throws CLLException
centraSiteObject
- CentraSiteObject
CLLException
- if an error occurs while checking api portal instancesboolean isServiceDeployedToAtleastOneMediator(CentraSiteRegistryObject csro) throws CLLException
csro
- CentraSiteRegistryObject
CLLException
- if an error occurs while checking gateway instancesboolean isServiceDeployedToApiGateway(CentraSiteRegistryObject csro) throws CLLException
csro
- CentraSiteRegistryObject
CLLException
- if an error occurs while checking gateway instancesRestServiceStack getRestServiceStack() throws CLLException
CLLException
boolean isSuppressDeploymentPermission() throws CLLException
CLLException
DeploymentSuppressInfo getSuppressDeploymentPermission() throws CLLException
CLLException
DeploymentConfig getDeploymentConfig() throws CLLException
CLLException