Task #16688

Task #12909: Workspace to StorageHub enhancement

Evaluate list of methods to add/migrate from HL to SHUB

Added by Francesco Mangiacrapa about 1 month ago. Updated about 1 month ago.

Status:NewStart date:May 14, 2019
Priority:NormalDue date:
Assignee:Lucio Lelii% Done:

0%

Category:common
Sprint:Workspace to StorageHub
Milestones:
Duration:

Description

Evaluate which of the following methods have to be migrated from HL to SHUB:

externalFile.removeVersion("version")

workspaceFolder.setPublic("boolean")

gCubeItem.getProperties().addProperty("key", "value");

workspace.getTotalItems();

workspace.getDiskUsage();

List<AccountingEntry> accoutings = workspaceItem.getAccounting();

List<AccountingEntryRead> readers = workspaceItem.getReaders();

workspaceItem.getLastModificationTime();

workspaceItem.getCreationTime();

workspace.getUrlWebDav();

workspace.getHome().listScopes() ???

ExternalUrl ext = workspace.createExternalUrl(name, description, url, parentId);

#### SMART FOLDER?

WorkspaceSmartFolder wsSmartFolder = workspace.getSmartFolder(folderId);

List<? extends SearchItem> searchItems = wsSmartFolder.getSearchItems();

listWorkspaceFolder = workspace.getAllSmartFolders(); // create

WorkspaceSmartFolder wsSmartFolder = workspace.createSmartFolder(name, description, query, parentId);

Some of the above methods may already be implemented in SHUB with a different name/interface to access them.


Related issues

Related to gCube - Feature #12499: StorageHub - Support the update of all components New Sep 17, 2018

History

#1 Updated by Giancarlo Panichi about 1 month ago

We need to have methods that allow us to add and remove administrators ACL on folder. So, some functions like:

addAdministratorsByFolderId (String itemId, List <String> logins)
removeAdministratorsByFolderId (String itemId, List <String> logins)

In addition, a method is needed that gives the possibility of knowing through SH which groups a user belongs to in order to correctly manage the ACLs.

getUserGroups(login)

ACL example:

{
  "acls": [
    {
      "pricipal": "lucio.lelii",
      "accessTypes": [
        "ADMINISTRATOR"
      ]
    },
    {
      "pricipal": "gcube-devNext-NextNext",
      "accessTypes": [
        "WRITE_OWNER"
      ]
    }
  ]
}

#2 Updated by Giancarlo Panichi about 1 month ago

  • Related to Feature #12499: StorageHub - Support the update of all components added

Also available in: Atom PDF