Package it.eng.spagobi.sdk.exceptions

Examples of it.eng.spagobi.sdk.exceptions.NotAllowedOperationException


    try {
      IEngUserProfile profile = getUserProfile();
      UserProfile userProfile = (UserProfile) profile;
        if (!userProfile.isAbleToExecuteAction(userFunctionality)) {
          logger.error("Current user [" + userProfile.getUserId() + "] has no rights for " + userFunctionality + " functionality.");
          NotAllowedOperationException e = new NotAllowedOperationException();
          e.setFaultString(errorMessage);
          throw e;
        } else {
          logger.debug("Current user [" + userProfile.getUserId() + "] has rights for " + userFunctionality + " functionality.");
        }
    } finally {
View Full Code Here


    Integer toReturn = null;
    try {
      IEngUserProfile profile = getUserProfile();
      // if user cannot develop in the specified folder, he cannot save documents inside it
      if (!ObjectsAccessVerifier.canDev(functionalityId, profile)) {
        NotAllowedOperationException e = new NotAllowedOperationException();
        e.setFaultString("User cannot save new documents in the specified folder since he hasn't development permission.");
        throw e;
      }
      BIObject obj = new SDKObjectsConverter().fromSDKDocumentToBIObject(document);
      String userId = ((UserProfile) profile).getUserId().toString();
      logger.debug("Current user id is [" + userId + "]");
View Full Code Here

    logger.debug("IN: documentId = [" + documentId + "]; template file name = [" + sdkTemplate.getFileName() + "]");
    try {
      IEngUserProfile profile = getUserProfile();
      // if user cannot develop the specified document, he cannot upload templates on it
      if (!ObjectsAccessVerifier.canDevBIObject(documentId, profile)) {
        NotAllowedOperationException e = new NotAllowedOperationException();
        e.setFaultString("User cannot upload templates on specified document since he cannot develop it.");
        throw e;
      }
      ObjTemplate objTemplate = new SDKObjectsConverter().fromSDKTemplateToObjTemplate(sdkTemplate);
      objTemplate.setBiobjId(documentId);
      objTemplate.setActive(new Boolean(true));
View Full Code Here

    SDKTemplate toReturn = null;
    try {
      IEngUserProfile profile = getUserProfile();
      // if user cannot develop the specified document, he cannot upload templates on it
      if (!ObjectsAccessVerifier.canDevBIObject(documentId, profile)) {
        NotAllowedOperationException e = new NotAllowedOperationException();
        e.setFaultString("User cannot download templates of specified document since he cannot develop it.");
        throw e;
      }
      // retrieves template
      IObjTemplateDAO tempdao = DAOFactory.getObjTemplateDAO();
      ObjTemplate temp = tempdao.getBIObjectActiveTemplate(documentId);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.sdk.exceptions.NotAllowedOperationException

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.