incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r151231 - incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java
Date Thu, 03 Feb 2005 21:13:34 GMT
Author: taylor
Date: Thu Feb  3 13:13:33 2005
New Revision: 151231

URL: http://svn.apache.org/viewcvs?view=rev&rev=151231
Log:
added API to manage serializable objects on a CmsObject


Modified:
    incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java

Modified: incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java?view=diff&r1=151230&r2=151231
==============================================================================
--- incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java
(original)
+++ incubator/graffito/trunk/api/src/java/org/apache/portals/graffito/model/CmsObject.java
Thu Feb  3 13:13:33 2005
@@ -15,6 +15,7 @@
  */
 package org.apache.portals.graffito.model;
 
+import java.io.NotSerializableException;
 import java.util.Date;
 import java.util.Map;
 
@@ -158,6 +159,33 @@
      * @param property
      */
     void setProperty(String name, String property);     
+
+    /**
+     * Get a map of all objects for this documen t
+     * Objects should be serializable
+     * 
+     * @return a map of objects
+     */
+    Map getObjects();
+
+    /**
+     * Get a named object for this document
+     * Objects should be serializable
+     * 
+     * @param name of the object
+     * @return the object 
+     */
+    Object getObject(String name);
+
+    /**
+     * Sets a named object for this string
+     * Objects should be serializable
+     * 
+     * @param name
+     * @param object
+     */
+    void setObject(String name, Object object)
+    throws NotSerializableException;
     
     /**
      * Gets the version number



Mime
View raw message