Class PublicationSettings

    • Constructor Detail

      • PublicationSettings

        public PublicationSettings()
    • Method Detail

      • getChooserIcon

        protected java.lang.String getChooserIcon()
        Description copied from class: AbstractChooserSettings
        Property key whose value corresponds to the icon used for the chooser button.

        Example:
        If we declare the following icon property:

         icon.chooser-publication: glyph: icomoon-file-text2
         
        The method return chooser-publication
        Overrides:
        getChooserIcon in class AbstractChooserSettings<PublicationSettings>
        Returns:
        Property key representing the chooser button icon
      • superType

        public PublicationSettings superType​(java.lang.Class<?> clazz)
        Specify the super type to filter the Publication.
        Parameters:
        clazz - Class of super type
        Returns:
        a reference to this object - used to chain calls
      • superType

        public PublicationSettings superType​(java.lang.String className)
        Specify the super type to filter the Publications.
        Parameters:
        className - Class name of super type
        Returns:
        a reference to this object - used to chain calls
      • pstatus

        public PublicationSettings pstatus​(int pstatus)
        Specify the pstatus to filter the Publications.
        Parameters:
        pstatus - pstatus
        Returns:
        a reference to this object - used to chain calls
      • category

        public PublicationSettings category​(java.lang.String[] categoryIds)
        Specify the categories to filter the Publications.
        Parameters:
        categoryIds - IDs of Category objects
        Returns:
        a reference to this object - used to chain calls
      • category

        public PublicationSettings category​(Category[] categories)
        Specify the categories to filter the Publications.
        Parameters:
        categories - Array of Category objects
        Returns:
        a reference to this object - used to chain calls
      • category

        public PublicationSettings category​(java.util.Collection<Category> categories)
        Specify the categories to filter the Publications.
        Parameters:
        categories - Collection of Category objects
        Returns:
        a reference to this object - used to chain calls
      • category

        public PublicationSettings category​(Category category,
                                            Category... otherCategories)
        Specify the categories to filter the Publications.
        Parameters:
        category - the first Category object
        otherCategories - the other Category objects
        Returns:
        a reference to this object - used to chain calls
      • category

        public PublicationSettings category​(java.lang.String categoryId,
                                            java.lang.String... otherCategoryIds)
        Specify the categories to filter the Publications.
        Parameters:
        categoryId - The first ID of Category object
        otherCategoryIds - The other IDs of Category objects
        Returns:
      • noWorkspaceFilter

        public PublicationSettings noWorkspaceFilter()
        Specify whether we don't filter on Workspace.
        Returns:
        a reference to this object - used to chain calls
      • documentKinds

        public PublicationSettings documentKinds​(java.lang.String[] documentKinds)
        Specify the document kinds to filter the Publications.
        Parameters:
        documentKinds - Array of document kinds
        Returns:
        a reference to this object - used to chain calls
      • documentKinds

        public PublicationSettings documentKinds​(java.util.Collection<java.lang.String> documentKinds)
        Specify the document kinds to filter the Publications.
        Parameters:
        documentKinds - Collection of document kinds
        Returns:
        a reference to this object - used to chain calls
      • documentKinds

        public PublicationSettings documentKinds​(java.lang.String documentKinds,
                                                 java.lang.String... otherDocumentKinds)
      • getDocumentKindsList

        public static java.util.List<java.lang.String> getDocumentKindsList()
        Returns the list of document kinds defined in the properties.
        Returns:
        List available document kinds
        See Also:
        "jcms.prop: properties with prefix 'file-document.kinds-group.'"
      • exactType

        public PublicationSettings exactType()
        Specify whether it only retrieves Publications of the type defined by the superType, and not child classes.
        Returns:
        a reference to this object - used to chain calls
        See Also:
        superType(Class), superType(String)
      • disableFileInput

        public PublicationSettings disableFileInput()
        Specify whether the file input is disabled for Publications of type FileDocument.
        Returns:
        a reference to this object - used to chain calls
      • enableFileInput

        public PublicationSettings enableFileInput()
        Specify whether the file input is enabled for Publications of type FileDocument.
        Returns:
        a reference to this object - used to chain calls
      • disableDropdown

        public PublicationSettings disableDropdown()
        Specify whether the dropdown menu is disabled.
        Returns:
        a reference to this object - used to chain calls