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,
String cloneTitle,
Calendar liveDate,
boolean isLiveCopy)
Clone a launch
|
Launch |
createLaunch(LaunchManager.CreateOptions options)
Create a new launch.
|
Launch |
createLaunch(Resource srcResource,
String title,
Calendar liveDate,
boolean isDeep,
boolean isLiveCopy)
Create a new launch
|
void |
deleteLaunch(Launch launch)
Delete a launch
|
Launch |
getLaunch(String absPath)
Get a launch from its path
|
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 ). |
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
|
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, String title, 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 getLaunch(String absPath)
absPath
- Launch absolute pathLaunch
object loaded from the path or
null
if the path does not resolve to a launch resource.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, String cloneTitle, 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
RangeIterator 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
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"