added the getConfiguration method

This commit is contained in:
Francesco Mangiacrapa 2021-05-14 12:32:54 +02:00
parent 60a2e10117
commit 0c317804ed
1 changed files with 11 additions and 11 deletions

View File

@ -357,7 +357,8 @@ public class WorkspaceThreddsSynchronize
* @throws WorkspaceNotSynchedException the workspace not synched exception
* @throws Exception the exception
*
* NB. it is time consuming due to it calls the SHUB
* NB. it is time consuming due to it
* calls the SHUB
*/
@Override
public ThSyncFolderDescriptor getConfiguration(String itemId)
@ -374,16 +375,17 @@ public class WorkspaceThreddsSynchronize
}
/**
* Gets the element info.
*
* @param itemProperties the item properties read from SHUB by accessing to Metadata.Map() of a item
* @param itemProperties the item properties read from SHUB by accessing to
* Metadata.Map() of a item
* @param itemType the item type
* @return the element info
* @throws WorkspaceNotSynchedException the workspace not synched exception
*/
public ThSyncElementInfo getElementInfo(Map<String, Object> itemProperties, ContainerType itemType) throws WorkspaceNotSynchedException {
public ThSyncElementInfo getElementInfo(Map<String, Object> itemProperties, ContainerType itemType)
throws WorkspaceNotSynchedException {
if (itemProperties == null || itemProperties.isEmpty())
return null;
@ -393,7 +395,6 @@ public class WorkspaceThreddsSynchronize
}
/**
* Checks if is item synched.
*
@ -401,9 +402,8 @@ public class WorkspaceThreddsSynchronize
* @param itemProperties the item properties
* @param itemType the item type
* @return true, if is item synched
* @throws Exception the exception
*/
public boolean isItemSynched(String itemId, Map<String, Object> itemProperties, ContainerType itemType) throws Exception {
public boolean isItemSynched(String itemId, Map<String, Object> itemProperties, ContainerType itemType) {
ThSyncElementInfo sinInfo = null;
try {