Package com.adobe.cq.launches.api
Interface Launch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int
compareTo(Launch launch)
Compares the current launch with another one for sorting.boolean
containsResource(Resource productionResource)
Returnstrue
if the launch contains the provided production resourcejava.util.Calendar
getCreated()
This method returns the date and time this launch was createdjava.lang.String
getCreatedBy()
Returns the id of the user that added this launchjava.util.Calendar
getLastPromoted()
Returns the date the launch was last promotedjava.lang.String
getLastPromotedBy()
Returns the id of the user that effected the last promotion of this launchLaunchPromotionScope
getLaunchAutoPromotionScope()
Returns theLaunchPromotionScope
of the launchjava.util.List<LaunchSource>
getLaunchSources()
Returns the list of Launch Sources (in the launch tree)java.util.Calendar
getLiveDate()
Returns the targeted live date for the launchjava.util.Calendar
getModified()
Returns the date the definition of this launch was last modifiedjava.lang.String
getModifiedBy()
Returns the id of the user that effected the last modification of this launchResource
getResource()
Returns the launch resourceResource
getRootResource()
Returns the launch root resource (in the launch tree)Resource
getSourceRootResource()
Deprecated.java.lang.String
getTitle()
Returns the title of the Launchboolean
isDeep()
Deprecated.boolean
isLiveCopy()
Returnstrue
if the currentLaunch
is a live copyboolean
isProductionReady()
Returnstrue
if the currentLaunch
is production ready If a target live date is set and this flag is set totrue
, the launch will automatically be promoted and activated at this date
-
-
-
Method Detail
-
getResource
Resource getResource()
Returns the launch resource- Returns:
- Launch resource
-
getRootResource
Resource getRootResource()
Returns the launch root resource (in the launch tree)- Returns:
- Launch root resource
-
getLaunchSources
java.util.List<LaunchSource> getLaunchSources()
Returns the list of Launch Sources (in the launch tree)- Returns:
- LaunchSource List
-
getSourceRootResource
@Deprecated Resource getSourceRootResource()
Deprecated.Returns the root resource the launch belongs to (in the production tree)- Returns:
- Launch source root resource
-
getTitle
java.lang.String getTitle()
Returns the title of the Launch- Returns:
- Launch title
-
getLiveDate
java.util.Calendar getLiveDate()
Returns the targeted live date for the launch- Returns:
- Launch live date
-
isProductionReady
boolean isProductionReady()
Returnstrue
if the currentLaunch
is production ready If a target live date is set and this flag is set totrue
, the launch will automatically be promoted and activated at this date- Returns:
true
if the launch is production ready
-
isLiveCopy
boolean isLiveCopy()
Returnstrue
if the currentLaunch
is a live copy- Returns:
true
if the launch is a live copy
-
isDeep
@Deprecated boolean isDeep()
Deprecated.Returnstrue
if the currentLaunch
has been created with inclusion of sub pages- Returns:
true
if the launch is deep
-
getCreated
java.util.Calendar getCreated()
This method returns the date and time this launch was created- Returns:
- A
Calendar
representing the creation date and time
-
getCreatedBy
java.lang.String getCreatedBy()
Returns the id of the user that added this launch- Returns:
- The identifier of the user who added this launch
-
getModified
java.util.Calendar getModified()
Returns the date the definition of this launch was last modified- Returns:
- The date of last modification or the value of
getCreated()
if never modified.
-
getModifiedBy
java.lang.String getModifiedBy()
Returns the id of the user that effected the last modification of this launch- Returns:
- The identifier of the user who last modified this launch or the
value of
getCreatedBy()
if never modified
-
getLastPromoted
java.util.Calendar getLastPromoted()
Returns the date the launch was last promoted- Returns:
- The date of last promotion or
null
if never promoted.
-
getLastPromotedBy
java.lang.String getLastPromotedBy()
Returns the id of the user that effected the last promotion of this launch- Returns:
- The identifier of the user who last promoted this launch or
null
if never promoted
-
containsResource
boolean containsResource(Resource productionResource)
Returnstrue
if the launch contains the provided production resource- Parameters:
productionResource
- Production resource- Returns:
true
if the launch contains the provided production resource
-
compareTo
int compareTo(Launch launch)
Compares the current launch with another one for sorting. The current launch is supposed to be listed before the provided launch:- if the latest is null
- if its live date comparison returns a negative value
- if its creation date comparison returns a negative value
- if its path comparison returns a negative value
- Specified by:
compareTo
in interfacejava.lang.Comparable<Launch>
- Parameters:
launch
- The launch which has to be compared with the current one- Returns:
- a negative integer, zero, or a positive integer as this launch is less than, equal to, or greater than the specified one.
- See Also:
Comparable.compareTo(Object)
-
getLaunchAutoPromotionScope
LaunchPromotionScope getLaunchAutoPromotionScope()
Returns theLaunchPromotionScope
of the launch- Returns:
LaunchPromotionScope
of the launch if exists. Otherwise null is returned.
-
-