Package org.opencms.ade.publish
Class CmsRealProjectVirtualWrapper
java.lang.Object
org.opencms.ade.publish.CmsRealProjectVirtualWrapper
- All Implemented Interfaces:
I_CmsVirtualProject
- Direct Known Subclasses:
CmsExtendedRealProjectWrapper
Wrapper to use real OpenCms projects through the I_CmsVirtualProject interface.
-
Constructor Summary
Constructors -
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.booleanReturns true if in this virtual project, resource groups should be able to be automatically selected by the GUI.
-
Constructor Details
-
CmsRealProjectVirtualWrapper
Creates a new wrapper instance.- Parameters:
id- the project id
-
-
Method Details
-
getProjectBean
Description copied from interface:I_CmsVirtualProjectGets the project bean.Should return null if the virtual project is not available or applicable for the given parameters.
- Specified by:
getProjectBeanin interfaceI_CmsVirtualProject- Parameters:
cms- the CMS context to useparams- the publish parameters- Returns:
- the project bean
- See Also:
-
getProjectId
Description copied from interface:I_CmsVirtualProjectGets the project id.- Specified by:
getProjectIdin interfaceI_CmsVirtualProject- Returns:
- the project id
- See Also:
-
getResources
public List<CmsResource> getResources(CmsObject cms, Map<String, String> params, String workflowId) throws CmsExceptionDescription copied from interface:I_CmsVirtualProjectGets the resources of the virtual project.- Specified by:
getResourcesin interfaceI_CmsVirtualProject- 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- See Also:
-
isAutoSelectable
Description copied from interface:I_CmsVirtualProjectReturns true if in this virtual project, resource groups should be able to be automatically selected by the GUI.- Specified by:
isAutoSelectablein interfaceI_CmsVirtualProject- Returns:
- true if resource groups should be auto-selectable
- See Also:
-