Java Doc for AbstractCmd.java in  » Content-Management-System » harmonise » org » openharmonise » rm » commands » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Content Management System » harmonise » org.openharmonise.rm.commands 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openharmonise.rm.commands.AbstractCmd

All known Subclasses:   org.openharmonise.rm.commands.CmdGetPendingVersions,  org.openharmonise.rm.commands.CmdChangeStatus,  org.openharmonise.rm.commands.CmdClearCache,  org.openharmonise.rm.commands.CmdGetHistoricalVersions,  org.openharmonise.rm.commands.CmdMove,  org.openharmonise.rm.commands.CmdReactivate,  org.openharmonise.rm.commands.CmdArchive,  org.openharmonise.rm.commands.CmdGetLiveVersion,  org.openharmonise.rm.commands.CmdGenerateReport,  org.openharmonise.rm.commands.CmdUnlock,  org.openharmonise.rm.commands.CmdLock,  org.openharmonise.rm.commands.CmdEmail,  org.openharmonise.rm.commands.CmdSave,
AbstractCmd
abstract public class AbstractCmd (Code)
An abstract class which provides the base functionality and sets the main interface for a class which can execute an operation with in the Harmonise framework, possibly on a specified 'command object'. Role based security and event logging are implemented in Harmonise through the command objects.
author:
   Michael Bell
version:
   $Revision: 1.4 $


Field Summary
final public static  StringPARAM_OUT_TEXT
    
final public static  StringPARAM_TEMPLATE_ID
    
final public static  StringTAG_COMMAND
    
final public static  StringTAG_COMMAND_PARAM
    
protected  Mapm_cmd_params
    
protected  Objectm_commandObj
    

Constructor Summary
public  AbstractCmd()
    

Method Summary
protected  voidaddResultContext(Object result, Context context)
    
abstract public  Objectexecute(Context context)
     Excutes command, on command object given if appropriate, and will return the result of the execution.
public  ObjectgetCommandObject(Context context)
     Returns the object which this command will be executed on, if appropriate.
public  AbstractDataStoreInterfacegetDataStoreInteface()
     Returns the data store interface associated to this command.
public  UsergetExecutingUser()
     Returns the user executing the commands from the State, if a State has been given to this command.
abstract public  StringgetName()
    
public  StringgetParameter(String parameter_name)
    
public  ListgetParameters(String parameter_name)
     Returns the list of values for the parameter of the specified parameter name .
public  StategetState()
     Returns the State associated to this command.
public  booleanisAvailable(Context context)
     Returns true if this command is available to the user executing the command.
public  booleanisAvailable(User usr, AbstractEditableObject obj)
    
public  booleanisAvailable(User usr, Class objClass)
     Returns true if this command is available to the specified user for the specified Class.
abstract public  booleanisValidCommandObject(Object obj)
     Returns true if this command is valid for the given object.
protected  voidlogCommand(Context context)
     Logs the command with the Harmonise logger.
public  voidsetCommandObject(Object obj)
    
public  voidsetDataStoreInteface(AbstractDataStoreInterface dsi)
     Sets up an interface to the DB for this command.
public  voidsetParameters(Map cmd_params)
     Sets the parameters for this command.
public  voidsetState(State state)
     Adds a State object to this command, providing a context for the command to execute in.

Field Detail
PARAM_OUT_TEXT
final public static String PARAM_OUT_TEXT(Code)
Output text parameter name



PARAM_TEMPLATE_ID
final public static String PARAM_TEMPLATE_ID(Code)
Template id parameter name



TAG_COMMAND
final public static String TAG_COMMAND(Code)
Tag name for the element which represents a command



TAG_COMMAND_PARAM
final public static String TAG_COMMAND_PARAM(Code)
Tag name for the 'Parameter' element, used to specify parameters to the command



m_cmd_params
protected Map m_cmd_params(Code)
Map of paramter names to values for this command



m_commandObj
protected Object m_commandObj(Code)
Object this command shall execute upon




Constructor Detail
AbstractCmd
public AbstractCmd()(Code)
Creates new instance of a command object




Method Detail
addResultContext
protected void addResultContext(Object result, Context context)(Code)
Adds the result to the context if the 'result' parameter exists to give the result a name in the context
Parameters:
  result -
Parameters:
  context -



execute
abstract public Object execute(Context context) throws CommandException(Code)
Excutes command, on command object given if appropriate, and will return the result of the execution. If there is no result from the execution of the command it will return a null.
Parameters:
  context - the result of the execution of the command
throws:
  CommandException - if any errors occur



getCommandObject
public Object getCommandObject(Context context)(Code)
Returns the object which this command will be executed on, if appropriate.
Parameters:
  context - the object which this command will be executed on, if appropriate.



getDataStoreInteface
public AbstractDataStoreInterface getDataStoreInteface()(Code)
Returns the data store interface associated to this command. the data store interface associated to this command.



getExecutingUser
public User getExecutingUser()(Code)
Returns the user executing the commands from the State, if a State has been given to this command. the user executing the commands from the State



getName
abstract public String getName()(Code)
Returns the name of the command Name of the command



getParameter
public String getParameter(String parameter_name)(Code)
Returns the first value of the parameter of the specified parameter name
Parameters:
  parameter_name - the parameter name the first value of the parameter



getParameters
public List getParameters(String parameter_name)(Code)
Returns the list of values for the parameter of the specified parameter name .
Parameters:
  parameter_name - the parameter name the list of values for the parameter



getState
public State getState()(Code)
Returns the State associated to this command. the State associated to this command.



isAvailable
public boolean isAvailable(Context context) throws InvalidCommandException(Code)
Returns true if this command is available to the user executing the command.
Parameters:
  context - TODO true if this command is available to the userexecuting the command
throws:
  InvalidCommandException - if an error occurs



isAvailable
public boolean isAvailable(User usr, AbstractEditableObject obj) throws InvalidCommandException(Code)
Returns true if this command is available to the specified user for the specified object
Parameters:
  usr - the User true if this command is available to the specified user
throws:
  InvalidCommandException - if an error occurs



isAvailable
public boolean isAvailable(User usr, Class objClass) throws InvalidCommandException(Code)
Returns true if this command is available to the specified user for the specified Class.
Parameters:
  usr - the User
Parameters:
  objClass - class to be tested true if this command is available to the specified user
throws:
  InvalidCommandException - if an error occurs



isValidCommandObject
abstract public boolean isValidCommandObject(Object obj)(Code)
Returns true if this command is valid for the given object.
Parameters:
  obj -



logCommand
protected void logCommand(Context context) throws CommandException(Code)
Logs the command with the Harmonise logger.
Parameters:
  context - TODO
throws:
  CommandException - if any errors occur logging the command



setCommandObject
public void setCommandObject(Object obj)(Code)
Sets the object on which the command will be executed
Parameters:
  obj - object on which the command will be executed



setDataStoreInteface
public void setDataStoreInteface(AbstractDataStoreInterface dsi)(Code)
Sets up an interface to the DB for this command.
Parameters:
  dsi - the data store interface



setParameters
public void setParameters(Map cmd_params)(Code)
Sets the parameters for this command.
Parameters:
  cmd_params - the parameters for this command



setState
public void setState(State state)(Code)
Adds a State object to this command, providing a context for the command to execute in.
Parameters:
  state - the state/context for the execution of the command



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.