public interface PublishAction extends CSOAction
Modifier and Type | Method and Description |
---|---|
java.util.List<CentraSiteRegistryObject> |
getAliases()
Return the existing aliases for the selected service.
|
java.util.Map<CentraSiteRegistryObject,java.util.List<Target>> |
getAliasListForUnDeploy()
Gets the aliases which have to be unpublished from the targets.
|
java.util.List<Target> |
getApplicableTargets()
Fetches all the targets that are applicable.
|
java.util.Map<Target,java.lang.String> |
getFailedDeploymentMessages()
Returns the failed deployment status as key-value pair of (target, status message).
|
int |
getProgress()
Returns number of deployment requests made which highlight the deployment progress.
|
java.util.List<CentraSiteRegistryObject> |
getSelectedAliases()
Return the selected alias(es) for the native service.
|
java.util.Map<CentraSiteRegistryObject,java.util.List<Target>> |
getUnPublishAliasList()
Gets the aliases which have to be unpublished from the targets.
|
boolean |
isBaseType()
Checks if the type of the asset being published is a base type or not.
|
void |
setAliasListForUnDeploy(java.util.Map<CentraSiteRegistryObject,java.util.List<Target>> unpublishAliasList)
Sets the alias list for undeploying.
|
void |
setSelectedAliases(java.util.List<CentraSiteRegistryObject> aliases)
Sets the aliases for the service.
|
void |
setTargets(java.util.Collection<Target> targetsForDeployment)
Sets the collection of targets for which the selected asset will be deployed.
|
void |
setVisibleToEveryOne(boolean visibility)
Controls the visibility of the API being published.
|
cancel, executeNextStep, executePreviousStep, finishAllSteps, getCurrentState, getGroup, getIconURL, getId, getName, getSkippedObjectsWithReason, isAllowed, isApplicable, setObjects
void setVisibleToEveryOne(boolean visibility) throws CLLException
visibility
- - true/falseCLLException
- If an error occurs while setting the propertyjava.util.List<Target> getApplicableTargets() throws CLLException
List
of active and inactive Target
s sorted by nameCLLException
- If an error occurs while fetching the applicable targetsvoid setTargets(java.util.Collection<Target> targetsForDeployment)
targetsForDeployment
- - Collection
of targets. Ideally not null/empty.java.util.Map<Target,java.lang.String> getFailedDeploymentMessages() throws CLLException
Map
having the target ids as keys and the failure messages as values.CLLException
- If an error occurs while processing the deployment response messagesint getProgress() throws CLLException
CLLException
- If an error occurred while trying to get the deployment progressjava.util.List<CentraSiteRegistryObject> getAliases() throws CLLException
List
of CentraSiteRegistryObject
sCLLException
- In case of a failure to get the aliasesvoid setSelectedAliases(java.util.List<CentraSiteRegistryObject> aliases)
aliases
- The List
of CentraSiteRegistryObject
aliases to setjava.util.List<CentraSiteRegistryObject> getSelectedAliases()
CentraSiteRegistryObject
List
boolean isBaseType()
java.util.Map<CentraSiteRegistryObject,java.util.List<Target>> getUnPublishAliasList() throws CLLException
Map
having the alias CentraSiteRegistryObject
s as keys and
a List
of Target
s where the alias is published as values.CLLException
- If an error occurs while getting the listjava.util.Map<CentraSiteRegistryObject,java.util.List<Target>> getAliasListForUnDeploy()
Map
having the alias CentraSiteRegistryObject
s as keys and
a List
of Target
s where the alias is published as values.void setAliasListForUnDeploy(java.util.Map<CentraSiteRegistryObject,java.util.List<Target>> unpublishAliasList)
unpublishAliasList
- Map
having the alias CentraSiteRegistryObject
s as keys and
a List
of Target
s where the alias is published as values