info.magnolia.module.admininterface.commands
Class ExtractCommentCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.module.admininterface.commands.BaseRepositoryCommand
info.magnolia.module.admininterface.commands.ExtractCommentCommand
- All Implemented Interfaces:
- org.apache.commons.chain.Command
public class ExtractCommentCommand
- extends BaseRepositoryCommand
Extracts comment from the resource and put it in the context. Regular java regex pattern is used
for extraction. Using commentTemplate it is possible to format extracted comment info further.
Fields inherited from interface org.apache.commons.chain.Command |
CONTINUE_PROCESSING, PROCESSING_COMPLETE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtractCommentCommand
public ExtractCommentCommand()
execute
public boolean execute(Context context)
throws Exception
- Specified by:
execute
in class MgnlCommand
- Throws:
Exception
setPattern
public void setPattern(String pattern)
getCommentTemplate
public String getCommentTemplate()
setCommentTemplate
public void setCommentTemplate(String commentTemplate)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.