Examples of GoogleDocsException


Examples of org.exoplatform.googledocs.exception.GoogleDocsException

               
        // share the document with the contributor
        String userId = ConversationState.getCurrent().getIdentity().getUserId();
        User user = organizationService.getUserHandler().findUserByName(userId);
        if(user == null) {
          throw new GoogleDocsException("UIActionBar.msg.googledocs.user-not-found", "User " + userId + " not found");
        }
        String userEmail = user.getEmail();
        if(userEmail == null || userEmail.isEmpty()) {
          throw new GoogleDocsException("UIActionBar.msg.googledocs.no-user-email", "Email of user " + userId + " is empty");
        }
        googleDriveService.shareFileWith(googleDriveFileID, userEmail);
       
        event.getRequestContext().getJavascriptManager().addCustomizedOnLoadScript("ajaxRedirect('" + googleDriveFile.getAlternateLink() + "');");       
         
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.