org.exoplatform.clouddrive.cmis
Class CMISUser

java.lang.Object
  extended by org.exoplatform.clouddrive.CloudUser
      extended by org.exoplatform.clouddrive.cmis.CMISUser

public class CMISUser
extends org.exoplatform.clouddrive.CloudUser

CMIS user.


Field Summary
protected  CMISAPI api
           
 
Fields inherited from class org.exoplatform.clouddrive.CloudUser
email, hashCode, id, provider, serviceName, username
 
Constructor Summary
CMISUser(String id, String username, String email, org.exoplatform.clouddrive.CloudProvider provider, CMISAPI api)
          An user in-memory POJO.
 
Method Summary
protected  CMISAPI api()
          Internal API.
 String createDriveTitle()
          
protected  String getPredefinedRepositoryName()
          Predefined name for this user CMIS repository or null if repository wasn't predefined in configuration or by administrator.
 CMISProvider getProvider()
          
 List<org.apache.chemistry.opencmis.client.api.Repository> getRepositories()
          Available CMIS repositories for this user.
 String getRepositoryId()
          Current user repository ID.
 String getRepositoryName()
          Current user repository name.
 String getServiceName()
          
 String getUserTitle()
          Current user title.
 void setRepositoryId(String repositoryId)
          Set current CMIS repository ID for operations of this user.
 
Methods inherited from class org.exoplatform.clouddrive.CloudUser
equals, getEmail, getId, getUsername, hashCode, setServiceName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

api

protected final CMISAPI api
Constructor Detail

CMISUser

public CMISUser(String id,
                String username,
                String email,
                org.exoplatform.clouddrive.CloudProvider provider,
                CMISAPI api)
An user in-memory POJO.

Parameters:
id - String
username - String
email - String
provider - CloudProvider
api - CMISAPI
Method Detail

api

protected CMISAPI api()
Internal API.

Returns:
CMISAPI instance authenticated for this user.

createDriveTitle

public String createDriveTitle()
                        throws javax.jcr.RepositoryException,
                               org.exoplatform.clouddrive.DriveRemovedException,
                               org.exoplatform.clouddrive.CloudDriveException

Overrides:
createDriveTitle in class org.exoplatform.clouddrive.CloudUser
Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.DriveRemovedException
org.exoplatform.clouddrive.CloudDriveException

getRepositoryId

public String getRepositoryId()
Current user repository ID.

Returns:
String user's repository ID

getRepositoryName

public String getRepositoryName()
Current user repository name.

Returns:
String user's repository name

getUserTitle

public String getUserTitle()
Current user title.

Returns:
String user name

getProvider

public CMISProvider getProvider()

Overrides:
getProvider in class org.exoplatform.clouddrive.CloudUser

getRepositories

public List<org.apache.chemistry.opencmis.client.api.Repository> getRepositories()
                                                                          throws org.exoplatform.clouddrive.CloudDriveAccessException,
                                                                                 CMISException
Available CMIS repositories for this user.

Returns:
List of repositories.
Throws:
org.exoplatform.clouddrive.CloudDriveAccessException
CMISException

setRepositoryId

public void setRepositoryId(String repositoryId)
                     throws CMISException,
                            org.exoplatform.clouddrive.RefreshAccessException
Set current CMIS repository ID for operations of this user.

Parameters:
repositoryId - String
Throws:
org.exoplatform.clouddrive.RefreshAccessException
CMISException

getServiceName

public String getServiceName()

Overrides:
getServiceName in class org.exoplatform.clouddrive.CloudUser

getPredefinedRepositoryName

protected String getPredefinedRepositoryName()
Predefined name for this user CMIS repository or null if repository wasn't predefined in configuration or by administrator.

Returns:
String


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