# Uses of Class
fr.gouv.vitam.common.model.administration.profile.ProfileModel

Packages that use ProfileModel
Package
Description
fr.gouv.vitam.access.external.client
Provides
fr.gouv.vitam.common.external.client
Contains generic VitamClient and associated basic implementation used as base for every specific client module.
fr.gouv.vitam.common.model.administration.profile
fr.gouv.vitam.functional.administration.client
Provides Functional administration client interface, factory and implementations.
fr.gouv.vitam.functional.administration.core.profile

- ## Uses of ProfileModel in fr.gouv.vitam.access.external.client

  Methods in fr.gouv.vitam.access.external.client that return types with arguments of type ProfileModel
  Modifier and Type
  Method
  Description
  `RequestResponse<ProfileModel>`
  AdminExternalClient.`findProfileById(VitamContext vitamContext, String profileId)`
  Find a profile by its id.
  `RequestResponse<ProfileModel>`
  AdminExternalClientMock.`findProfileById(VitamContext vitamContext, String profileId)`
  `RequestResponse<ProfileModel>`
  AdminExternalClientRest.`findProfileById(VitamContext vitamContext, String profileId)`
  `RequestResponse<ProfileModel>`
  AdminExternalClient.`findProfiles(VitamContext vitamContext, com.fasterxml.jackson.databind.JsonNode select)`
  Find profiles.
  `RequestResponse<ProfileModel>`
  AdminExternalClientMock.`findProfiles(VitamContext vitamContext, com.fasterxml.jackson.databind.JsonNode select)`
  `RequestResponse<ProfileModel>`
  AdminExternalClientRest.`findProfiles(VitamContext vitamContext, com.fasterxml.jackson.databind.JsonNode select)`

- ## Uses of ProfileModel in fr.gouv.vitam.common.external.client

  Methods in fr.gouv.vitam.common.external.client that return types with arguments of type ProfileModel
  Modifier and Type
  Method
  Description
  `static RequestResponse<ProfileModel>`
  ClientMockResultHelper.`getProbativeValue(int statusCode)`
  `static RequestResponse<ProfileModel>`
  ClientMockResultHelper.`getProfiles(int statusCode)`

- ## Uses of ProfileModel in fr.gouv.vitam.common.model.administration.profile

  Methods in fr.gouv.vitam.common.model.administration.profile that return ProfileModel
  Modifier and Type
  Method
  Description
  `ProfileModel`
  ProfileModel.`setActivationDate(String activationDate)`
  `ProfileModel`
  ProfileModel.`setCreationDate(String creationDate)`
  `ProfileModel`
  ProfileModel.`setDeactivationDate(String deactivationDate)`
  `ProfileModel`
  ProfileModel.`setDescription(String description)`
  Set or change the profile description
  `ProfileModel`
  ProfileModel.`setFormat(ProfileFormat format)`
  Set the profile file format (xsd, rng, ...)
  `ProfileModel`
  ProfileModel.`setId(String id)`
  `ProfileModel`
  ProfileModel.`setIdentifier(String identifier)`
  Set the identifier of the profile This value must be unique by tenant
  `ProfileModel`
  ProfileModel.`setLastUpdate(String lastUpdate)`
  `ProfileModel`
  ProfileModel.`setName(String name)`
  Set or change the profile name
  `ProfileModel`
  ProfileModel.`setPath(String path)`
  Profile path in storage
  `ProfileModel`
  ProfileModel.`setSedaVersion(ProfileSedaVersion sedaVersion)`
  Set the profile seda version (2.1, 2.2, 2.3, ...)
  `ProfileModel`
  ProfileModel.`setStatus(ProfileStatus status)`
  Set or change the profile status
  `ProfileModel`
  ProfileModel.`setTenant(Integer tenant)`

- ## Uses of ProfileModel in fr.gouv.vitam.functional.administration.client

  Methods in fr.gouv.vitam.functional.administration.client that return types with arguments of type ProfileModel
  Modifier and Type
  Method
  Description
  `RequestResponse<ProfileModel>`
  AdminManagementClient.`findProfiles(com.fasterxml.jackson.databind.JsonNode query)`
  Find profiles according to the given query string (we can also use this method to find profile by identifier)
  `RequestResponse<ProfileModel>`
  AdminManagementClientMock.`findProfiles(com.fasterxml.jackson.databind.JsonNode query)`
  `RequestResponse<ProfileModel>`
  AdminManagementClient.`findProfilesByID(String id)`
  Find profile by id (id generated by the database)
  `RequestResponse<ProfileModel>`
  AdminManagementClientMock.`findProfilesByID(String id)`
  `RequestResponse<ProfileModel>`
  AdminManagementClient.`importProfileFile(String profileMetadataId, InputStream stream)`
  `RequestResponse<ProfileModel>`
  AdminManagementClient.`updateProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl)`
  Update a profile
  `RequestResponse<ProfileModel>`
  AdminManagementClientMock.`updateProfile(String id, com.fasterxml.jackson.databind.JsonNode queryDsl)`
  Method parameters in fr.gouv.vitam.functional.administration.client with type arguments of type ProfileModel
  Modifier and Type
  Method
  Description
  `RequestResponse`
  AdminManagementClient.`createProfiles(List<ProfileModel> profileModelList)`
  Import a set of profile If all the profiles are valid, they will be stored in the collection and indexed The input is invalid in the following situations : The json is invalid The json contains 2 ore many profile having the same name One or more mandatory field is missing A field has an invalid format One or many profiles already exist in the database
  `RequestResponse`
  AdminManagementClientMock.`createProfiles(List<ProfileModel> profileModelList)`

- ## Uses of ProfileModel in fr.gouv.vitam.functional.administration.core.profile

  Methods in fr.gouv.vitam.functional.administration.core.profile that return ProfileModel
  Modifier and Type
  Method
  Description
  `ProfileModel`
  ProfileService.`findByIdentifier(String identifier)`
  Find profile by identifier
  `ProfileModel`
  ProfileServiceImpl.`findByIdentifier(String identifier)`
  Methods in fr.gouv.vitam.functional.administration.core.profile that return types with arguments of type ProfileModel
  Modifier and Type
  Method
  Description
  `RequestResponse<ProfileModel>`
  ProfileService.`createProfiles(List<CreateProfileModel> createProfileModels)`
  Create a collections of profile After passing the validation steps.
  `RequestResponse<ProfileModel>`
  ProfileServiceImpl.`createProfiles(List<CreateProfileModel> createProfileModels)`
  `RequestResponseOK<ProfileModel>`
  ProfileService.`findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)`
  find Profile by QueryDsl
  `RequestResponseOK<ProfileModel>`
  ProfileServiceImpl.`findProfiles(com.fasterxml.jackson.databind.JsonNode queryDsl)`
  `RequestResponse<ProfileModel>`
  ProfileService.`importProfileFile(String profileIdentifier, InputStream profileFile)`
  1.
  `RequestResponse<ProfileModel>`
  ProfileServiceImpl.`importProfileFile(String profileIdentifier, InputStream profileFile)`
  `RequestResponse<ProfileModel>`
  ProfileService.`updateProfile(ProfileModel profileModel, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  Update profile
  `RequestResponse<ProfileModel>`
  ProfileService.`updateProfile(String identifier, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  Update profiles after passing validation steps : Field modified : - ActivationDate - DesactivationDate - LastUpdate - Status
  `RequestResponse<ProfileModel>`
  ProfileServiceImpl.`updateProfile(ProfileModel profileModel, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  `RequestResponse<ProfileModel>`
  ProfileServiceImpl.`updateProfile(String identifier, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  Methods in fr.gouv.vitam.functional.administration.core.profile with parameters of type ProfileModel
  Modifier and Type
  Method
  Description
  `RequestResponse<ProfileModel>`
  ProfileService.`updateProfile(ProfileModel profileModel, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  Update profile
  `RequestResponse<ProfileModel>`
  ProfileServiceImpl.`updateProfile(ProfileModel profileModel, com.fasterxml.jackson.databind.JsonNode jsonDsl)`
  `Optional<ProfileValidator.RejectionCause>`
  ProfileValidator.`validate(ProfileModel profile)`
  Validate a profile object
  `boolean`
  ProfileManager.`validateProfile(ProfileModel profile, VitamError error)`
  `boolean`
  ProfileManager.`validateProfileFile(ProfileModel profileModel, File file, VitamError error)`
  Validate if the profile file is valide XSD => is file xsd is xml valide RNG => if file rng is xml valide, rng valide, check default values if already exists in vitam