-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
2,953 additions
and
2,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
...a-common-data/src/main/java/org/roda/core/data/v2/generics/RepresentationTypeOptions.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 2 additions & 20 deletions
22
...common/roda-common-data/src/main/java/org/roda/core/data/v2/index/IndexedFileRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,21 @@ | ||
package org.roda.core.data.v2.index; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
public class IndexedFileRequest implements Serializable { | ||
public class IndexedFileRequest extends IndexedRepresentationRequest { | ||
@Serial | ||
private static final long serialVersionUID = -2001647419031311764L; | ||
|
||
private String aipId; | ||
private String representationId; | ||
private List<String> directoryPaths = new ArrayList<>(); | ||
private String fileId; | ||
|
||
public IndexedFileRequest() { | ||
} | ||
|
||
public String getAipId() { | ||
return aipId; | ||
} | ||
|
||
public void setAipId(String aipId) { | ||
this.aipId = aipId; | ||
} | ||
|
||
public String getRepresentationId() { | ||
return representationId; | ||
} | ||
|
||
public void setRepresentationId(String representationId) { | ||
this.representationId = representationId; | ||
// empty constructor | ||
} | ||
|
||
public List<String> getDirectoryPaths() { | ||
|
40 changes: 40 additions & 0 deletions
40
...a-common-data/src/main/java/org/roda/core/data/v2/index/IndexedRepresentationRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.roda.core.data.v2.index; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
public class IndexedRepresentationRequest implements Serializable { | ||
@Serial | ||
private static final long serialVersionUID = -345956922313791766L; | ||
|
||
private String aipId; | ||
private String representationId; | ||
|
||
public IndexedRepresentationRequest() { | ||
// empty constructor | ||
} | ||
|
||
public IndexedRepresentationRequest(String aipId, String representationId) { | ||
this.aipId = aipId; | ||
this.representationId = representationId; | ||
} | ||
|
||
public String getAipId() { | ||
return aipId; | ||
} | ||
|
||
public void setAipId(String aipId) { | ||
this.aipId = aipId; | ||
} | ||
|
||
public String getRepresentationId() { | ||
return representationId; | ||
} | ||
|
||
public void setRepresentationId(String representationId) { | ||
this.representationId = representationId; | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
roda-common/roda-common-data/src/main/java/org/roda/core/data/v2/index/SuggestRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package org.roda.core.data.v2.index; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* @author Miguel Guimarães <[email protected]> | ||
*/ | ||
public class SuggestRequest implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -4752301854207083738L; | ||
|
||
private String field; | ||
private String query; | ||
private boolean allowPartial; | ||
|
||
public SuggestRequest() { | ||
// empty constructor | ||
} | ||
|
||
public SuggestRequest(String field, String query, boolean allowPartial) { | ||
this.field = field; | ||
this.query = query; | ||
this.allowPartial = allowPartial; | ||
} | ||
|
||
public String getQuery() { | ||
return query; | ||
} | ||
|
||
public void setQuery(String query) { | ||
this.query = query; | ||
} | ||
|
||
public String getField() { | ||
return field; | ||
} | ||
|
||
public void setField(String field) { | ||
this.field = field; | ||
} | ||
|
||
public boolean isAllowPartial() { | ||
return allowPartial; | ||
} | ||
|
||
public void setAllowPartial(boolean allowPartial) { | ||
this.allowPartial = allowPartial; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...-common-data/src/main/java/org/roda/core/data/v2/ip/metadata/DescriptiveMetadataInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.roda.core.data.v2.ip.metadata; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* @author Carlos Afonso <[email protected]> | ||
*/ | ||
public class DescriptiveMetadataInfo implements Serializable { | ||
@Serial | ||
private static final long serialVersionUID = -9057023345058040380L; | ||
|
||
private String id; | ||
private String label; | ||
private boolean hasHistory; | ||
|
||
public DescriptiveMetadataInfo() { | ||
// empty constructor | ||
} | ||
|
||
public DescriptiveMetadataInfo(String id, String label, boolean hasHistory) { | ||
this.id = id; | ||
this.label = label; | ||
this.hasHistory = hasHistory; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getLabel() { | ||
return label; | ||
} | ||
|
||
public void setLabel(String label) { | ||
this.label = label; | ||
} | ||
|
||
public boolean hasHistory() { | ||
return hasHistory; | ||
} | ||
|
||
public void setHasHistory(boolean hasHistory) { | ||
this.hasHistory = hasHistory; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...common-data/src/main/java/org/roda/core/data/v2/ip/metadata/DescriptiveMetadataInfos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.roda.core.data.v2.ip.metadata; | ||
|
||
import java.io.Serial; | ||
import java.io.Serializable; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
/** | ||
* @author Carlos Afonso <[email protected]> | ||
*/ | ||
public class DescriptiveMetadataInfos implements Serializable { | ||
|
||
@Serial | ||
private static final long serialVersionUID = -4552881362783492103L; | ||
|
||
private List<DescriptiveMetadataInfo> descriptiveMetadataInfoList = new ArrayList<>(); | ||
|
||
public DescriptiveMetadataInfos() { | ||
// empty constructor | ||
} | ||
public DescriptiveMetadataInfos(List<DescriptiveMetadataInfo> descriptiveMetadataInfoList) { | ||
this.descriptiveMetadataInfoList = descriptiveMetadataInfoList; | ||
} | ||
|
||
|
||
public List<DescriptiveMetadataInfo> getDescriptiveMetadataInfoList() { | ||
return descriptiveMetadataInfoList; | ||
} | ||
|
||
public void setDescriptiveMetadataInfoList(List<DescriptiveMetadataInfo> descriptiveMetadataInfoList) { | ||
this.descriptiveMetadataInfoList = descriptiveMetadataInfoList; | ||
} | ||
|
||
public void addObject(DescriptiveMetadataInfo descriptiveMetadataInfo) { | ||
this.descriptiveMetadataInfoList.add(descriptiveMetadataInfo); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,25 @@ | |
*/ | ||
package org.roda.core.data.v2.ip.metadata; | ||
|
||
import java.io.Serial; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import jakarta.xml.bind.annotation.XmlElement; | ||
|
||
import org.roda.core.data.common.RodaConstants; | ||
import org.roda.core.data.v2.common.RODAObjectList; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import jakarta.xml.bind.annotation.XmlElement; | ||
|
||
/** | ||
* @author Hélder Silva <[email protected]> | ||
*/ | ||
@jakarta.xml.bind.annotation.XmlRootElement(name = RodaConstants.RODA_OBJECT_DESCRIPTIVE_METADATA_LIST) | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class DescriptiveMetadataList implements RODAObjectList<DescriptiveMetadata> { | ||
@Serial | ||
private static final long serialVersionUID = -2795788423413555545L; | ||
private List<DescriptiveMetadata> metadataList; | ||
|
||
|
Oops, something went wrong.