org.exoplatform.clouddrive.ecms
Class CloudDriveContext

java.lang.Object
  extended by org.exoplatform.clouddrive.ecms.CloudDriveContext

public class CloudDriveContext
extends Object

Initialize Cloud Drive support in portal request.
Created by The eXo Platform SAS.

Version:
$Id: CloudDriveContext.java 00000 Oct 22, 2012 pnedonosko $
Author:
Peter Nedonosko

Field Summary
protected static String JAVASCRIPT
           
protected static org.exoplatform.services.log.Log LOG
           
 
Method Summary
static void init(org.exoplatform.web.application.RequestContext requestContext, String workspace, String nodePath)
          Initialize request with Cloud Drive support for given JCR location and CloudProvider.
static boolean initConnected(org.exoplatform.web.application.RequestContext requestContext, javax.jcr.Node parent)
          Initialize already connected drives for a request and given JCR location.
static void showInfo(org.exoplatform.web.application.RequestContext requestContext, String title, String message)
          Show info notification to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASCRIPT

protected static final String JAVASCRIPT

LOG

protected static final org.exoplatform.services.log.Log LOG
Method Detail

init

public static void init(org.exoplatform.web.application.RequestContext requestContext,
                        String workspace,
                        String nodePath)
                 throws org.exoplatform.clouddrive.CloudDriveException
Initialize request with Cloud Drive support for given JCR location and CloudProvider.

Parameters:
requestContext - RequestContext
workspace - String
nodePath - String
Throws:
org.exoplatform.clouddrive.CloudDriveException - if cannot auth url from the provider

initConnected

public static boolean initConnected(org.exoplatform.web.application.RequestContext requestContext,
                                    javax.jcr.Node parent)
                             throws javax.jcr.RepositoryException,
                                    org.exoplatform.clouddrive.CloudDriveException
Initialize already connected drives for a request and given JCR location. This method assumes that request already initialized by #init(RequestContext, String, String, CloudProvider) method.

Parameters:
requestContext - RequestContext
parent - Node
Returns:
boolean true if nodes successfully initialized, false if nodes already initialized
Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException
See Also:
#init(RequestContext, String, String)}, #init(RequestContext, String, String, CloudProvider)}

showInfo

public static void showInfo(org.exoplatform.web.application.RequestContext requestContext,
                            String title,
                            String message)
                     throws javax.jcr.RepositoryException,
                            org.exoplatform.clouddrive.CloudDriveException
Show info notification to the user.

Parameters:
title - String
message - String
Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.