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
构造器和说明 |
---|
CmsDirectPublishProject() |
限定符和类型 | 方法和说明 |
---|---|
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.
|
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 static final CmsUUID ID
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
在接口中 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
在接口中 I_CmsVirtualProject
I_CmsVirtualProject.getProjectId()
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
在接口中 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
在接口中 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