public interface ManageDriveService
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLABORATION_DRIVE |
| Modifier and Type | Method and Description |
|---|---|
void |
addDrive(String name,
String workspace,
String permissions,
String homePath,
String views,
String icon,
boolean viewReferences,
boolean viewNonDocument,
boolean viewSideBar,
boolean showHiddenNode,
String allowCreateFolder,
String allowNodeTypesOnTree)
Register a new drive to workspace or update if the drive is existing
|
void |
clearAllDrivesCache()
Clear all drives cache
|
void |
clearGroupCache(String userId)
Clear group drives cache
|
List<DriveData> |
getAllDriveByPermission(String permission)
Return the list of DriveData
This method will look up in all workspaces of repository to find DriveData with
specified permission
|
List<DriveData> |
getAllDrives()
This method will look up in all workspaces of current repository to find DriveData
|
List<DriveData> |
getAllDrives(boolean withVirtualDrives)
This method will look up in all workspaces of current repository to find DriveData
|
Set<String> |
getDeletedDriveNames()
Get deleted drive names.
|
DriveData |
getDriveByName(String driveName)
Return an DriveData Object
|
List<DriveData> |
getDriveByUserRoles(String userId,
List<String> roles)
Get all drives by user roles
|
String |
getDriveOfDefaultWorkspace()
Get Drive name which point to root folder of default workspace
|
List<DriveData> |
getGroupDrives(String userId,
List<String> userRoles)
Get all group drives
|
DriveData |
getGroupDriveTemplate()
Get the Groups drive
|
List<DriveData> |
getMainDrives(String userId,
List<String> userRoles)
Get all main drives.
|
List<DriveData> |
getPersonalDrives(String userId)
Get all personal drives.
|
void |
init()
Register all drive plugins
|
boolean |
isUsedView(String viewName)
This method will check to make sure the view is not in used before remove this view
|
boolean |
isVitualDrive(String driveName)
Check if a drive is vitual(Group Drive Template)
|
boolean |
newRoleUpdated()
Inform when have new role added
|
void |
removeDrive(String driveName)
Remove drive with specified drive name and repository
|
void |
setNewRoleUpdated(boolean newRoleUpdated)
Set the status of new added role
|
static final String COLLABORATION_DRIVE
String getDriveOfDefaultWorkspace() throws Exception
Exceptionvoid addDrive(String name, String workspace, String permissions, String homePath, String views, String icon, boolean viewReferences, boolean viewNonDocument, boolean viewSideBar, boolean showHiddenNode, String allowCreateFolder, String allowNodeTypesOnTree) throws Exception
name - drive nameworkspace - the workspace name where will store the drivepermissions - specify who can access to this drivehomePath - specify the location of driveviews - include all views can see in driveicon - the drive icon which can see in drive browserviewReferences - the boolean to set default for drive can view
references node or notviewNonDocument - the boolean to set default for drive can view non
document node or notviewSideBar - the boolean to set default for drive can view side bar
or notshowHiddenNode - the boolean to set default for drive can see hidden
node or notallowCreateFolder - the string to specify which type of folder can add
in the driveallowNodeTypesOnTree - ExceptionDriveData getDriveByName(String driveName) throws Exception
List<DriveData> getAllDriveByPermission(String permission) throws Exception
void removeDrive(String driveName) throws Exception
driveName - drive nameExceptionList<DriveData> getAllDrives(boolean withVirtualDrives) throws Exception
withVirtualDrives - true: include Virtual Drives, false: not include Virtual DrivesExceptionList<DriveData> getAllDrives() throws Exception
Exceptionboolean isUsedView(String viewName) throws Exception
viewName - view nameExceptionList<DriveData> getDriveByUserRoles(String userId, List<String> roles) throws Exception
userId - User nameroles - Roles of userExceptionList<DriveData> getMainDrives(String userId, List<String> userRoles) throws Exception
userId - Name of useruserRoles - Roles of userExceptionList<DriveData> getPersonalDrives(String userId) throws Exception
userId - Name of userExceptionList<DriveData> getGroupDrives(String userId, List<String> userRoles) throws Exception
userId - Name of useruserRoles - Roles of userExceptionDriveData getGroupDriveTemplate()
boolean isVitualDrive(String driveName)
driveName - the string contain the drive namevoid clearAllDrivesCache()
void clearGroupCache(String userId)
userId - User name of current userboolean newRoleUpdated()
void setNewRoleUpdated(boolean newRoleUpdated)
newRoleUpdated - Copyright © 2003–2019 eXo Platform SAS. All rights reserved.