ACS-1631 : Storage classes - REST api - POST & GET /nodes/{nodeId}/children (#540)

This commit is contained in:
Denis Ungureanu
2021-06-30 14:24:35 +03:00
committed by Andrea Ligios
parent cf14112626
commit 870a9ee4fd
11 changed files with 314 additions and 66 deletions

View File

@@ -63,7 +63,20 @@ public class ContentContext implements Serializable
this.existingContentReader = existingContentReader;
this.contentUrl = contentUrl;
}
/**
* Construct the instance with the content URL.
*
* @param existingContentReader content with which to seed the new writer - may be <tt>null</tt>
* @param contentUrl the content URL - may be <tt>null</tt>
* @param storageClasses the storage classes specific to the provided content URL - may be <tt>null</tt>
*/
public ContentContext(ContentReader existingContentReader, String contentUrl, Set<String> storageClasses)
{
this(existingContentReader, contentUrl);
this.storageClasses = storageClasses;
}
@Override
public String toString()
{

View File

@@ -37,6 +37,11 @@ import java.util.HashSet;
*/
public class StorageClassSet extends HashSet<String>
{
public StorageClassSet()
{
super();
}
public StorageClassSet(String... storageClasses)
{
super();