Interface I_CmsVirtualProject

All Known Implementing Classes:
CmsCurrentPageProject, CmsDirectPublishProject, CmsExtendedRealProjectWrapper, CmsMyChangesProject, CmsRealProjectVirtualWrapper

public interface I_CmsVirtualProject
This interface can be used to implement a new option in the publish dialog's project selector. Instead of reading the resources from a real project, the resource lists will be generated by the classes which implement this interface.
  • Method Details

    • getProjectBean

      Gets the project bean.

      Should return null if the virtual project is not available or applicable for the given parameters.

      Parameters:
      cms - the CMS context to use
      params - the publish parameters
      Returns:
      the project bean
    • getProjectId

      Gets the project id.

      Returns:
      the project id
    • getRelatedResourceProvider

      Returns an object that can be queried for 'related' resources specific to this virtual project.

      Parameters:
      cmsObject - the current CMS context
      options - the publish options
      Returns:
      the related resource provider
    • getResources

      List<CmsResource> getResources(CmsObject cms, Map<String,String> params, String workflowId) throws CmsException
      Gets the resources of the virtual project.

      Parameters:
      cms - the CMS context to use
      params - the publish parameters
      workflowId - the workflow id
      Returns:
      the generated list of resources
      Throws:
      CmsException - if something goes wrong
    • isAutoSelectable

      boolean isAutoSelectable()
      Returns true if in this virtual project, resource groups should be able to be automatically selected by the GUI.

      Returns:
      true if resource groups should be auto-selectable