public interface LaunchManager
LaunchManager
provides methods to deal with launches.Modifier and Type | Interface and Description |
---|---|
static class |
LaunchManager.CreateOptions
Options object used for
createLaunch(CreateOptions) . |
Modifier and Type | Method and Description |
---|---|
Launch |
cloneLaunch(Launch launch,
java.lang.String cloneTitle,
java.util.Calendar liveDate,
boolean isLiveCopy)
Clone a launch
|
Launch |
createLaunch(LaunchManager.CreateOptions options)
Create a new launch.
|
Launch |
createLaunch(Resource srcResource,
java.lang.String title,
java.util.Calendar liveDate,
boolean isDeep,
boolean isLiveCopy)
Create a new launch
|
void |
deleteLaunch(Launch launch)
Delete a launch
|
Launch |
getLaunch(java.lang.String absPath)
Get a launch from its path
|
java.util.Collection<Launch> |
getLaunches(Resource resource)
Get every launches the provided resource is contained in
|
RangeIterator |
getResourcesStatus(Launch launch,
Resource startResource,
boolean deep)
Returns a collection of LaunchResourceStatuses comparing resources in a
launch to their production version.
|
RangeIterator |
getResourcesStatus(Launch launch,
Resource startResource,
boolean deep,
Launch target)
Returns a collection of LaunchResourceStatuses comparing resources in a launch to the specified
target launch or the production version (if
target is null ). |
RangeIterator |
getResourcesStatus(Launch launch,
Resource startResource,
LaunchPromotionScope launchPromotionScope,
Launch target)
Returns a collection of LaunchResourceStatuses comparing resources in a launch to the specified
target launch or the production version (if
target is null ). |
boolean |
isInLaunch(Resource resource)
Checks if the provided resource is contained within one or more launches
|
void |
promoteLaunch(Launch launch,
LaunchPromotionParameters params)
Promote a launch to become the production version
|
Launch |
updateLaunchSources(Launch launch,
java.util.List<LaunchSource> newLaunchSourceList)
Update launch source list.
|
boolean isInLaunch(Resource resource)
resource
- The resource to checktrue
if the provided resource is contained within one or more launchesLaunch createLaunch(LaunchManager.CreateOptions options) throws LaunchException
options
- the options for creating the launch. resource
and title
are required.LaunchException
- if an error occurs while creating the launchLaunch createLaunch(Resource srcResource, java.lang.String title, java.util.Calendar liveDate, boolean isDeep, boolean isLiveCopy) throws LaunchException
srcResource
- Source resourcetitle
- The title of the new launchliveDate
- The target live date of the launchisDeep
- If true
, child resources of provided
source resource will be included in the launchisLiveCopy
- If true
, the launch will
be a live copy of the current production versionLaunchException
- if an error occurs while creating the launchLaunch updateLaunchSources(Launch launch, java.util.List<LaunchSource> newLaunchSourceList) throws LaunchException
launch
- The launch to updatenewLaunchSourceList
- updated LaunchSource listLaunchException
- if an error occurs while updating the launchLaunch getLaunch(java.lang.String absPath)
absPath
- Launch absolute pathLaunch
object loaded from the path or
null
if the path does not resolve to a launch resource.java.util.Collection<Launch> getLaunches(Resource resource) throws LaunchException
resource
- The resourceLaunchException
- if an error occurs while getting the launchesvoid promoteLaunch(Launch launch, LaunchPromotionParameters params) throws LaunchException
launch
- The launch to promoteparams
- Launch promotion parametersLaunchException
- if an error occurs while promoting the launchvoid deleteLaunch(Launch launch) throws LaunchException
launch
- The launch to deleteLaunchException
- if an error occurs while deleting the launchLaunch cloneLaunch(Launch launch, java.lang.String cloneTitle, java.util.Calendar liveDate, boolean isLiveCopy) throws LaunchException
launch
- The launch to clonecloneTitle
- Title to give to the cloneliveDate
- The target live date of the cloned launchisLiveCopy
- If true
, the cloned launch will
be a live copy of the current production versionLaunchException
- if an error occurs while cloning the launchRangeIterator getResourcesStatus(Launch launch, Resource startResource, boolean deep) throws LaunchException
Launch root resource
.launch
- The launch to comparestartResource
- Resource
resource to start comparison fromdeep
- If true
the child resources will be also analyzedLaunchException
- if an error occurs while getting resource statusRangeIterator getResourcesStatus(Launch launch, Resource startResource, boolean deep, Launch target) throws LaunchException
target
is null
). The given start
resource does not need to be a Launch root resource
.launch
- The launch to comparestartResource
- Resource
resource to start comparison fromdeep
- If true
the child resources will be also analyzedtarget
- The target launch to compare to or null
to compare to productionLaunchException
- if an error occurs while getting resource statusRangeIterator getResourcesStatus(Launch launch, Resource startResource, LaunchPromotionScope launchPromotionScope, Launch target) throws LaunchException
target
is null
). The given start
resource does not need to be a Launch root resource
.launch
- The launch to comparestartResource
- Resource
resource to start comparison fromlaunchPromotionScope
- based on promotion scope the child resources will be also analyzedtarget
- The target launch to compare to or null
to compare to productionLaunchException
- if an error occurs while getting resource status"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"