org.ow2.orchestra.common.gwt.utils.server
Class SessionAPIs

java.lang.Object
  extended by org.ow2.orchestra.common.gwt.utils.server.SessionAPIs

public class SessionAPIs
extends Object

Created by: Guillaume Porcher Date: 06/11/11 Time: 14:25


Field Summary
protected  String objectName
           
protected  Properties orchestraProperties
           
protected  String orchestraUrl
           
protected  String serviceUrl
          Service url and Object Name to connect to Orchestra
 
Constructor Summary
protected SessionAPIs(String userName)
           
 
Method Summary
<T> T
getAPI(Class<T> clazz)
           
 Properties getOrchestraProperties()
           
 String getOrchestraUrl()
           
protected  void getTaskOperationsAPI(String userName)
           
protected  void initializeOrchestraProperties(String userName)
          This method is used to get the service url and object name properties from conf file orchestra.properties It first checks if the conf/orchestra.properties exists to use it, otherwise it uses the file included in the war to fill the fields service url and object name of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceUrl

protected String serviceUrl
Service url and Object Name to connect to Orchestra


objectName

protected String objectName

orchestraUrl

protected String orchestraUrl

orchestraProperties

protected Properties orchestraProperties
Constructor Detail

SessionAPIs

protected SessionAPIs(String userName)
               throws OrchestraException,
                      OrchestraGwtException
Throws:
OrchestraException
OrchestraGwtException
Method Detail

getTaskOperationsAPI

protected void getTaskOperationsAPI(String userName)

initializeOrchestraProperties

protected void initializeOrchestraProperties(String userName)
                                      throws OrchestraGwtException
This method is used to get the service url and object name properties from conf file orchestra.properties It first checks if the conf/orchestra.properties exists to use it, otherwise it uses the file included in the war to fill the fields service url and object name of this class

Parameters:
userName - tenant name
Throws:
OrchestraGwtException

getAPI

public <T> T getAPI(Class<T> clazz)

getOrchestraUrl

public String getOrchestraUrl()

getOrchestraProperties

public Properties getOrchestraProperties()


Copyright © 2012 OW2 Consortium. All Rights Reserved.