Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRYD-1575: Rename repatriationclaim to repatriationrequest #429

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/JaxRsServiceProvider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
<!-- new claim as of 8.1.0 -->
<dependency>
<groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.repatriationclaim.service</artifactId>
<artifactId>org.collectionspace.services.repatriationrequest.service</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
import org.collectionspace.services.index.IndexResource;
import org.collectionspace.services.loanin.LoaninResource;
import org.collectionspace.services.loanout.LoanoutResource;
import org.collectionspace.services.repatriationclaim.RepatriationClaimResource;
import org.collectionspace.services.repatriationrequest.RepatriationRequestResource;
import org.collectionspace.services.nagprainventory.NagpraInventoryResource;
import org.collectionspace.services.summarydocumentation.SummaryDocumentationResource;
import org.collectionspace.services.transport.TransportResource;
Expand Down Expand Up @@ -165,7 +165,7 @@ public CollectionSpaceJaxRsApplication() {
addResourceToMapAndSingletons(new PropagationResource());
addResourceToMapAndSingletons(new PottagResource());
addResourceToMapAndSingletons(new ClaimResource());
addResourceToMapAndSingletons(new RepatriationClaimResource());
addResourceToMapAndSingletons(new RepatriationRequestResource());
addResourceToMapAndSingletons(new ReportResource());
addResourceToMapAndSingletons(new PublicItemResource());
addResourceToMapAndSingletons(new TransportResource());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1306,3 +1306,39 @@ INSERT INTO id_generators
SELECT csid
FROM id_generators
);

-- REPATRIATION_REQUEST_NUMBER

INSERT INTO id_generators
(csid, displayname, description, priority, last_generated_id, id_generator_state)
SELECT
'7f6e2d67-b95a-4a0c-841c-5a00a9cd1db0',
'Repatriation Request Number',
'Identifies a repatriation request document.',
'9',
'',
'<org.collectionspace.services.id.SettableIDGenerator>
<parts>
<org.collectionspace.services.id.StringIDGeneratorPart>
<initialValue>RR</initialValue>
<currentValue>RR</currentValue>
</org.collectionspace.services.id.StringIDGeneratorPart>
<org.collectionspace.services.id.YearIDGeneratorPart>
<currentValue></currentValue>
</org.collectionspace.services.id.YearIDGeneratorPart>
<org.collectionspace.services.id.StringIDGeneratorPart>
<initialValue>.</initialValue>
<currentValue>.</currentValue>
</org.collectionspace.services.id.StringIDGeneratorPart>
<org.collectionspace.services.id.NumericIDGeneratorPart>
<maxLength>6</maxLength>
<initialValue>1</initialValue>
<currentValue>-1</currentValue>
</org.collectionspace.services.id.NumericIDGeneratorPart>
</parts>
</org.collectionspace.services.id.SettableIDGenerator>'
WHERE '7f6e2d67-b95a-4a0c-841c-5a00a9cd1db0' NOT IN
(
SELECT csid
FROM id_generators
);
2 changes: 1 addition & 1 deletion services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<module>publicitem</module>
<module>iterationreport</module>
<module>chronology</module>
<module>repatriationclaim</module>
<module>repatriationrequest</module>
<module>nagprainventory</module>
<module>summarydocumentation</module>
<module>heldintrust</module>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<project name="repatriationclaim" default="package" basedir=".">
<project name="repatriationrequest" default="package" basedir=".">
<description>
repatriationclaim service
repatriationrequest service
</description>
<!-- set global properties for this build -->
<property name="services.trunk" value="../.." />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.repatriationclaim</artifactId>
<artifactId>org.collectionspace.services.repatriationrequest</artifactId>
<version>${revision}</version>
</parent>

<modelVersion>4.0.0</modelVersion>
<artifactId>org.collectionspace.services.repatriationclaim.client</artifactId>
<name>services.repatriationclaim.client</name>
<artifactId>org.collectionspace.services.repatriationrequest.client</artifactId>
<name>services.repatriationrequest.client</name>

<dependencies>
<!-- CollectionSpace dependencies -->
Expand All @@ -21,7 +21,7 @@
</dependency>
<dependency>
<groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.repatriationclaim.jaxb</artifactId>
<artifactId>org.collectionspace.services.repatriationrequest.jaxb</artifactId>
<version>${project.version}</version>
</dependency>

Expand Down Expand Up @@ -56,6 +56,6 @@
</dependencies>

<build>
<finalName>collectionspace-services-repatriationclaim-client</finalName>
<finalName>collectionspace-services-repatriationrequest-client</finalName>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
*/
package org.collectionspace.services.client;

import org.collectionspace.services.repatriationclaim.RepatriationClaimsCommon;
import org.collectionspace.services.repatriationrequest.RepatriationRequestsCommon;

/**
* RepatriationClaimClient.java
* RepatriationRequestClient.java
*/
public class RepatriationClaimClient extends AbstractCommonListPoxServiceClientImpl<RepatriationClaimProxy, RepatriationClaimsCommon> {
public class RepatriationRequestClient extends AbstractCommonListPoxServiceClientImpl<RepatriationRequestProxy, RepatriationRequestsCommon> {

public static final String SERVICE_NAME = "repatriationclaims";
public static final String SERVICE_NAME = "repatriationrequests";
public static final String SERVICE_PATH_COMPONENT = SERVICE_NAME;
public static final String SERVICE_PATH = "/" + SERVICE_PATH_COMPONENT;
public static final String SERVICE_PATH_PROXY = SERVICE_PATH + "/";
public static final String SERVICE_PAYLOAD_NAME = SERVICE_NAME;

public RepatriationClaimClient() throws Exception {
public RepatriationRequestClient() throws Exception {
super();
}

public RepatriationClaimClient(String clientPropertiesFilename) throws Exception {
public RepatriationRequestClient(String clientPropertiesFilename) throws Exception {
super(clientPropertiesFilename);
}

Expand All @@ -46,7 +46,7 @@ public String getServiceName() {
}

@Override
public Class<RepatriationClaimProxy> getProxyClass() {
return RepatriationClaimProxy.class;
public Class<RepatriationRequestProxy> getProxyClass() {
return RepatriationRequestProxy.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
import javax.ws.rs.Produces;

/**
* RepatriationClaimProxy.java
* RepatriationRequestProxy.java
*/
@Path(RepatriationClaimClient.SERVICE_PATH_PROXY)
@Path(RepatriationRequestClient.SERVICE_PATH_PROXY)
@Produces({"application/xml"})
@Consumes({"application/xml"})
public interface RepatriationClaimProxy extends CollectionSpaceCommonListPoxProxy {}
public interface RepatriationRequestProxy extends CollectionSpaceCommonListPoxProxy {}
Loading