Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.container.client.model
Class AppModel

java.lang.Object
  extended by org.nuxeo.opensocial.container.client.model.AppModel
All Implemented Interfaces:
HasPermissionsMapper

public class AppModel
extends Object
implements HasPermissionsMapper

Author:
Stéphane Fourrier

Field Summary
static String GENERATE_TITLE_PARAMETER_NAME
           
 
Constructor Summary
AppModel(net.customware.gwt.presenter.client.EventBus eventBus, ContainerDispatchAsync dispatcher)
           
 
Method Summary
 void addWebContent(WebContentData webContent)
           
 void createZone()
           
 boolean deleteZone(int zoneIndex)
           
 ContainerContext getContainerContext()
           
 YUILayout getLayout()
           
 Map<String,Map<String,Boolean>> getPermissions()
           
 WebContentData getWebContent(String webcontentId)
           
 Map<String,List<WebContentData>> getWebContents()
           
 Boolean hasPermission(String id, String permission)
           
 void removeWebContent(String webContentId)
           
 void setBodySize(YUIBodySize bodySize)
           
 boolean setHasFooter(boolean hasFooter)
           
 boolean setHasHeader(boolean hasHeader)
           
 void setLayout(YUILayout layout)
           
 void setPermissions(Map<String,Map<String,Boolean>> permissions)
           
 boolean setSideBar(YUISideBarStyle sideBar)
           
 void setWebContents(Map<String,List<WebContentData>> webContents)
           
 void updateWebContent(String webContentId, List<String> list)
           
 boolean updateZoneTemplate(int zoneIndex, YUITemplate template)
           
 void webContentMoved(String fromUnitId, int fromWebContentPosition, String toUnitId, int toWebContentPosition)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GENERATE_TITLE_PARAMETER_NAME

public static final String GENERATE_TITLE_PARAMETER_NAME
See Also:
Constant Field Values
Constructor Detail

AppModel

@Inject
public AppModel(net.customware.gwt.presenter.client.EventBus eventBus,
                       ContainerDispatchAsync dispatcher)
Method Detail

getContainerContext

public ContainerContext getContainerContext()

getWebContents

public Map<String,List<WebContentData>> getWebContents()

setWebContents

public void setWebContents(Map<String,List<WebContentData>> webContents)

getWebContent

public WebContentData getWebContent(String webcontentId)

getLayout

public YUILayout getLayout()

setLayout

public void setLayout(YUILayout layout)

setPermissions

public void setPermissions(Map<String,Map<String,Boolean>> permissions)

hasPermission

public Boolean hasPermission(String id,
                             String permission)
Specified by:
hasPermission in interface HasPermissionsMapper

getPermissions

public Map<String,Map<String,Boolean>> getPermissions()
Specified by:
getPermissions in interface HasPermissionsMapper

setBodySize

public void setBodySize(YUIBodySize bodySize)

setSideBar

public boolean setSideBar(YUISideBarStyle sideBar)

setHasHeader

public boolean setHasHeader(boolean hasHeader)

setHasFooter

public boolean setHasFooter(boolean hasFooter)

createZone

public void createZone()

updateZoneTemplate

public boolean updateZoneTemplate(int zoneIndex,
                                  YUITemplate template)

deleteZone

public boolean deleteZone(int zoneIndex)

addWebContent

public void addWebContent(WebContentData webContent)

updateWebContent

public void updateWebContent(String webContentId,
                             List<String> list)

removeWebContent

public void removeWebContent(String webContentId)

webContentMoved

public void webContentMoved(String fromUnitId,
                            int fromWebContentPosition,
                            String toUnitId,
                            int toWebContentPosition)

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.