Task #19087 provide a getItem (without getRoot inside) for
Workspace-Explorer-App. Updated pom version at 0.7.0
This commit is contained in:
parent
284bdc20c8
commit
a723da4bfb
19
.classpath
19
.classpath
|
@ -8,9 +8,9 @@
|
|||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
|
||||
<attributes>
|
||||
<attribute name="test" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
|
||||
|
@ -24,5 +24,22 @@
|
|||
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="target/generated-sources/annotations">
|
||||
<attributes>
|
||||
<attribute name="ignore_optional_problems" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="m2e-apt" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
|
||||
<attributes>
|
||||
<attribute name="ignore_optional_problems" value="true"/>
|
||||
<attribute name="test" value="true"/>
|
||||
<attribute name="optional" value="true"/>
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
<attribute name="m2e-apt" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
@ -3,7 +3,10 @@ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
|||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
|
||||
org.eclipse.jdt.core.compiler.processAnnotations=enabled
|
||||
org.eclipse.jdt.core.compiler.release=disabled
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset
|
||||
component="org.gcube.common.storagehubwrapper.0-7-0" date="2020-04-16">
|
||||
<Change>[Task #19087] provide a getItem (without getRoot inside) for Workspace-Explorer-App
|
||||
</Change>
|
||||
</Changeset>
|
||||
<Changeset
|
||||
component="org.gcube.common.storagehubwrapper.0-6-2" date="2020-03-11">
|
||||
<Change>[Feature #18174] Moved to new search facility provided by SHUB</Change>
|
||||
<Change>[Feature #18174] Moved to new search facility provided by SHUB
|
||||
</Change>
|
||||
</Changeset>
|
||||
<Changeset
|
||||
component="org.gcube.common.storagehubwrapper.0-6-1" date="2019-12-19">
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
</parent>
|
||||
<groupId>org.gcube.common</groupId>
|
||||
<artifactId>storagehub-client-wrapper</artifactId>
|
||||
<version>0.6.2</version>
|
||||
<version>0.7.0-SNAPSHOT</version>
|
||||
<name>storagehub-client-wrapper</name>
|
||||
<description>This is a wrapper of storagehub-client library. It allows to interact with storagehub in a simplified way by exposing several utilities. Moreover, It exposes by another inteface java beans as defined in (the old) HL interfaces</description>
|
||||
<scm>
|
||||
|
|
|
@ -496,6 +496,42 @@ public final class WorkspaceStorageHubClientService implements Workspace{
|
|||
setIsRoot((org.gcube.common.storagehubwrapper.shared.tohl.impl.WorkspaceItem) workspaceItem);
|
||||
return workspaceItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the item. This call is the same of {@link WorkspaceStorageHubClientService#getItem(String, boolean, boolean, boolean)}
|
||||
* without loading the root (to check if an item is root or not)
|
||||
*
|
||||
* @param itemId the item id
|
||||
* @param withAccounting the with accounting
|
||||
* @param withFileDetails the with file details
|
||||
* @param withMapProperties the with map properties
|
||||
* @return the item
|
||||
* @throws ItemNotFoundException the item not found exception
|
||||
* @throws InternalErrorException the internal error exception
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
/* (non-Javadoc)
|
||||
* @see org.gcube.portal.storagehubwrapper.server.tohl.Workspace#getItem(java.lang.String, boolean, boolean, boolean)
|
||||
*/
|
||||
@Override
|
||||
public WorkspaceItem getItemForExplorer(
|
||||
String itemId, boolean withAccounting, boolean withFileDetails,
|
||||
boolean withMapProperties)
|
||||
throws ItemNotFoundException, InternalErrorException, Exception {
|
||||
|
||||
LOGGER.debug("called get Item");
|
||||
Validate.notNull(itemId,"The input itemId is null");
|
||||
Item item;
|
||||
try {
|
||||
item = storageHubClientService.getItem(itemId, withAccounting, withMapProperties);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.error("Error during get item with id: "+itemId,e);
|
||||
throw new InternalErrorException(e.getMessage());
|
||||
}
|
||||
WorkspaceItem workspaceItem = HLMapper.toWorkspaceItem(item, withAccounting, withFileDetails, withMapProperties);
|
||||
return workspaceItem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -513,6 +513,21 @@ public interface Workspace{
|
|||
*/
|
||||
List<WorkspaceItem> search(String text, String folderId)
|
||||
throws InternalErrorException, ItemNotFoundException, WrongItemTypeException;
|
||||
|
||||
/**
|
||||
* Gets the item.
|
||||
*
|
||||
* @param itemId the item id
|
||||
* @param withAccounting the with accounting
|
||||
* @param withFileDetails the with file details
|
||||
* @param withMapProperties the with map properties
|
||||
* @return the item
|
||||
* @throws ItemNotFoundException the item not found exception
|
||||
* @throws InternalErrorException the internal error exception
|
||||
* @throws Exception the exception
|
||||
*/
|
||||
WorkspaceItem getItemForExplorer(String itemId, boolean withAccounting, boolean withFileDetails,
|
||||
boolean withMapProperties) throws ItemNotFoundException, InternalErrorException, Exception;
|
||||
|
||||
/*
|
||||
*
|
||||
|
@ -808,8 +823,4 @@ public interface Workspace{
|
|||
throws Exception;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue