Package it.eng.spagobi.services.proxy

Examples of it.eng.spagobi.services.proxy.ContentServiceProxy


   * @throws Exception the exception
   */
  public Content readMap(String mapName) throws Exception {
    Content map;
   
    ContentServiceProxy proxy = new ContentServiceProxy(userId, session);
    map = proxy.readMap(mapName);
    if (map == null) {
      throw new Exception("Error while getting map [" + mapName +"] from map catalogue");
    }


View Full Code Here


   *
   * @throws Exception the exception
   */
  public String getStandardHierarchy() throws Exception {

  ContentServiceProxy proxy = new ContentServiceProxy(userId, session);
  String ris = proxy.mapCatalogue( GET_STANDARD_HIERARCHY, null, null, null);
  if (ris == null)
      throw new Exception("Error while getting default hierarchy");
  if (ris.equalsIgnoreCase(ERROR_HIERARCHY_NOT_FOUND)) {
      throw new Exception("Default Hierarchy not found. ");
  }
View Full Code Here

   *
   * @throws Exception the exception
   */
  public List getMapNamesByFeature(String featureName) throws Exception {

  ContentServiceProxy proxy = new ContentServiceProxy(userId,session);
  String ris = proxy.mapCatalogue( GET_MAPS_BY_FEATURE, null, featureName, null);
  if (ris == null)
      throw new Exception("Error while reading maps about feature " + featureName);
  if (ris.equalsIgnoreCase(ERROR_FEATURE_NOT_FOUND)) {
      throw new Exception("Error while reading maps about feature " + featureName);
  }
View Full Code Here

   *
   * @throws Exception the exception
   */
  public List getFeatureNamesInMap(String mapName) throws Exception {

  ContentServiceProxy proxy = new ContentServiceProxy(userId,session);
  String ris = proxy.mapCatalogue( GET_FEATURES_IN_MAP, null, null, mapName);

  if (ris == null)
      throw new Exception("Error while reading features about map " + mapName);

  if (ris.startsWith(ERROR_FEATURE_NOT_FOUND)) {
View Full Code Here

   *
   * @throws Exception the exception
   */
  public String getMapUrl(String mapName) throws Exception {

  ContentServiceProxy proxy = new ContentServiceProxy(userId,session);
  String ris = proxy.mapCatalogue(GET_MAP_URL, null, null, mapName);

  if (ris == null)
      throw new Exception("Error while reading map url " + mapName);

  if (ris.startsWith(ERROR_FEATURE_NOT_FOUND)) {
View Full Code Here

   *
   * @throws Exception the exception
   */
  public List getAllMapNames() throws Exception {

  ContentServiceProxy proxy = new ContentServiceProxy(userId,session);
  String ris = proxy.mapCatalogue( GET_ALL_MAP_NAMES, null, null, null);

  if (ris == null)
      throw new Exception("Error while reading maps ");

  if (ris.equalsIgnoreCase(ERROR_MAP_NOT_FOUND)) {
View Full Code Here

   * @return the all feature names
   *
   * @throws Exception the exception
   */
  public List getAllFeatureNames() throws Exception {
  ContentServiceProxy proxy = new ContentServiceProxy(userId,session);
  String ris = proxy.mapCatalogue( GET_ALL_FEATURE_NAMES, null, null, null);
  if (ris == null)
      throw new Exception("Error while reading Features ");

  if (ris.equalsIgnoreCase(ERROR_FEATURE_NOT_FOUND)) {
      throw new Exception("Feature not found. ");
View Full Code Here

    return analysisStateRowData;
  }
     
  private ContentServiceProxy getContentServiceProxy() {
     if(contentProxy == null) {
       contentProxy = new ContentServiceProxy(getUserIdentifier(), getHttpSession());
     }    
     
     return contentProxy;
   }
View Full Code Here

    }
   
    private byte[] getDocumentXSL(String requestConnectionName,HttpSession session,IEngUserProfile profile,String documentId) {
      logger.debug("IN");

    ContentServiceProxy contentProxy = new ContentServiceProxy((String)profile.getUserUniqueIdentifier(),session);

    Content templateContent = contentProxy.readTemplate(documentId,new HashMap());
   
    InputStream is = null;
    byte[] byteContent = null;
    try {
      BASE64Decoder bASE64Decoder = new BASE64Decoder();
View Full Code Here

  }


  private ContentServiceProxy getContentServiceProxy() {
    if(contentProxy == null) {
      contentProxy = new ContentServiceProxy(userId, session);
    }    

    return contentProxy;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.proxy.ContentServiceProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.