Examples of SDKDocument


Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

 
  public void testExecuteDocument()throws Exception {


      // opening a session into SpagoBI
      SDKDocument doc=new SDKDocument();
     
      doc.setLabel("ElencoImpiegati");
      doc.setName("ElencoImpiegati");
      doc.setDescription("ElencoImpiegati");
      doc.setId(documentId);
      doc.setState("REL");
      doc.setType("REPORT");
      doc.setEngineId(engineTypeId);
     
     
      SDKDocumentParameter par=new SDKDocumentParameter();
      par.setLabel("Dipartimento");
      par.setUrlName("department");
View Full Code Here

Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

    logger.debug("OUT");
    return parameters;
  }

  public SDKDocument[] getDocumentsAsList(String type, String state, String folderPath) {
    SDKDocument documents[] = null;
    logger.debug("IN");
    try {
      IEngUserProfile profile = getUserProfile();
      List list = DAOFactory.getBIObjectDAO().loadBIObjects(type, state, folderPath);
      List toReturn = new ArrayList();
      if(list != null) {
        for(Iterator it = list.iterator(); it.hasNext();) {
          BIObject obj = (BIObject)it.next();
          if(ObjectsAccessVerifier.canSee(obj, profile)) {
            SDKDocument aDoc = new SDKObjectsConverter().fromBIObjectToSDKDocument(obj);
            toReturn.add(aDoc);
          }
        }
      }
      documents = new SDKDocument[toReturn.size()];
View Full Code Here

Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

    List visibleDocumentsList = new ArrayList();
    if (containedBIObjects != null && containedBIObjects.size() > 0) {
      for (Iterator it = containedBIObjects.iterator(); it.hasNext();) {
        BIObject obj = (BIObject) it.next();
        if (ObjectsAccessVerifier.checkProfileVisibility(obj, profile)) {
          SDKDocument aDoc = new SDKObjectsConverter().fromBIObjectToSDKDocument(obj);
          visibleDocumentsList.add(aDoc);
        }
      }
    }
    SDKDocument[] containedDocuments = new SDKDocument[visibleDocumentsList.size()];
View Full Code Here

Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

    logger.debug("OUT");
    return toReturn;
  }

  public SDKDocument getDocumentById(Integer id) {
    SDKDocument toReturn = null;
    logger.debug("IN: document in input = " + id);
    try {
      super.checkUserPermissionForFunctionality(SpagoBIConstants.DOCUMENT_MANAGEMENT, "User cannot see documents congifuration.");
      if (id == null) {
        logger.warn("Document identifier in input is null!");
View Full Code Here

Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

    }
    return toReturn;
  }

  public SDKDocument getDocumentByLabel(String label) {
    SDKDocument toReturn = null;
    logger.debug("IN: document in input = " + label);
    try {
      super.checkUserPermissionForFunctionality(SpagoBIConstants.DOCUMENT_MANAGEMENT, "User cannot see documents congifuration.");
      if (label == null) {
        logger.warn("Document label in input is null!");
View Full Code Here

Examples of it.eng.spagobi.sdk.documents.bo.SDKDocument

    logger.debug("IN");
    if (obj == null) {
      logger.warn("BIObject in input is null!!");
      return null;
    }
    SDKDocument aDoc = new SDKDocument();
    aDoc.setId(obj.getId());
    aDoc.setLabel(obj.getLabel());
    aDoc.setName(obj.getName());
    aDoc.setDescription(obj.getDescription());
    aDoc.setType(obj.getBiObjectTypeCode());
    aDoc.setState(obj.getStateCode());
    Engine engine = obj.getEngine();
    if (engine != null) {
      aDoc.setEngineId(engine.getId());
    }
    Integer dataSetId = obj.getDataSetId();
    if (dataSetId != null) {
      aDoc.setDataSetId(dataSetId);
    }
    Integer dataSourceId = obj.getDataSourceId();
    if (dataSourceId != null) {
      aDoc.setDataSourceId(dataSourceId);
    }
    logger.debug("OUT");
    return aDoc;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.