public class WcmCommandHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CHARSET_PROPERTY |
static String |
CMD_PROPERTY |
static String |
PARENT_PATH_PROPERTY |
static String |
PATH_PROPERTY |
static String |
TEMPLATE_PROPERTY |
static String |
TITLE_PROPERTY |
| Constructor and Description |
|---|
WcmCommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
activatePage(String assetPath)
Activates provided asset
|
void |
createPage(String parentPath,
String title,
String template)
Create page in provided location
|
void |
deactivatePage(String assetPath)
Deactivates provided asset
|
void |
deletePage(String path)
Delete page from provided location
|
void |
triggerAction(Map<String,String> postProperties,
String commandUrl,
String successMessage)
Allows to trigger any Wcm action using provided Map as POST properties
|
public static final String PATH_PROPERTY
public static final String CMD_PROPERTY
public static final String CHARSET_PROPERTY
public static final String PARENT_PATH_PROPERTY
public static final String TITLE_PROPERTY
public static final String TEMPLATE_PROPERTY
public void activatePage(String assetPath) throws IOException
assetPath - path to assetIOException - if response doesn't contain desired messagepublic void deactivatePage(String assetPath) throws IOException
assetPath - path to assetIOException - if response doesn't contain desired messagepublic void createPage(String parentPath, String title, String template) throws IOException
parentPath - path to parent pagetitle - page titletemplate - page templateIOException - if response doesn't contain desired messagepublic void deletePage(String path) throws IOException
path - to pageIOException - if response doesn't contain desired messagepublic void triggerAction(Map<String,String> postProperties, String commandUrl, String successMessage) throws IOException
postProperties - properties map to sendsuccessMessage - expected success messagecommandUrl - commandIOException - if response doesn't contain desired messageCopyright © 2016–2018 Cognifide Ltd.. All rights reserved.