Java Doc for Editable.java in  » Content-Management-System » harmonise » org » openharmonise » rm » resources » lifecycle » 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.resources.lifecycle 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openharmonise.rm.resources.lifecycle.Editable

All known Subclasses:   org.openharmonise.rm.resources.publishing.WebPage,  org.openharmonise.rm.resources.content.Asset,  org.openharmonise.rm.resources.users.UserGroup,  org.openharmonise.rm.resources.metadata.properties.Property,  org.openharmonise.rm.resources.AbstractProfiledObject,  org.openharmonise.rm.resources.AbstractEditableObject,  org.openharmonise.rm.resources.metadata.values.Value,  org.openharmonise.rm.resources.metadata.properties.PropertyGroup,  org.openharmonise.rm.resources.AbstractChildObject,  org.openharmonise.rm.resources.metadata.values.ValueGroup,  org.openharmonise.rm.resources.publishing.Template,  org.openharmonise.rm.tasks.Task,  org.openharmonise.rm.resources.xml.XMLResource,  org.openharmonise.rm.resources.content.Document,  org.openharmonise.rm.resources.AbstractParentObject,  org.openharmonise.rm.resources.content.Section,  org.openharmonise.rm.resources.users.User,
Editable
public interface Editable (Code)
The Editable interface provides for objects which can be edited within a versioning system.
author:
   Michael Bell
version:
   $Revision: 1.2 $


Field Summary
final public static  StringLABEL_LOCK
    
final public static  StringLABEL_UNLOCK
    


Method Summary
public  voidaddEditEventListener(EditEventListener listener)
     Adds a listener to receive edit events when the object has been edited.
public  Editablearchive()
     Archives this object in to the store of historical objects.
public  EditablechangeStatus(Status nStatus)
     Alters the status of this object to the given status.
public  EditablecreateNewVersion()
     Returns a new version of this editable object, if the current version is a live version, otherwise is returns the current object.
public  ListgetAllVersions()
     Returns all of the versions for this object.
public  ListgetHistoricalVersions()
     Gets all of the historical versions of this object.
public  EditablegetLiveVersion()
     Returns the live/current version of this object.
public  UsergetLockOwner()
     Returns the user who owns the lock on this object if it is locked.
public  ListgetPendingVersions()
     Gets all of the unnaproved versions of this object.
public  StatusgetStatus()
     Returns the status of this object.
public  booleanisLiveVersion()
     Tests whether this object is a live/current version.
public  booleanisLocked()
     Tests whether the object is locked.
public  voidlock(User usr)
     Locks this object, its unapproved versions and live version if exist.
public  Editablereactivate()
     Reactivate historical object by creating a pending version.
public  voidremoveEditEventListener(EditEventListener listener)
     Removes a edit event listener.
public  Editablesave()
     Saves current data to data store.
public  voidunlock(User usr)
     Unlocks this object, its unapproved versions and parent if exist.

Field Detail
LABEL_LOCK
final public static String LABEL_LOCK(Code)



LABEL_UNLOCK
final public static String LABEL_UNLOCK(Code)





Method Detail
addEditEventListener
public void addEditEventListener(EditEventListener listener)(Code)
Adds a listener to receive edit events when the object has been edited.
Parameters:
  listener -



archive
public Editable archive() throws EditException(Code)
Archives this object in to the store of historical objects. The archived object



changeStatus
public Editable changeStatus(Status nStatus) throws EditException(Code)
Alters the status of this object to the given status.
Parameters:
  nStatus - The new Status The new version of this object of the given status



createNewVersion
public Editable createNewVersion() throws EditException(Code)
Returns a new version of this editable object, if the current version is a live version, otherwise is returns the current object.
throws:
  EditException -



getAllVersions
public List getAllVersions() throws DataAccessException(Code)
Returns all of the versions for this object.
throws:
  DataAccessException -



getHistoricalVersions
public List getHistoricalVersions() throws DataAccessException(Code)
Gets all of the historical versions of this object. If this is an historical document, gets all of the versions that are older than this one Vector All of the historical versions



getLiveVersion
public Editable getLiveVersion() throws DataAccessException(Code)
Returns the live/current version of this object. live version



getLockOwner
public User getLockOwner() throws DataAccessException(Code)
Returns the user who owns the lock on this object if it is locked.
throws:
  DataAccessException -



getPendingVersions
public List getPendingVersions() throws DataAccessException(Code)
Gets all of the unnaproved versions of this object. Vector All of the unapproved versions



getStatus
public Status getStatus() throws DataAccessException(Code)
Returns the status of this object. int The current status



isLiveVersion
public boolean isLiveVersion() throws DataAccessException(Code)
Tests whether this object is a live/current version.
throws:
  DataAccessException -



isLocked
public boolean isLocked() throws DataAccessException(Code)
Tests whether the object is locked.
throws:
  DataAccessException -



lock
public void lock(User usr) throws EditException(Code)
Locks this object, its unapproved versions and live version if exist. Checks that user id matches lock id, if already locked do nothing.
Parameters:
  nUserId -
throws:
  EditException - if object locked by another user.



reactivate
public Editable reactivate() throws EditException(Code)
Reactivate historical object by creating a pending version.
throws:
  EditException -



removeEditEventListener
public void removeEditEventListener(EditEventListener listener)(Code)
Removes a edit event listener.
Parameters:
  listener -



save
public Editable save() throws EditException(Code)
Saves current data to data store. If the object being saved is a live version and data has been changed, a new unapproved version is created. This method will return the result of the save operation, i.e. if it is an unapproved object the orginal object will be returned, otherwise the newly created unapproved version will be returned.
throws:
  EditException -



unlock
public void unlock(User usr) throws EditException(Code)
Unlocks this object, its unapproved versions and parent if exist. Check that user id matches lock id or that user has permisssion to perform the unlock, if unlocked do nothing.
Parameters:
  nUserId -
throws:
  EditException - if user id does not match lock id



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