Author: julien(a)jboss.com
Date: 2008-07-07 19:03:37 -0400 (Mon, 07 Jul 2008)
New Revision: 11340
Added:
modules/presentation/trunk/ajax/src/main/java/org/jboss/portal/presentation/ajax/client/model/update/UpdateObject.java
Log:
forgot to add a class a few commits ago...
Added:
modules/presentation/trunk/ajax/src/main/java/org/jboss/portal/presentation/ajax/client/model/update/UpdateObject.java
===================================================================
---
modules/presentation/trunk/ajax/src/main/java/org/jboss/portal/presentation/ajax/client/model/update/UpdateObject.java
(rev 0)
+++
modules/presentation/trunk/ajax/src/main/java/org/jboss/portal/presentation/ajax/client/model/update/UpdateObject.java 2008-07-07
23:03:37 UTC (rev 11340)
@@ -0,0 +1,103 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat *
+ * Copyright 2008, Red Hat Middleware, LLC, and individual *
+ * contributors as indicated by the @authors tag. See the *
+ * copyright.txt in the distribution for a full listing of *
+ * individual contributors. *
+ * *
+ * This is free software; you can redistribute it and/or modify it *
+ * under the terms of the GNU Lesser General Public License as *
+ * published by the Free Software Foundation; either version 2.1 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This software is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this software; if not, write to the Free *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org. *
+ ******************************************************************************/
+package org.jboss.portal.presentation.ajax.client.model.update;
+
+import java.util.Set;
+import java.util.Map;
+
+/**
+ * @author <a href="mailto:julien@jboss-portal.org">Julien
Viet</a>
+ * @version $Revision: 630 $
+ */
+public class UpdateObject extends ModelUpdate
+{
+
+ /** . */
+ private String objectId;
+
+ /** . */
+ private Set removedProperties;
+
+ /** . */
+ private Map updatedProperties;
+
+ /** . */
+ private Map addedProperties;
+
+ public UpdateObject(String objectId, Set removedProperties, Map updatedProperties, Map
addedProperties)
+ {
+ this.objectId = objectId;
+ this.removedProperties = removedProperties;
+ this.updatedProperties = updatedProperties;
+ this.addedProperties = addedProperties;
+ }
+
+ public UpdateObject()
+ {
+ }
+
+ public String getObjectId()
+ {
+ return objectId;
+ }
+
+ public void setObjectId(String objectId)
+ {
+ this.objectId = objectId;
+ }
+
+ public Set getRemovedProperties()
+ {
+ return removedProperties;
+ }
+
+ public void setRemovedProperties(Set removedProperties)
+ {
+ this.removedProperties = removedProperties;
+ }
+
+ public Map getUpdatedProperties()
+ {
+ return updatedProperties;
+ }
+
+ public void setUpdatedProperties(Map updatedProperties)
+ {
+ this.updatedProperties = updatedProperties;
+ }
+
+ public Map getAddedProperties()
+ {
+ return addedProperties;
+ }
+
+ public void setAddedProperties(Map addedProperties)
+ {
+ this.addedProperties = addedProperties;
+ }
+
+ public String toString()
+ {
+ return "UpdateObject[objectId=" + objectId + "]";
+ }
+}