Enum PublicationStatus

    • Method Detail

      • values

        public static PublicationStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PublicationStatus c : PublicationStatus.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PublicationStatus valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getPublicationStatus

        public static PublicationStatus getPublicationStatus​(PublicationStatusEnabled object,
                                                             PublicationStatusEnabled current)
        Returns the publication status describing the current state of this object. This is a combined action of the public state and publication/expiration date, with that of all other versions of this object's parent, scoped within this version's language where relevant.
        object - The target version object to return it's status of.
        current - The current version. This must be a version (or null if there is no current version) that belongs to the same master object as the given target version object.
        the publication status of this publication status enabled object.