Java Doc for A_CmsToolHandler.java in  » Content-Management-System » opencms » org » opencms » workplace » tools » 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 » opencms » org.opencms.workplace.tools 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.workplace.tools.A_CmsToolHandler

All known Subclasses:   org.opencms.workplace.tools.searchindex.CmsSearchToolHandler,  org.opencms.workplace.tools.scheduler.CmsSchedulerToolHandler,  org.opencms.workplace.tools.CmsOnlyAdminToolHandler,  org.opencms.workplace.tools.accounts.CmsOrgUnitsToolHandler,  org.opencms.workplace.tools.database.CmsDatabaseToolHandler,  org.opencms.workplace.tools.projects.CmsProjectsToolHandler,  org.opencms.workplace.tools.workplace.CmsWorkplaceToolHandler,  org.opencms.workplace.tools.CmsDefaultToolHandler,  org.opencms.workplace.tools.cache.CmsCacheAdminToolHandler,  org.opencms.workplace.tools.history.CmsFileHistoryToolHandler,  org.opencms.workplace.tools.CmsInvisibleToolHandler,  org.opencms.workplace.tools.CmsToolRootHandler,  org.opencms.workplace.tools.galleryoverview.CmsGalleriesToolHandler,  org.opencms.workplace.tools.link.CmsLinkValidationToolHandler,  org.opencms.workplace.tools.modules.CmsModulesToolHandler,
A_CmsToolHandler
abstract public class A_CmsToolHandler implements I_CmsToolHandler(Code)
Helper class to build easily other admin tool handlers.


author:
   Michael Moossen
version:
   $Revision: 1.28 $
since:
   6.0.0



Field Summary
final public static  StringARGS_PROPERTY_DEFINITION
    
final public static  StringARGUMENT_SEPARATOR
    
final public static  StringARG_PARAM_NAME
    
final public static  StringARG_PATH_NAME
    
final public static  StringDEFAULT_DISABLED_HELPTEXT
    
final public static  StringVALUE_SEPARATOR
    


Method Summary
public  StringgetConfirmationMessage()
    
public  StringgetDisabledHelpText()
    
public  StringgetGroup()
    
public  StringgetHelpText()
    
public  StringgetIconPath()
    
public  StringgetLink()
    
public  StringgetName()
    
public  MapgetParameters(CmsWorkplace wp)
    
public  StringgetPath()
    
public  floatgetPosition()
    
public  StringgetShortName()
    
public  StringgetSmallIconPath()
    
public  booleanisEnabled(CmsWorkplace wp)
    
public  booleanisVisible(CmsWorkplace wp)
    
public  voidsetConfirmationMessage(String confirmationMessage)
    
public  voidsetDisabledHelpText(String disabledHelpText)
    
public  voidsetGroup(String group)
    
public  voidsetHelpText(String helpText)
    
public  voidsetIconPath(String iconPath)
    
public  voidsetLink(String link)
    
protected  voidsetLink(CmsObject cms, String resourcePath)
     Sets the link for the given resource.

Use the resourcePath as link if it is not a folder.

public  voidsetName(String name)
    
public  voidsetParameterString(String paramString)
    
protected  voidsetParameters(CmsObject cms, String resourcePath)
    
public  voidsetPath(String path)
    
public  voidsetPosition(float position)
    
public  voidsetShortName(String shortName)
    
public  voidsetSmallIconPath(String smallIconPath)
    
public  booleansetup(CmsObject cms, CmsToolRootHandler root, String resourcePath)
     Default implementation.

It takes the icon path from org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVIMAGE property, or uses a default icon if undefined, the name is taken from the org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVTEXT property, or uses the org.opencms.file.CmsPropertyDefinition.PROPERTY_TITLE property if undefined, or an default text, if still undefined.

public  StringtoString()
    

Field Detail
ARGS_PROPERTY_DEFINITION
final public static String ARGS_PROPERTY_DEFINITION(Code)
Property definition for the arguments.




ARGUMENT_SEPARATOR
final public static String ARGUMENT_SEPARATOR(Code)
Argument separator.




ARG_PARAM_NAME
final public static String ARG_PARAM_NAME(Code)
Property for the parameters argument.




ARG_PATH_NAME
final public static String ARG_PATH_NAME(Code)
Property for the path argument.




DEFAULT_DISABLED_HELPTEXT
final public static String DEFAULT_DISABLED_HELPTEXT(Code)
Default disabled help text constant.




VALUE_SEPARATOR
final public static String VALUE_SEPARATOR(Code)
Argument name and value separator.






Method Detail
getConfirmationMessage
public String getConfirmationMessage()(Code)
Returns the confirmation Message.

the confirmation Message




getDisabledHelpText
public String getDisabledHelpText()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getDisabledHelpText



getGroup
public String getGroup()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getGroup



getHelpText
public String getHelpText()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getHelpText



getIconPath
public String getIconPath()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getIconPath



getLink
public String getLink()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getLink



getName
public String getName()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getName



getParameters
public Map getParameters(CmsWorkplace wp)(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getParameters(org.opencms.workplace.CmsWorkplace)



getPath
public String getPath()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getPath



getPosition
public float getPosition()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getPosition



getShortName
public String getShortName()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getShortName



getSmallIconPath
public String getSmallIconPath()(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.getSmallIconPath



isEnabled
public boolean isEnabled(CmsWorkplace wp)(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.isEnabled(org.opencms.workplace.CmsWorkplace)



isVisible
public boolean isVisible(CmsWorkplace wp)(Code)

See Also:   org.opencms.workplace.tools.I_CmsToolHandler.isVisible(org.opencms.workplace.CmsWorkplace)



setConfirmationMessage
public void setConfirmationMessage(String confirmationMessage)(Code)
Sets the confirmation Message.


Parameters:
  confirmationMessage - the confirmation Message to set




setDisabledHelpText
public void setDisabledHelpText(String disabledHelpText)(Code)
Sets the help text if disabled.


Parameters:
  disabledHelpText - the help text to set




setGroup
public void setGroup(String group)(Code)
Sets the group.


Parameters:
  group - the group to set




setHelpText
public void setHelpText(String helpText)(Code)
Sets the help text.


Parameters:
  helpText - the help text to set




setIconPath
public void setIconPath(String iconPath)(Code)
Sets the icon path.


Parameters:
  iconPath - the icon path to set




setLink
public void setLink(String link)(Code)
Sets the link.


Parameters:
  link - the link to set




setLink
protected void setLink(CmsObject cms, String resourcePath)(Code)
Sets the link for the given resource.

Use the resourcePath as link if it is not a folder. If it is a folder, try to use the folder default file property value as link. if not use the CmsToolManager.VIEW_JSPPAGE_LOCATION .
Parameters:
  cms - the cms context
Parameters:
  resourcePath - the path to the resource to set the link for




setName
public void setName(String name)(Code)
Sets the name.


Parameters:
  name - the name to set




setParameterString
public void setParameterString(String paramString)(Code)
Sets the parameter string.


Parameters:
  paramString - the parameter string to set




setParameters
protected void setParameters(CmsObject cms, String resourcePath)(Code)
Sets the needed properties from the A_CmsToolHandler.ARGS_PROPERTY_DEFINITION property of the given resource.


Parameters:
  cms - the cms context
Parameters:
  resourcePath - the path to the resource to read the property from




setPath
public void setPath(String path)(Code)
Sets the path.


Parameters:
  path - the path to set




setPosition
public void setPosition(float position)(Code)
Sets the position.


Parameters:
  position - the position to set




setShortName
public void setShortName(String shortName)(Code)
Sets the short name.


Parameters:
  shortName - the short name to set




setSmallIconPath
public void setSmallIconPath(String smallIconPath)(Code)
Sets the small icon path.


Parameters:
  smallIconPath - the samll icon path to set




setup
public boolean setup(CmsObject cms, CmsToolRootHandler root, String resourcePath)(Code)
Default implementation.

It takes the icon path from org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVIMAGE property, or uses a default icon if undefined, the name is taken from the org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVTEXT property, or uses the org.opencms.file.CmsPropertyDefinition.PROPERTY_TITLE property if undefined, or an default text, if still undefined. if you want 2 different names, one for the big icon tools and one for the menu/navbar entries, use a A_CmsToolHandler.VALUE_SEPARATOR to separate them in the property. (if you do so, the first one is for big icons and the second one for menu/navbar entries). the help text is taken from the org.opencms.file.CmsPropertyDefinition.PROPERTY_DESCRIPTION property or a default text if undefined, if you want to customize a help text while disabled, use a A_CmsToolHandler.VALUE_SEPARATOR as a separator in the same property.

The group is taken from the org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVINFO property, the position from the org.opencms.file.CmsPropertyDefinition.PROPERTY_NAVPOS and the install path is given by the folder structure if the A_CmsToolHandler.ARGS_PROPERTY_DEFINITION property does not include path information.

For the icon path you can specify 2 paths separated by a A_CmsToolHandler.VALUE_SEPARATOR , the first one will be used as a group icon (32x32), and the second as an menu icon (16x16). The paths are relative to the /system/workplace/resources/ folder. If the tool is disabled, the names of the icons are composed as ${name}_disabled.${ext}

The confirmation message is taken from the A_CmsToolHandler.ARGS_PROPERTY_DEFINITION with key #ARG_CONFIRMATION_NAME
See Also:   org.opencms.workplace.tools.I_CmsToolHandler.setup(org.opencms.file.CmsObjectCmsToolRootHandlerjava.lang.String)




toString
public String toString()(Code)

See Also:   java.lang.Object.toString



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.