public class DefaultItemManager extends Object implements ItemManagerClient
| Constructor and Description |
|---|
DefaultItemManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWriteInto(String id) |
String |
changeACL(String id,
String user,
org.gcube.common.storagehub.model.acls.AccessType accessType) |
Integer |
childrenCount(String id)
Deprecated.
|
Integer |
childrenCount(String id,
boolean showHidden) |
Integer |
childrenCount(String id,
boolean showHidden,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType) |
Integer |
childrenCount(String id,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType)
Deprecated.
|
String |
copy(String id,
String destinationFolderId,
String newFilename) |
String |
createFolder(String parentId,
String name,
String description)
Deprecated.
|
String |
createFolder(String parentId,
String name,
String description,
boolean hidden) |
String |
createGcubeItem(String parentId,
org.gcube.common.storagehub.model.items.GCubeItem item) |
String |
createURL(String parentId,
String name,
String description,
URL url) |
void |
delete(String id)
Deprecated.
|
void |
delete(String id,
boolean force) |
StreamDescriptor |
download(String id,
String... excludeNodes) |
StreamDescriptor |
downloadSpecificVersion(String id,
String version) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
findChildrenByNamePattern(String id,
String name,
String... excludeNodes) |
org.gcube.common.storagehub.model.items.Item |
get(String id,
String... excludeNodes) |
List<org.gcube.common.storagehub.model.acls.ACL> |
getACL(String id) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getAnchestors(String id,
String... excludeNodes) |
org.gcube.common.storagehub.model.items.Item |
getByRelativePath(String id,
String path,
String... excludeNodes) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
boolean showHidden,
String... excludeNodes) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
boolean showHidden,
String... excludeNodes) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
String... excludeNodes)
Deprecated.
|
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
int start,
int limit,
boolean showHidden,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
String... excludeNodes) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
int start,
int limit,
boolean showHidden,
String... excludeNodes) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id,
String... excludeNodes)
Deprecated.
|
List<org.gcube.common.storagehub.model.service.Version> |
getFileVersions(String id) |
URL |
getPublickLink(String id) |
URL |
getPublickLink(String id,
String version) |
org.gcube.common.storagehub.model.items.Item |
getRootSharedFolder(String id) |
String |
move(String id,
String destinationFolderId) |
String |
removeAdmin(String id,
String user) |
String |
rename(String id,
String newName) |
StreamDescriptor |
resolvePublicLink(String identifier) |
List<? extends org.gcube.common.storagehub.model.items.Item> |
search(String id,
Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType,
boolean showHidden,
boolean excludeTrashed,
String nameToMatch,
String... excludeNodes) |
String |
setMetadata(String id,
org.gcube.common.storagehub.model.Metadata metadata) |
String |
setPublic(String id,
boolean publish) |
String |
shareFolder(String id,
Set<String> users,
org.gcube.common.storagehub.model.acls.AccessType accessType) |
String |
unshareFolder(String id,
Set<String> users) |
String |
uploadArchive(InputStream stream,
String parentId,
String extractionFolderName) |
String |
uploadFile(InputStream stream,
String parentId,
String fileName,
String description) |
public DefaultItemManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> config)
public StreamDescriptor resolvePublicLink(String identifier) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
resolvePublicLink in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, boolean showHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, int start, int limit, boolean showHidden, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, int start, int limit, boolean showHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, boolean showHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getChildren in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> search(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, boolean showHidden, boolean excludeTrashed, String nameToMatch, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
search in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public Integer childrenCount(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
childrenCount in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic Integer childrenCount(String id, boolean showHidden, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
childrenCount in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public Integer childrenCount(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
childrenCount in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic Integer childrenCount(String id, boolean showHidden) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
childrenCount in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic StreamDescriptor download(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
download in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic StreamDescriptor downloadSpecificVersion(String id, String version) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
downloadSpecificVersion in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.service.Version> getFileVersions(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getFileVersions in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.model.items.Item get(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
get in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.model.items.Item getByRelativePath(String id, String path, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getByRelativePath in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic org.gcube.common.storagehub.model.items.Item getRootSharedFolder(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getRootSharedFolder in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic URL getPublickLink(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getPublickLink in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic URL getPublickLink(String id, String version) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getPublickLink in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> findChildrenByNamePattern(String id, String name, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
findChildrenByNamePattern in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String uploadFile(InputStream stream, String parentId, String fileName, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
uploadFile in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String uploadArchive(InputStream stream, String parentId, String extractionFolderName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
uploadArchive in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public String createFolder(String parentId, String name, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
createFolder in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String createFolder(String parentId, String name, String description, boolean hidden) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
createFolder in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String createURL(String parentId, String name, String description, URL url) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
createURL in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String createGcubeItem(String parentId, org.gcube.common.storagehub.model.items.GCubeItem item) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
createGcubeItem in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String shareFolder(String id, Set<String> users, org.gcube.common.storagehub.model.acls.AccessType accessType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
shareFolder in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String unshareFolder(String id, Set<String> users) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
unshareFolder in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubException@Deprecated public void delete(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
delete in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic void delete(String id, boolean force) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
delete in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getAnchestors(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getAnchestors in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic List<org.gcube.common.storagehub.model.acls.ACL> getACL(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
getACL in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic boolean canWriteInto(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
canWriteInto in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String changeACL(String id, String user, org.gcube.common.storagehub.model.acls.AccessType accessType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
changeACL in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String removeAdmin(String id, String user) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
removeAdmin in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String copy(String id, String destinationFolderId, String newFilename) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
copy in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String setPublic(String id, boolean publish) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
setPublic in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String move(String id, String destinationFolderId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
move in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String rename(String id, String newName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
rename in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionpublic String setMetadata(String id, org.gcube.common.storagehub.model.Metadata metadata) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
setMetadata in interface ItemManagerClientorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionCopyright © 2020. All Rights Reserved.