Package org.opencms.file.collectors
Interface I_CmsCollectorPostCreateHandler
-
- All Known Implementing Classes:
CmsAddCategoriesPostCreateHandler
,CmsDefaultPostCreateHandler
public interface I_CmsCollectorPostCreateHandler
Interface which can be used to add custom code to execute after a user has created a new content via a collector list.Post create handlers can also be specified when using the tags
CmsJspTagDisplay
orCmsJspTagEdit
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
onCreate(CmsObject cms, CmsResource createdResource, boolean copyMode)
This is called after the new content has been created (and possibly already been filled with content).default void
onCreate(CmsObject cms, CmsResource createdResource, boolean copyMode, java.lang.String config)
This is called after the new content has been created (and possibly already been filled with content).static CmsPair<java.lang.String,java.lang.String>
splitClassAndConfig(java.lang.String handlerConfig)
Splits the string that configures the handler into the handler class and the configuration part.
-
-
-
Method Detail
-
splitClassAndConfig
static CmsPair<java.lang.String,java.lang.String> splitClassAndConfig(java.lang.String handlerConfig)
Splits the string that configures the handler into the handler class and the configuration part.- Parameters:
handlerConfig
- string that configures the handler- Returns:
- pair with the handler class and the configuration
-
onCreate
void onCreate(CmsObject cms, CmsResource createdResource, boolean copyMode)
This is called after the new content has been created (and possibly already been filled with content).- Parameters:
cms
- the current user's CMS contextcreatedResource
- the resource which has been createdcopyMode
- true if the user chose one of the elements in the collector list as a model
-
onCreate
default void onCreate(CmsObject cms, CmsResource createdResource, boolean copyMode, java.lang.String config)
This is called after the new content has been created (and possibly already been filled with content).- Parameters:
cms
- the current user's CMS contextcreatedResource
- the resource which has been createdcopyMode
- true if the user chose one of the elements in the collector list as a modelconfig
- an optional configuration string that can be handled specific by each implementation
-
-