Enum MacroParameterType

    • Enum Constant Detail

      • STRING

        public static final MacroParameterType STRING
        A raw string, or some other type not handled by confluence.
      • USERNAME

        public static final MacroParameterType USERNAME
        A user. Stored as a username string. Converted to a user object when returned.
      • ENUM

        public static final MacroParameterType ENUM
        A string, chosen from a limited set of values.
      • RELATIVE_DATE

        public static final MacroParameterType RELATIVE_DATE
        A date range, specified by one or two time offsets (e.g. 1d or 1d,2d).
      • PERCENTAGE

        public static final MacroParameterType PERCENTAGE
        A number, including a percent sign. Stored as a string.
      • CONFLUENCE_CONTENT

        public static final MacroParameterType CONFLUENCE_CONTENT
        A content entity title (optionally qualified by space key and/or publication date).
      • COLOR

        public static final MacroParameterType COLOR
        A colour in CSS format. Stored as a string.
      • ATTACHMENT

        public static final MacroParameterType ATTACHMENT
        An attachment name (optionally qualified by container content title, space key and/or publication date). TODO When does this ever get qualified?
      • FULL_ATTACHMENT

        public static final MacroParameterType FULL_ATTACHMENT
        An attachment name (param with that type will be stored in storage format as below)

        When convert from storage format above to macro definition. This param will be converted to 4 params(attachment name, page,space,date)

      • DATE

        public static final MacroParameterType DATE
        A blog publication date (optionally qualified by space key). TODO When does this ever get qualified?
      • CQL

        public static final MacroParameterType CQL
        A CQL expression, generally for macros that perform content searches.
    • Method Detail

      • values

        public static MacroParameterType[] 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 (MacroParameterType c : MacroParameterType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MacroParameterType 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getName

        public String getName()