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


org.apache.lenya.cms.publication.DocumentImpl

DocumentImpl
public class DocumentImpl extends AbstractLogEnabled implements Document(Code)
A typical CMS document.
version:
   $Id: DocumentImpl.java 595602 2007-11-16 09:18:02Z andreas $


Field Summary
final protected static  StringIDENTIFIABLE_TYPE
    
final protected static  StringMETADATA_CONTENT_TYPE
     The name of the content type attribute.
final protected static  StringMETADATA_EXPIRES
    
final protected static  StringMETADATA_EXTENSION
     The extension to use for the document source.
final protected static  StringMETADATA_MIME_TYPE
     The name of the mime type attribute.
final public static  StringMETADATA_NAMESPACE
     The meta data namespace.
final protected static  StringMETADATA_RESOURCE_TYPE
     The name of the resource type attribute.
protected  ServiceManagermanager
    

Constructor Summary
protected  DocumentImpl(ServiceManager manager, DocumentFactory map, DocumentIdentifier identifier, int revision, Logger _logger)
     Creates a new instance of DefaultDocument.

Method Summary
public  voidaccept(DocumentVisitor visitor)
    
public  Areaarea()
    
protected  voidcheckWritability()
    
public  voiddelete()
    
public  booleanequals(Object object)
    
public  booleanexists()
    
public  booleanexistsAreaVersion(String area)
    
public  booleanexistsInAnyLanguage()
    
public  booleanexistsTranslation(String language)
    
public  booleanexistsVersion(String area, String language)
    
public  StringgetArea()
    
public  DocumentgetAreaVersion(String area)
    
public  StringgetCanonicalDocumentURL()
    
public  StringgetCanonicalWebappURL()
    
protected  ContentHoldergetContentHolder()
    
public  longgetContentLength()
    
public  DategetExpires()
    
public  StringgetExtension()
    
public  DocumentFactorygetFactory()
    
public  FilegetFile()
    
public  DocumentIdentifiergetIdentifier()
    
public  InputStreamgetInputStream()
    
public  StringgetLanguage()
    
public  String[]getLanguages()
    
public  longgetLastModified()
    
public  LinkgetLink()
    
public  DocumentLocatorgetLocator()
    
public  MetaDatagetMetaData(String namespaceUri)
    
public  String[]getMetaDataNamespaceUris()
    
public  StringgetMimeType()
    
public  StringgetName()
    
public  OutputStreamgetOutputStream()
    
public  StringgetPath()
    
public  PublicationgetPublication()
    
public  NodegetRepositoryNode()
    
protected static  NodegetRepositoryNode(ServiceManager manager, DocumentFactory docFactory, String sourceUri)
    
public  ResourceTypegetResourceType()
     Convenience method to read the document's resource type from the meta-data.
public  intgetRevisionNumber()
    
public  SessiongetSession()
    
public  StringgetSourceExtension()
    
public  StringgetSourceURI()
    
protected static  StringgetSourceURI(Publication pub, String area, String uuid, String language)
    
public  DocumentgetTranslation(String language)
    
public  StringgetUUID()
    
public  DocumentgetVersion(String area, String language)
    
public  booleanhasLink()
    
public  inthashCode()
    
protected  booleanisRevisionSpecified()
    
protected  voidsetExtension(String _extension)
     Sets the extension of the file in the URL.
public  voidsetMimeType(String mimeType)
    
public  voidsetResourceType(ResourceType resourceType)
    
public  voidsetSourceExtension(String extension)
    
public  StringtoString()
    

Field Detail
IDENTIFIABLE_TYPE
final protected static String IDENTIFIABLE_TYPE(Code)



METADATA_CONTENT_TYPE
final protected static String METADATA_CONTENT_TYPE(Code)
The name of the content type attribute. Any content managed by Lenya has a type; this information can be used e.g. to provide an appropriate management interface.



METADATA_EXPIRES
final protected static String METADATA_EXPIRES(Code)
The number of seconds from the request that a document can be cached before it expires



METADATA_EXTENSION
final protected static String METADATA_EXTENSION(Code)
The extension to use for the document source.



METADATA_MIME_TYPE
final protected static String METADATA_MIME_TYPE(Code)
The name of the mime type attribute.



METADATA_NAMESPACE
final public static String METADATA_NAMESPACE(Code)
The meta data namespace.



METADATA_RESOURCE_TYPE
final protected static String METADATA_RESOURCE_TYPE(Code)
The name of the resource type attribute. A resource has a resource type; this information can be used e.g. for different rendering of different types.



manager
protected ServiceManager manager(Code)




Constructor Detail
DocumentImpl
protected DocumentImpl(ServiceManager manager, DocumentFactory map, DocumentIdentifier identifier, int revision, Logger _logger)(Code)
Creates a new instance of DefaultDocument.
Parameters:
  manager - The service manager.
Parameters:
  map - The identity map the document belongs to.
Parameters:
  identifier - The identifier.
Parameters:
  revision - The revision number or -1 if the latest revision should be used.
Parameters:
  _logger - a logger




Method Detail
accept
public void accept(DocumentVisitor visitor) throws PublicationException(Code)

See Also:   org.apache.lenya.cms.publication.Document.accept(org.apache.lenya.cms.publication.util.DocumentVisitor)



area
public Area area()(Code)



checkWritability
protected void checkWritability()(Code)



delete
public void delete() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.delete



equals
public boolean equals(Object object)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



exists
public boolean exists() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.exists



existsAreaVersion
public boolean existsAreaVersion(String area)(Code)



existsInAnyLanguage
public boolean existsInAnyLanguage() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.existsInAnyLanguage



existsTranslation
public boolean existsTranslation(String language)(Code)



existsVersion
public boolean existsVersion(String area, String language)(Code)



getArea
public String getArea()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getArea



getAreaVersion
public Document getAreaVersion(String area) throws DocumentException(Code)



getCanonicalDocumentURL
public String getCanonicalDocumentURL()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getCanonicalDocumentURL



getCanonicalWebappURL
public String getCanonicalWebappURL()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getCanonicalWebappURL



getContentHolder
protected ContentHolder getContentHolder()(Code)



getContentLength
public long getContentLength() throws DocumentException(Code)



getExpires
public Date getExpires() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.getExpires



getExtension
public String getExtension()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getExtension



getFactory
public DocumentFactory getFactory()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getFactory



getFile
public File getFile()(Code)



getIdentifier
public DocumentIdentifier getIdentifier()(Code)



getInputStream
public InputStream getInputStream()(Code)



getLanguage
public String getLanguage()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getLanguage



getLanguages
public String[] getLanguages() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.getLanguages



getLastModified
public long getLastModified() throws DocumentException(Code)

See Also:   org.apache.lenya.cms.publication.Document.getLastModified



getLink
public Link getLink() throws DocumentException(Code)



getLocator
public DocumentLocator getLocator()(Code)



getMetaData
public MetaData getMetaData(String namespaceUri) throws MetaDataException(Code)



getMetaDataNamespaceUris
public String[] getMetaDataNamespaceUris() throws MetaDataException(Code)



getMimeType
public String getMimeType() throws DocumentException(Code)



getName
public String getName()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getName



getOutputStream
public OutputStream getOutputStream()(Code)



getPath
public String getPath() throws DocumentException(Code)



getPublication
public Publication getPublication()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getPublication



getRepositoryNode
public Node getRepositoryNode()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getRepositoryNode



getRepositoryNode
protected static Node getRepositoryNode(ServiceManager manager, DocumentFactory docFactory, String sourceUri)(Code)



getResourceType
public ResourceType getResourceType() throws DocumentException(Code)
Convenience method to read the document's resource type from the meta-data.
See Also:   Document.getResourceType



getRevisionNumber
public int getRevisionNumber()(Code)



getSession
public Session getSession()(Code)



getSourceExtension
public String getSourceExtension()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getSourceExtension



getSourceURI
public String getSourceURI()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getSourceURI



getSourceURI
protected static String getSourceURI(Publication pub, String area, String uuid, String language)(Code)



getTranslation
public Document getTranslation(String language) throws DocumentException(Code)



getUUID
public String getUUID()(Code)

See Also:   org.apache.lenya.cms.publication.Document.getUUID



getVersion
public Document getVersion(String area, String language) throws DocumentException(Code)



hasLink
public boolean hasLink()(Code)



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isRevisionSpecified
protected boolean isRevisionSpecified()(Code)



setExtension
protected void setExtension(String _extension)(Code)
Sets the extension of the file in the URL.
Parameters:
  _extension - A string.



setMimeType
public void setMimeType(String mimeType) throws DocumentException(Code)



setResourceType
public void setResourceType(ResourceType resourceType)(Code)



setSourceExtension
public void setSourceExtension(String extension)(Code)



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



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