forked from pescCDS/cdsWebserver
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
US11103 Update Network Server to use PESC centric workflow. Provide t…
…he ability to create a "Pesc Transcript Request" to be sent with document.
- Loading branch information
1 parent
c6cedfd
commit 25c8062
Showing
52 changed files
with
29,520 additions
and
97 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
32 changes: 32 additions & 0 deletions
32
networkServer/src/main/java/org/pesc/cds/config/CacheConfig.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,32 @@ | ||
package org.pesc.cds.config; | ||
|
||
import com.google.common.cache.CacheBuilder; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.cache.CacheManager; | ||
import org.springframework.cache.annotation.CachingConfigurerSupport; | ||
import org.springframework.cache.annotation.EnableCaching; | ||
import org.springframework.cache.guava.GuavaCacheManager; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import java.util.concurrent.TimeUnit; | ||
|
||
/** | ||
* Created by sallen on 8/15/16. | ||
*/ | ||
@Configuration | ||
@EnableCaching | ||
public class CacheConfig extends CachingConfigurerSupport { | ||
public static final String PREFIX = "NetworkServer_"; | ||
@Value("${cache.manager.expire.time.minutes:120}") | ||
private Integer expireTimeMinutes; | ||
@Value("${cache.manager.maximum.size:1000}") | ||
private Integer maximumSize; | ||
|
||
@Bean | ||
public CacheManager cacheManager(){ | ||
GuavaCacheManager guavaCacheManager = new GuavaCacheManager(); | ||
guavaCacheManager.setCacheBuilder(CacheBuilder.newBuilder().expireAfterAccess(expireTimeMinutes, TimeUnit.MINUTES).maximumSize(maximumSize)); | ||
return guavaCacheManager; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
networkServer/src/main/java/org/pesc/cds/config/JaxbConfig.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,45 @@ | ||
package org.pesc.cds.config; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.core.io.ClassPathResource; | ||
import org.springframework.oxm.jaxb.Jaxb2Marshaller; | ||
|
||
/** | ||
* Created by sallen on 7/27/16. | ||
*/ | ||
@Configuration | ||
public class JaxbConfig { | ||
|
||
@Bean(name="transcriptRequestMarshaller") | ||
public Jaxb2Marshaller transcriptRequestMarshaller(){ | ||
Jaxb2Marshaller transcriptRequestMarshaller = new Jaxb2Marshaller(); | ||
transcriptRequestMarshaller.setContextPath("org.pesc.sdk.message.transcriptrequest.v1_2.impl"); | ||
transcriptRequestMarshaller.setSchema(new ClassPathResource("xsd/pesc/TranscriptRequest_v1.2.0.xsd")); | ||
return transcriptRequestMarshaller; | ||
} | ||
|
||
@Bean(name="DocumentInfoMarshaller") | ||
public Jaxb2Marshaller DocumentInfoMarshaller(){ | ||
Jaxb2Marshaller DocumentInfoMarshaller = new Jaxb2Marshaller(); | ||
DocumentInfoMarshaller.setContextPath("org.pesc.sdk.message.documentinfo.v1_0.impl"); | ||
DocumentInfoMarshaller.setSchema(new ClassPathResource("xsd/pesc/DocumentInfo_v1.0.0.xsd")); | ||
return DocumentInfoMarshaller; | ||
} | ||
|
||
@Bean(name="functionalAcknowledgmentMarshaller") | ||
public Jaxb2Marshaller functionalAcknowledgmentMarshaller(){ | ||
Jaxb2Marshaller functionalAcknowledgmentMarshaller = new Jaxb2Marshaller(); | ||
functionalAcknowledgmentMarshaller.setContextPath("org.pesc.sdk.message.functionalacknowledgment.v1_0.impl"); | ||
functionalAcknowledgmentMarshaller.setSchema(new ClassPathResource("xsd/pesc/FunctionalAcknowledgment_v1.0.0.xsd")); | ||
return functionalAcknowledgmentMarshaller; | ||
} | ||
|
||
@Bean(name="transcriptResponseMarshaller") | ||
public Jaxb2Marshaller transcriptResponseMarshaller(){ | ||
Jaxb2Marshaller transcriptResponseMarshaller = new Jaxb2Marshaller(); | ||
transcriptResponseMarshaller.setContextPath("org.pesc.sdk.message.transcriptresponse.v1_2.impl"); | ||
transcriptResponseMarshaller.setSchema(new ClassPathResource("xsd/pesc/TranscriptResponse_v1.2.0.xsd")); | ||
return transcriptResponseMarshaller; | ||
} | ||
} |
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
8 changes: 8 additions & 0 deletions
8
networkServer/src/main/java/org/pesc/cds/model/SchoolCodeType.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,8 @@ | ||
package org.pesc.cds.model; | ||
|
||
/** | ||
* Created by sallen on 8/1/16. | ||
*/ | ||
public enum SchoolCodeType { | ||
ACT, ATP, FICE, IPEDS, OPEID; | ||
} |
Oops, something went wrong.