Class ArchiveUnitProfileResource


  • @Path("/adminmanagement/v1")
    @ApplicationPath("webresources")
    public class ArchiveUnitProfileResource
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createProfiles​(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList, javax.ws.rs.core.UriInfo uri)
      Import a set of DocumentTypes.
      javax.ws.rs.core.Response findProfiles​(com.fasterxml.jackson.databind.JsonNode queryDsl)
      Find archive unit profiles by queryDsl
      javax.ws.rs.core.Response updateProfileFile​(java.lang.String profileMetadataId, com.fasterxml.jackson.databind.JsonNode queryDsl)
      Update metadata of the archive unit profile
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ARCHIVE_UNIT_PROFILE_URI

        public static final java.lang.String ARCHIVE_UNIT_PROFILE_URI
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArchiveUnitProfileResource

        public ArchiveUnitProfileResource​(ArchiveUnitProfileService archiveUnitProfileService)
        Parameters:
        archiveUnitProfileService -
    • Method Detail

      • createProfiles

        @Path("/archiveunitprofiles")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createProfiles​(java.util.List<ArchiveUnitProfileModel> archiveUnitProfileModelList,
                                                        @Context
                                                        javax.ws.rs.core.UriInfo uri)
        Import a set of DocumentTypes. If all the DocumentTypes 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 document types having the same identifier
        • One or more mandatory field is missing
        • A field has an invalid format
        • One or many document type already exist in the database
        Parameters:
        archiveUnitProfileModelList - as InputStream
        uri - the uri info
        Returns:
        Response
      • updateProfileFile

        @Path("/archiveunitprofiles/{id}")
        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response updateProfileFile​(@PathParam("id")
                                                           java.lang.String profileMetadataId,
                                                           com.fasterxml.jackson.databind.JsonNode queryDsl)
        Update metadata of the archive unit profile
        Parameters:
        profileMetadataId - profile ID to update
        queryDsl - update query
        Returns:
        Response
      • findProfiles

        @GET
        @Path("/archiveunitprofiles")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response findProfiles​(com.fasterxml.jackson.databind.JsonNode queryDsl)
        Find archive unit profiles by queryDsl
        Parameters:
        queryDsl -
        Returns:
        Response