Package com.adobe.cq.launches.api
Interface Launch
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intcompareTo(Launch launch)Compares the current launch with another one for sorting.booleancontainsResource(Resource productionResource)Returnstrueif the launch contains the provided production resourcejava.util.CalendargetCreated()This method returns the date and time this launch was createdjava.lang.StringgetCreatedBy()Returns the id of the user that added this launchjava.util.CalendargetLastPromoted()Returns the date the launch was last promotedjava.lang.StringgetLastPromotedBy()Returns the id of the user that effected the last promotion of this launchLaunchPromotionScopegetLaunchAutoPromotionScope()Returns theLaunchPromotionScopeof the launchjava.util.List<LaunchSource>getLaunchSources()Returns the list of Launch Sources (in the launch tree)java.util.CalendargetLiveDate()Returns the targeted live date for the launchjava.util.CalendargetModified()Returns the date the definition of this launch was last modifiedjava.lang.StringgetModifiedBy()Returns the id of the user that effected the last modification of this launchResourcegetResource()Returns the launch resourceResourcegetRootResource()Returns the launch root resource (in the launch tree)ResourcegetSourceRootResource()Deprecated.java.lang.StringgetTitle()Returns the title of the LaunchbooleanisDeep()Deprecated.booleanisLiveCopy()Returnstrueif the currentLaunchis a live copybooleanisProductionReady()Returnstrueif the currentLaunchis 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()
Returnstrueif the currentLaunchis 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:
trueif the launch is production ready
-
isLiveCopy
boolean isLiveCopy()
Returnstrueif the currentLaunchis a live copy- Returns:
trueif the launch is a live copy
-
isDeep
@Deprecated boolean isDeep()
Deprecated.Returnstrueif the currentLaunchhas been created with inclusion of sub pages- Returns:
trueif the launch is deep
-
getCreated
java.util.Calendar getCreated()
This method returns the date and time this launch was created- Returns:
- A
Calendarrepresenting 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
nullif 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
nullif never promoted
-
containsResource
boolean containsResource(Resource productionResource)
Returnstrueif the launch contains the provided production resource- Parameters:
productionResource- Production resource- Returns:
trueif 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:
compareToin 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 theLaunchPromotionScopeof the launch- Returns:
LaunchPromotionScopeof the launch if exists. Otherwise null is returned.
-
-