Java Doc for Create.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » site » usecases » 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 » apache lenya 2.0 » org.apache.lenya.cms.site.usecases 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lenya.cms.usecase.AbstractUsecase
   org.apache.lenya.cms.site.usecases.Create

All known Subclasses:   org.apache.lenya.cms.site.usecases.CreateDocument,  org.apache.lenya.cms.usecases.webdav.Mkcol,  org.apache.lenya.cms.site.usecases.CreateLanguage,
Create
abstract public class Create extends AbstractUsecase (Code)

Abstract superclass for usecases to create a document.

You can pass the following parameters into the usecase:

  • path - the path of the document to create (optional)

version:
   $Id: Create.java 571550 2007-08-31 19:18:54Z rfrovarp $


Field Summary
final protected static  StringDUBLIN_CORE_PREFIX
    
final protected static  StringLANGUAGE
    
final protected static  StringLANGUAGES
    
final protected static  StringNODE_NAME
    
final protected static  StringPATH
    
final protected static  StringRESOURCE_TYPES
    
final protected static  StringSAMPLE
    
final protected static  StringSAMPLES
    
final protected static  StringVISIBLEINNAV
    

Constructor Summary
public  Create()
     Ctor.

Method Summary
abstract protected  booleancreateVersion()
    
protected  voiddoCheckExecutionConditions()
    
protected  voiddoCheckPreconditions()
    
protected  voiddoExecute()
    
public  StringgetArea()
    
abstract protected  StringgetDocumentTypeName()
    
protected  StringgetDublinCoreParameter(String name)
    
protected  DocumentgetInitialDocument()
     If the document created in the usecase shall have initial contents copied from an existing document, construct that document in this method.
protected  DocumentgetNewDocument()
    
abstract protected  StringgetNewDocumentName()
    
abstract protected  StringgetNewDocumentPath()
    
protected  Node[]getNodesToLock()
    
protected  PublicationgetPublication()
     Access to the current publication.
protected  DocumentgetSourceDocument()
    
abstract protected  StringgetSourceExtension()
    
protected  booleangetVisibleInNav()
    
protected  voidinitParameters()
    
protected  voidinitSampleParameters()
    
protected  booleanisPathValid()
     This method is used by Create.doCheckExecutionConditions() to check if the path entered by the user is valid.
protected  voidsetDublinCoreParameter(String name, String value)
    
protected  voidsetMetaData(Document document)
     Sets the meta data of the created document.

Field Detail
DUBLIN_CORE_PREFIX
final protected static String DUBLIN_CORE_PREFIX(Code)



LANGUAGE
final protected static String LANGUAGE(Code)



LANGUAGES
final protected static String LANGUAGES(Code)



NODE_NAME
final protected static String NODE_NAME(Code)



PATH
final protected static String PATH(Code)



RESOURCE_TYPES
final protected static String RESOURCE_TYPES(Code)



SAMPLE
final protected static String SAMPLE(Code)



SAMPLES
final protected static String SAMPLES(Code)



VISIBLEINNAV
final protected static String VISIBLEINNAV(Code)




Constructor Detail
Create
public Create()(Code)
Ctor.




Method Detail
createVersion
abstract protected boolean createVersion()(Code)



doCheckExecutionConditions
protected void doCheckExecutionConditions() throws Exception(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.doCheckExecutionConditions



doCheckPreconditions
protected void doCheckPreconditions() throws Exception(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.doCheckPreconditions



doExecute
protected void doExecute() throws Exception(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.doExecute



getArea
public String getArea()(Code)
The area without the "info-" prefix.



getDocumentTypeName
abstract protected String getDocumentTypeName()(Code)
The type of the created document.



getDublinCoreParameter
protected String getDublinCoreParameter(String name)(Code)



getInitialDocument
protected Document getInitialDocument()(Code)
If the document created in the usecase shall have initial contents copied from an existing document, construct that document in this method. A document.



getNewDocument
protected Document getNewDocument()(Code)
The new document.



getNewDocumentName
abstract protected String getNewDocumentName()(Code)
the name of the document being created in the usecase



getNewDocumentPath
abstract protected String getNewDocumentPath()(Code)
the id of the new document being created in the usecase



getNodesToLock
protected Node[] getNodesToLock() throws UsecaseException(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.getNodesToLock



getPublication
protected Publication getPublication()(Code)
Access to the current publication. Use this when the publication is not yet known in the usecase: e.g. when creating a global asset. When adding a resource or a child to a document, access the publication via that document's interface instead. the publication in which the use-case is being executed



getSourceDocument
protected Document getSourceDocument()(Code)
The source document or null if the usecase was notinvoked on a document.



getSourceExtension
abstract protected String getSourceExtension()(Code)
the extension to use for the document source.



getVisibleInNav
protected boolean getVisibleInNav()(Code)
the visibleInNav Attribute of the document being created in theusecase



initParameters
protected void initParameters()(Code)

See Also:   org.apache.lenya.cms.usecase.AbstractUsecase.initParameters



initSampleParameters
protected void initSampleParameters()(Code)



isPathValid
protected boolean isPathValid()(Code)
This method is used by Create.doCheckExecutionConditions() to check if the path entered by the user is valid. If not, checking the existence of the new document in the site structure is omitted because this operation could cause errors. A boolean value.



setDublinCoreParameter
protected void setDublinCoreParameter(String name, String value)(Code)



setMetaData
protected void setMetaData(Document document) throws MetaDataException(Code)
Sets the meta data of the created document.
Parameters:
  document - The document.
throws:
  MetaDataException - if an error occurs.



Fields inherited from org.apache.lenya.cms.usecase.AbstractUsecase
final protected static String ATTRIBUTE_NAME(Code)(Java Doc)
final protected static String ATTRIBUTE_POLICY(Code)(Java Doc)
final protected static String ATTRIBUTE_USECASE(Code)(Java Doc)
final protected static String ATTRIBUTE_VALUE(Code)(Java Doc)
final protected static String ELEMENT_EXIT(Code)(Java Doc)
final protected static String ELEMENT_PARAMETER(Code)(Java Doc)
final protected static String ELEMENT_TRANSACTION(Code)(Java Doc)
final protected static String ELEMENT_VIEW(Code)(Java Doc)
final protected static String ERROR_OBJECTS_CHECKED_OUT(Code)(Java Doc)
final protected static String EVENT_CHECK_EXECUTION_CONDITIONS(Code)(Java Doc)
final protected static String EVENT_CHECK_POSTCONDITIONS(Code)(Java Doc)
final protected static String EVENT_CHECK_PRECONDITIONS(Code)(Java Doc)
final protected static String EVENT_EXECUTE(Code)(Java Doc)
final protected static StateMachine.Model MODEL(Code)(Java Doc)
final protected static String PARAMETERS_INITIALIZED(Code)(Java Doc)
final protected static String PARAMETER_CHECKOUT_RESTRICTED_TO_SESSION(Code)(Java Doc)
final protected static String PARAMETER_FACTORY(Code)(Java Doc)
final protected static String PARAMETER_SESSION(Code)(Java Doc)
final protected static String PARAMETER_STATE_MACHINE(Code)(Java Doc)
protected String SOURCE_URL(Code)(Java Doc)
final protected static StateMachine.Transition[] TRANSITIONS(Code)(Java Doc)
final protected static String VALUE_OPTIMISTIC(Code)(Java Doc)
final protected static String VALUE_PESSIMISTIC(Code)(Java Doc)
protected Context context(Code)(Java Doc)
protected ServiceManager manager(Code)(Java Doc)

Methods inherited from org.apache.lenya.cms.usecase.AbstractUsecase
public void addErrorMessage(String message)(Code)(Java Doc)
public void addErrorMessage(String message, String[] _params)(Code)(Java Doc)
public void addErrorMessages(String[] messages)(Code)(Java Doc)
public void addInfoMessage(String message, String[] _params)(Code)(Java Doc)
public void addInfoMessage(String message)(Code)(Java Doc)
public void advance() throws UsecaseException(Code)(Java Doc)
protected void advanceState(String event)(Code)(Java Doc)
protected boolean canCheckOut(Node[] objects) throws RepositoryException(Code)(Java Doc)
public void cancel() throws UsecaseException(Code)(Java Doc)
protected void checkEvent(String event)(Code)(Java Doc)
final public void checkExecutionConditions() throws UsecaseException(Code)(Java Doc)
public void checkPostconditions() throws UsecaseException(Code)(Java Doc)
final public void checkPreconditions() throws UsecaseException(Code)(Java Doc)
protected boolean checkoutRestrictedToSession()(Code)(Java Doc)
protected void clearErrorMessages()(Code)(Java Doc)
protected void clearInfoMessages()(Code)(Java Doc)
public void configure(Configuration config) throws ConfigurationException(Code)(Java Doc)
public void contextualize(Context context) throws ContextException(Code)(Java Doc)
protected void deleteParameter(String name)(Code)(Java Doc)
protected void doCheckExecutionConditions() throws Exception(Code)(Java Doc)
protected void doCheckPostconditions() throws Exception(Code)(Java Doc)
protected void doCheckPreconditions() throws Exception(Code)(Java Doc)
protected void doExecute() throws Exception(Code)(Java Doc)
final protected void doInitialize()(Code)(Java Doc)
protected void dumpErrorMessages()(Code)(Java Doc)
final public void execute() throws UsecaseException(Code)(Java Doc)
public String getBooleanCheckboxParameter(String name)(Code)(Java Doc)
protected Context getContext()(Code)(Java Doc)
protected DocumentFactory getDocumentFactory()(Code)(Java Doc)
public List getErrorMessages()(Code)(Java Doc)
protected String getExitQueryString()(Code)(Java Doc)
public List getInfoMessages()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected Node[] getNodesToLock() throws UsecaseException(Code)(Java Doc)
public Object getParameter(String name)(Code)(Java Doc)
public Object getParameter(String name, Object defaultValue)(Code)(Java Doc)
public boolean getParameterAsBoolean(String name, boolean defaultValue)(Code)(Java Doc)
public int getParameterAsInteger(String name, int defaultValue)(Code)(Java Doc)
public String getParameterAsString(String name)(Code)(Java Doc)
public String getParameterAsString(String name, String defaultValue)(Code)(Java Doc)
public String[] getParameterNames()(Code)(Java Doc)
public Map getParameters()(Code)(Java Doc)
public Part getPart(String name)(Code)(Java Doc)
public Session getSession()(Code)(Java Doc)
public String getSourceURL()(Code)(Java Doc)
protected StateMachine getStateMachine()(Code)(Java Doc)
public String getTargetURL(boolean success)(Code)(Java Doc)
public UsecaseView getView()(Code)(Java Doc)
public boolean hasErrors()(Code)(Java Doc)
public boolean hasInfoMessages()(Code)(Java Doc)
protected void initParameters()(Code)(Java Doc)
final public void initialize() throws Exception(Code)(Java Doc)
protected void initializeParametersIfNotDone()(Code)(Java Doc)
public boolean isOptimistic()(Code)(Java Doc)
final public void lockInvolvedObjects() throws UsecaseException(Code)(Java Doc)
final public void lockInvolvedObjects(Node[] objects) throws UsecaseException(Code)(Java Doc)
protected void prepareView() throws Exception(Code)(Java Doc)
public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
protected void setDefaultTargetURL(String url)(Code)(Java Doc)
protected void setExitParameter(String name, String value)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setParameter(String name, Object value)(Code)(Java Doc)
public void setPart(String name, Part value)(Code)(Java Doc)
protected void setSession(org.apache.lenya.cms.repository.Session session)(Code)(Java Doc)
public void setSourceURL(String url)(Code)(Java Doc)
public void setTestSession(Session session)(Code)(Java Doc)
public void setView(UsecaseView view)(Code)(Java Doc)
protected void startTransaction() throws RepositoryException(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.