Interface Launch

  • All Superinterfaces:
    java.lang.Comparable<Launch>

    public interface Launch
    extends java.lang.Comparable<Launch>
    Represents a Launch (Future versions of resources).
    • 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()
        Returns true if the current Launch is production ready If a target live date is set and this flag is set to true, the launch will automatically be promoted and activated at this date
        Returns:
        true if the launch is production ready
      • isLiveCopy

        boolean isLiveCopy()
        Returns true if the current Launch is a live copy
        Returns:
        true if the launch is a live copy
      • isDeep

        @Deprecated
        boolean isDeep()
        Deprecated.
        Returns true if the current Launch 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)
        Returns true 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 interface java.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 the LaunchPromotionScope of the launch
        Returns:
        LaunchPromotionScope of the launch if exists. Otherwise null is returned.