Author: julien(a)jboss.com
Date: 2007-11-29 08:35:09 -0500 (Thu, 29 Nov 2007)
New Revision: 9196
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIContext.java
Log:
- not a necessity to expose the structural state context in the UIContext interface as it
is something used by the model only
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java 2007-11-29
13:30:41 UTC (rev 9195)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIContextImpl.java 2007-11-29
13:35:09 UTC (rev 9196)
@@ -150,14 +150,6 @@
/**
*
- */
- public StructuralStateContext getModelLoader()
- {
- return this.structuralStateContext;
- }
-
- /**
- *
* @param <T>
* @param type
* @return
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java 2007-11-29
13:30:41 UTC (rev 9195)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/impl/model/UIObjectImpl.java 2007-11-29
13:35:09 UTC (rev 9196)
@@ -168,7 +168,7 @@
// Have loader process state
StructuralStateModification mod = new
StructuralStateModification.SetProperties(changes);
StateChange<StructuralStateModification> change = new
StateChange<StructuralStateModification>(id, mod);
- context.getModelLoader().update(change);
+ context.structuralStateContext.update(change);
// Update state locally
Map<String, String> updatedProperties = new HashMap<String,
String>(state.getProperties());
Modified:
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIContext.java
===================================================================
---
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIContext.java 2007-11-29
13:30:41 UTC (rev 9195)
+++
branches/presentation/presentation/src/main/org/jboss/portal/presentation/model/UIContext.java 2007-11-29
13:35:09 UTC (rev 9196)
@@ -22,8 +22,6 @@
******************************************************************************/
package org.jboss.portal.presentation.model;
-import org.jboss.portal.presentation.model.state.structural.StructuralStateContext;
-
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
* @version $Revision: 1.1 $
@@ -36,12 +34,6 @@
* @return the object for the specified id or null if it cannot be found
*/
UIObject getObject(String id);
-
- /**
- *
- * @return the model loader
- */
- StructuralStateContext getModelLoader();
/**
*
Show replies by date