Package org.opencms.ade.publish
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 Summary
Modifier and TypeMethodDescriptiongetProjectBean
(CmsObject cms, Map<String, String> params) Gets the project bean.Gets the project id.getRelatedResourceProvider
(CmsObject cmsObject, CmsPublishOptions options) Returns an object that can be queried for 'related' resources specific to this virtual project.Gets the resources of the virtual project.boolean
Returns true if in this virtual project, resource groups should be able to be automatically selected by the GUI.
-
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 useparams
- the publish parameters- Returns:
- the project bean
-
getProjectId
Gets the project id.- Returns:
- the project id
-
getResources
List<CmsResource> getResources(CmsObject cms, Map<String, String> params, String workflowId) throws CmsExceptionGets the resources of the virtual project.- Parameters:
cms
- the CMS context to useparams
- the publish parametersworkflowId
- 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
-