com.jalios.jcms.portlet
Class AJAXPortalManager

java.lang.Object
  extended by com.jalios.jcms.portlet.AJAXPortalManager
All Implemented Interfaces:
Serializable

public class AJAXPortalManager
extends Object
implements Serializable

This class is a JSON Bridge used to access PortalManager method using ajax.

Since:
jcms-5.5.0
Version:
$Revision: 16750 $
Author:
Jean-Philippe Encausse
See Also:
Serialized Form

Constructor Summary
AJAXPortalManager()
           
 
Method Summary
protected  String checkPortlet(PortalElement elm, Member loggedMember, String userLang)
          Common utility method to check arguments
 String cutPortlet(String id, int childCount, boolean delete)
          Convenient methode to cut/delete a Portlet
protected  Member getLoggedMember()
           
protected  String getUserLang()
           
 String movePortlet(String id, int childCount, boolean up)
          Convenient methode to move a Portlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AJAXPortalManager

public AJAXPortalManager()
Method Detail

getLoggedMember

protected Member getLoggedMember()

getUserLang

protected String getUserLang()

checkPortlet

protected String checkPortlet(PortalElement elm,
                              Member loggedMember,
                              String userLang)
Common utility method to check arguments

Parameters:
elm - the Portlet to check
Returns:
String the error message

movePortlet

public String movePortlet(String id,
                          int childCount,
                          boolean up)
Convenient methode to move a Portlet

Parameters:
id - the parent id
childCount - the child position
up - move up or down
Returns:
String the error message

cutPortlet

public String cutPortlet(String id,
                         int childCount,
                         boolean delete)
Convenient methode to cut/delete a Portlet

Parameters:
id - the parent id
childCount - the child position
delete - should delete also the portlet
Returns:
String the error message


Copyright © 2001-2010 Jalios SA. All Rights Reserved.