Java Doc for Version.java in  » Content-Management-System » daisy » org » outerj » daisy » repository » 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 » daisy » org.outerj.daisy.repository 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.outerj.daisy.repository.Version

All known Subclasses:   org.outerj.daisy.repository.commonimpl.VersionAccessWrapper,  org.outerj.daisy.repository.commonimpl.VersionImpl,
Version
public interface Version extends VersionedData(Code)
A version of a Document .

This object provides access to the all versioned information of a document, for a specific version of the document. Versions cannot be modified (except their state, see below), they are read-only. See Document.save for when a version is created.

A version can have a state of either 'publish' or 'draft'. This state can be changed at any time.





Method Summary
 StringgetChangeComment()
     Returns the change comment for this version (can be null).
 ChangeTypegetChangeType()
     Returns the change type for this version (never null).
 DategetCreated()
     Returns the date when this version was created.
 longgetCreator()
     Returns the id of the user that created this version.
 longgetId()
     The id of the version, which is a sequence number, the first version being 1, then 2, and so on.
 DategetLastModified()
     Get the time at which the state of this version was last changed.
 longgetLastModifier()
     Get the id of the user that last changed the state of this version.
 VersionDocumentgetShallowXml()
     Get an XML document containing information about this version, but without the actual versioned content, thus no fields, parts, links etc.
 VersionStategetState()
     Returns the current state of this version.
 VersionKeygetSyncedWith()
     Returns a VersionKey that identifies the version that this version was synced to.
 longgetTotalSizeOfParts()
     Get the sum of the size of the parts in this version.
 VersionDocumentgetXml()
     Get an XML document describing the version.
 voidsave()
     Saves changes made to the metadata of this version (versionState, syncedWith, changeType and changeComment).
 voidsetChangeComment(String changeComment)
     Changes the change comment for this version.

This method does not have immediate effect.

 voidsetChangeType(ChangeType changeType)
     Changes the change type for this version.

This method does not have immediate effect.

 voidsetState(VersionState state)
     Changes the state of this version.
 voidsetSyncedWith(long languageId, long versionId)
     Changes the 'synced with' field for this version.
 voidsetSyncedWith(VersionKey syncedWith)
     Sets the 'synced with' pointer by specifying a VersionKey object. Only the language ID and version ID fields of the VersionKey object are significant.



Method Detail
getChangeComment
String getChangeComment()(Code)
Returns the change comment for this version (can be null).



getChangeType
ChangeType getChangeType()(Code)
Returns the change type for this version (never null).



getCreated
Date getCreated()(Code)
Returns the date when this version was created.



getCreator
long getCreator()(Code)
Returns the id of the user that created this version. You can retrieve full information on the user via the org.outerj.daisy.repository.user.UserManager .



getId
long getId()(Code)
The id of the version, which is a sequence number, the first version being 1, then 2, and so on.



getLastModified
Date getLastModified()(Code)
Get the time at which the state of this version was last changed.



getLastModifier
long getLastModifier()(Code)
Get the id of the user that last changed the state of this version.



getShallowXml
VersionDocument getShallowXml()(Code)
Get an XML document containing information about this version, but without the actual versioned content, thus no fields, parts, links etc. This is useful when retrieving an overview of all versions of a document.



getState
VersionState getState()(Code)
Returns the current state of this version. This is the state as it was when this version object was loaded, it may have changed in the meantime.



getSyncedWith
VersionKey getSyncedWith()(Code)
Returns a VersionKey that identifies the version that this version was synced to. Returns null if not set.



getTotalSizeOfParts
long getTotalSizeOfParts()(Code)
Get the sum of the size of the parts in this version.



getXml
VersionDocument getXml() throws RepositoryException(Code)
Get an XML document describing the version.



save
void save() throws RepositoryException(Code)
Saves changes made to the metadata of this version (versionState, syncedWith, changeType and changeComment).



setChangeComment
void setChangeComment(String changeComment) throws RepositoryException(Code)
Changes the change comment for this version.

This method does not have immediate effect. You need to call version.save() to make the change permanent.


Parameters:
  changeComment - the comment text, can be null to clear the change comment



setChangeType
void setChangeType(ChangeType changeType) throws RepositoryException(Code)
Changes the change type for this version.

This method does not have immediate effect. You need to call version.save() to make the change permanent.

The change type indicates if the version contains major or minor changes.

When using translation management, the change type is used to indicate that a version contains changes which render translations invalid. So if a user makes changes to a version, even though these might seem minor, but which should be replicated in translations, than the change type should be set to major (when using translation management, otherwise you can assign your own meaning to this field).
since:
   daisy 2.2




setState
void setState(VersionState state)(Code)
Changes the state of this version.

Sinced daisy 2.2, this method no longer has immediate effect, you need to call version.save() to make the change permanent.




setSyncedWith
void setSyncedWith(long languageId, long versionId) throws RepositoryException(Code)
Changes the 'synced with' field for this version. The purpose of this field is for translation management, it indicates that the data in this version is translated content which is up to date with a certain version of some other (reference) language.

This method does not have immediate effect. You need to call version.save() to make the change permanent.

To clear the 'synced with' field, specify -1 for languageId and versionId.
throws:
  IllegalArgumentException - if exactly one of languageId and versionId is -1 or versionId < 0
throws:
  RepositoryException - if the languageId!=-1 and the language does not exist
since:
   daisy 2.2




setSyncedWith
void setSyncedWith(VersionKey syncedWith) throws RepositoryException(Code)
Sets the 'synced with' pointer by specifying a VersionKey object. Only the language ID and version ID fields of the VersionKey object are significant. The syncedWith argument can be null.



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