info.magnolia.module.admininterface.commands
Class ExtractCommentCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.module.admininterface.commands.BaseRepositoryCommand
          extended by 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.


Field Summary
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
ExtractCommentCommand()
           
 
Method Summary
 boolean execute(Context context)
           
 String getCommentTemplate()
           
 void setCommentTemplate(String commentTemplate)
           
 void setPattern(String pattern)
           
 
Methods inherited from class info.magnolia.module.admininterface.commands.BaseRepositoryCommand
getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractCommentCommand

public ExtractCommentCommand()
Method Detail

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-2013 Magnolia International Ltd.. All Rights Reserved.