public interface ProfileService extends VitamAutoCloseable
Modifier and Type | Method and Description |
---|---|
RequestResponse<ProfileModel> |
createProfiles(List<ProfileModel> profileModelList)
Create a collections of profile After passing the validation steps.
|
javax.ws.rs.core.Response |
downloadProfileFile(String profileIdentifier)
download file corresponding to profileIdentifier
|
ProfileModel |
findByIdentifier(String identifier)
Find profile by identifier
|
RequestResponseOK<ProfileModel> |
findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)
find Profile by QueryDsl
|
RequestResponse |
importProfileFile(String profileIdentifier,
InputStream profileFile)
1.
|
RequestResponse<ProfileModel> |
updateProfile(ProfileModel profileModel,
com.fasterxml.jackson.databind.JsonNode jsonDsl)
Update profile
|
RequestResponse<ProfileModel> |
updateProfile(String identifier,
com.fasterxml.jackson.databind.JsonNode jsonDsl)
Update profiles after passing validation steps :
Field modified :
- ActivationDate
- DesactivationDate
- LastUpdate
- Status
|
close
RequestResponse<ProfileModel> createProfiles(List<ProfileModel> profileModelList) throws VitamException
profileModelList
- the list of profiles to be createdVitamException
- if in error occurs while validating contractsRequestResponse importProfileFile(String profileIdentifier, InputStream profileFile) throws VitamException
profileIdentifier
- the profile identifierprofileFile
- the profile file as an input streamVitamException
- thrown if the profiles could not be importedjavax.ws.rs.core.Response downloadProfileFile(String profileIdentifier) throws ProfileNotFoundException, InvalidParseOperationException, ReferentialException
profileIdentifier
- the profile identifierProfileNotFoundException
- thrown if the profile could not be foundInvalidParseOperationException
- thrown if the query could not be executedReferentialException
- thrown if the query could not be executedVitamException
- thrown if another error is encounteredRequestResponse<ProfileModel> updateProfile(String identifier, com.fasterxml.jackson.databind.JsonNode jsonDsl) throws VitamException
identifier
- identifier of the profile to updatejsonDsl
- the given profile dsl for updateVitamException
- if in error occurs while validating contractsRequestResponse<ProfileModel> updateProfile(ProfileModel profileModel, com.fasterxml.jackson.databind.JsonNode jsonDsl) throws VitamException
profileModel
- the updated ProfileModeljsonDsl
- the query as a jsonVitamException
- thrown if the update could not be executedProfileModel findByIdentifier(String identifier) throws ReferentialException, InvalidParseOperationException
identifier
- the Profile identifierReferentialException
- thrown if the query could not be executedInvalidParseOperationException
- thrown if the query could not be executedRequestResponseOK<ProfileModel> findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
queryDsl
- the query as a json to be executedReferentialException
- thrown if the query could not be executedInvalidParseOperationException
- thrown if the query could not be executedCopyright © 2018 Vitam. All rights reserved.