public class CmsDirectPublishProject extends java.lang.Object implements I_CmsVirtualProject
This virtual project gets the names of the resources to publish from the publish parameter map. If the 'add contents' mode is enabled (which is also determined from the publish parameters), the contents of folders are added to the list of publish resources. This virtual project is only available if any file names are passed via the
Modifier and Type | Field and Description |
---|---|
static CmsUUID |
ID
The ID of this virtual project.
|
Constructor and Description |
---|
CmsDirectPublishProject() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSubResources(CmsObject cms,
java.util.Set<CmsResource> resources)
Adds contents of folders to a list of resources.
|
CmsProjectBean |
getProjectBean(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String> params)
Gets the project bean.
|
CmsUUID |
getProjectId()
Gets the project id.
|
I_CmsPublishRelatedResourceProvider |
getRelatedResourceProvider(CmsObject cmsObject,
CmsPublishOptions options)
Returns an object that can be queried for 'related' resources specific to this virtual project.
|
java.util.List<CmsResource> |
getResources(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String workflowId)
Gets the resources of the virtual project.
|
boolean |
isAutoSelectable()
Returns true if in this virtual project, resource groups should be able to be automatically selected by the GUI.
|
protected boolean |
shouldIncludeContents(java.util.Map<java.lang.String,java.lang.String> params)
Returns true if the folder contents should be included.
|
public CmsDirectPublishProject()
public CmsProjectBean getProjectBean(CmsObject cms, java.util.Map<java.lang.String,java.lang.String> params)
I_CmsVirtualProject
Should return null if the virtual project is not available or applicable for the given parameters.
getProjectBean
in interface I_CmsVirtualProject
cms
- the CMS context to useparams
- the publish parametersI_CmsVirtualProject.getProjectBean(org.opencms.file.CmsObject, java.util.Map)
public CmsUUID getProjectId()
I_CmsVirtualProject
getProjectId
in interface I_CmsVirtualProject
I_CmsVirtualProject.getProjectId()
public I_CmsPublishRelatedResourceProvider getRelatedResourceProvider(CmsObject cmsObject, CmsPublishOptions options)
I_CmsVirtualProject
getRelatedResourceProvider
in interface I_CmsVirtualProject
cmsObject
- the current CMS contextoptions
- the publish optionsI_CmsVirtualProject.getRelatedResourceProvider(org.opencms.file.CmsObject, org.opencms.ade.publish.shared.CmsPublishOptions)
public java.util.List<CmsResource> getResources(CmsObject cms, java.util.Map<java.lang.String,java.lang.String> params, java.lang.String workflowId) throws CmsException
I_CmsVirtualProject
getResources
in interface I_CmsVirtualProject
cms
- the CMS context to useparams
- the publish parametersworkflowId
- the workflow idCmsException
- if something goes wrongI_CmsVirtualProject.getResources(org.opencms.file.CmsObject, java.util.Map, java.lang.String)
public boolean isAutoSelectable()
I_CmsVirtualProject
isAutoSelectable
in interface I_CmsVirtualProject
I_CmsVirtualProject.isAutoSelectable()
protected void addSubResources(CmsObject cms, java.util.Set<CmsResource> resources) throws CmsException
cms
- the CMS context to useresources
- the resource list to which to add the folder contentsCmsException
- if something goes wrongprotected boolean shouldIncludeContents(java.util.Map<java.lang.String,java.lang.String> params)
params
- the publish parameters