Interface ItemManagerClient
-
- All Superinterfaces:
ManagerClient
- All Known Implementing Classes:
DefaultItemManager
public interface ItemManagerClient extends ManagerClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancanWriteInto(String id)StringchangeACL(String id, String user, org.gcube.common.storagehub.model.acls.AccessType accessType)IntegerchildrenCount(String id)Deprecated.IntegerchildrenCount(String id, boolean includeHidden)IntegerchildrenCount(String id, boolean includeHidden, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType)IntegerchildrenCount(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType)Deprecated.Stringcopy(String id, String destinationFolderId, String newFilename)StringcreateFolder(String parentId, String name, String description)Deprecated.StringcreateFolder(String parentId, String name, String description, boolean hidden)StringcreateFolder(String parentId, String name, String description, boolean hidden, String pluginName, org.gcube.common.storagehub.model.plugins.PluginParameters parameters)StringcreateGcubeItem(String parentId, org.gcube.common.storagehub.model.items.GCubeItem item)StringcreateURL(String parentId, String name, String description, URL url)voiddelete(String id)Deprecated.voiddelete(String id, boolean force)voiddeleteFileVersion(String id, String versionName)StreamDescriptordownload(String id, String... excludeNodes)StreamDescriptordownloadSpecificVersion(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.Itemget(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.ItemgetByRelativePath(String id, String path, String... excludeNodes)List<? extends org.gcube.common.storagehub.model.items.Item>getChildren(String id, boolean includeHidden, String... excludeNodes)List<? extends org.gcube.common.storagehub.model.items.Item>getChildren(String id, int start, int limit, boolean includeHidden, 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 includeHidden, 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 includeHidden, 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, String... excludeNodes)Deprecated.List<org.gcube.common.storagehub.model.service.Version>getFileVersions(String id)org.gcube.common.storagehub.model.types.FolderInfoTypegetFolderInfo(String id)URLgetPublickLink(String id)URLgetPublickLink(String id, String version)org.gcube.common.storagehub.model.items.ItemgetRootSharedFolder(String id)Stringmove(String id, String destinationFolderId)StringremoveAdmin(String id, String user)Stringrename(String id, String newName)StreamDescriptorresolvePublicLink(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 includeHidden, boolean excludeTrashed, String nameToMatch, String... excludeNodes)StringsetDescription(String id, String description)StringsetHidden(String id, Boolean value)StringsetMetadata(String id, org.gcube.common.storagehub.model.Metadata metadata)StringsetPublic(String id, boolean publish)StringshareFolder(String id, Set<String> users, org.gcube.common.storagehub.model.acls.AccessType accessType)StringunshareFolder(String id, Set<String> users)StringuploadArchive(InputStream stream, String parentId, String extractionFolderName)StringuploadArchive(InputStream stream, String parentId, String extractionFolderName, long contentLength)StringuploadFile(File file, String parentId, String fileName, String descriptionh)StringuploadFile(InputStream stream, String parentId, String fileName, String description)StringuploadFile(InputStream stream, String parentId, String fileName, String description, long size)StringuploadFile(URI uri, String parentId, String fileName, String description)-
Methods inherited from interface org.gcube.common.storagehub.client.proxies.ManagerClient
impersonate, register
-
-
-
-
Method Detail
-
getChildren
List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, boolean includeHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getChildren
List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, boolean includeHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getChildren
List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, int start, int limit, boolean includeHidden, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getChildren
List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, int start, int limit, boolean includeHidden, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getAnchestors
List<? extends org.gcube.common.storagehub.model.items.Item> getAnchestors(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
search
List<? extends org.gcube.common.storagehub.model.items.Item> search(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType, boolean includeHidden, boolean excludeTrashed, String nameToMatch, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
childrenCount
Integer childrenCount(String id, boolean includeHidden) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
childrenCount
Integer childrenCount(String id, boolean includeHidden, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
get
org.gcube.common.storagehub.model.items.Item get(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getByRelativePath
org.gcube.common.storagehub.model.items.Item getByRelativePath(String id, String path, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
download
StreamDescriptor download(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFile
String uploadFile(InputStream stream, String parentId, String fileName, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFile
String uploadFile(InputStream stream, String parentId, String fileName, String description, long size) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFile
String uploadFile(File file, String parentId, String fileName, String descriptionh) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFile
String uploadFile(URI uri, String parentId, String fileName, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createFolder
String createFolder(String parentId, String name, String description, boolean hidden) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createFolder
String createFolder(String parentId, String name, String description, boolean hidden, String pluginName, org.gcube.common.storagehub.model.plugins.PluginParameters parameters) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createURL
String createURL(String parentId, String name, String description, URL url) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createFolder
@Deprecated String createFolder(String parentId, String name, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getACL
List<org.gcube.common.storagehub.model.acls.ACL> getACL(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
changeACL
String changeACL(String id, String user, org.gcube.common.storagehub.model.acls.AccessType accessType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
removeAdmin
String removeAdmin(String id, String user) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
delete
@Deprecated void delete(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getPublickLink
URL getPublickLink(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getPublickLink
URL getPublickLink(String id, String version) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
findChildrenByNamePattern
List<? extends org.gcube.common.storagehub.model.items.Item> findChildrenByNamePattern(String id, String name, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getRootSharedFolder
org.gcube.common.storagehub.model.items.Item getRootSharedFolder(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
shareFolder
String shareFolder(String id, Set<String> users, org.gcube.common.storagehub.model.acls.AccessType accessType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
copy
String copy(String id, String destinationFolderId, String newFilename) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadArchive
String uploadArchive(InputStream stream, String parentId, String extractionFolderName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadArchive
String uploadArchive(InputStream stream, String parentId, String extractionFolderName, long contentLength) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
unshareFolder
String unshareFolder(String id, Set<String> users) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
move
String move(String id, String destinationFolderId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
rename
String rename(String id, String newName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getFileVersions
List<org.gcube.common.storagehub.model.service.Version> getFileVersions(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
downloadSpecificVersion
StreamDescriptor downloadSpecificVersion(String id, String version) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
deleteFileVersion
void deleteFileVersion(String id, String versionName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
setMetadata
String setMetadata(String id, org.gcube.common.storagehub.model.Metadata metadata) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
setHidden
String setHidden(String id, Boolean value) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
setDescription
String setDescription(String id, String description) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createGcubeItem
String createGcubeItem(String parentId, org.gcube.common.storagehub.model.items.GCubeItem item) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
resolvePublicLink
StreamDescriptor resolvePublicLink(String identifier) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getChildren
@Deprecated 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
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getChildren
@Deprecated List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id, String... excludeNodes) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
childrenCount
@Deprecated Integer childrenCount(String id, Class<? extends org.gcube.common.storagehub.model.items.Item> onlyOfType) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
childrenCount
@Deprecated Integer childrenCount(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
Deprecated.- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
delete
void delete(String id, boolean force) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
canWriteInto
boolean canWriteInto(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
setPublic
String setPublic(String id, boolean publish) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getFolderInfo
org.gcube.common.storagehub.model.types.FolderInfoType getFolderInfo(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException
- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
-