Class AttachmentRequestService
- java.lang.Object
-
- fr.paris.lutece.plugins.attachmentrequest.service.AttachmentRequestService
-
public class AttachmentRequestService extends java.lang.ObjectAttachmentRequestService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBEAN_IDENTITY_STORE_NAMEstatic java.lang.StringBEAN_SERVICE_CONTRACT_NAMEstatic java.lang.StringPROPERTY_IDENTITY_CLIENT_CODE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AttachmentRequestcreateAttachmentRequest(AttachmentRequest attachmentRequest)Create attachment requeststatic booleancreateIdentityTask(java.lang.String strCustomerId, java.util.Map<java.lang.String,java.lang.String> metadata)Creating an ATTACHMENT_CERTIFICATION_REQUEST type taskstatic voiddeleteFiles(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto identityTaskDto)This method removes user attachments by retrieving information from the taskstack metadata that contains the provider and file path in S3static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponsegetActiveServiceContract(java.lang.String strApplicationCode)Get active service contractstatic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDtogetIdentityByGuid(java.lang.String strGuid)Get identity by guidfr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDtogetIdentityTask(java.lang.String strTaskCode)Get identity task by task codestatic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDtogetIdentityTaskInProgress(java.lang.String strCustomerId)Returns IdentityTaskDto if the user has a task in progressstatic fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponsegetIdentityTaskSearch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request)Get identity task searchstatic java.util.List<AttachmentRequest>getListAttachmentRequest()Gets list of attachment requeststatic java.util.List<AttachmentRequest>getListAttachmentRequestByCuid(java.lang.String strCuid)Gets list of attachment request by cuidstatic voidremoveAttachmentRequest(int nIdAttachmentRequest)Remove attachment request by idstatic booleanupdateIdentity(java.lang.String strCustomerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)Update identitystatic booleanupdateIdentityTaskStatus(java.lang.String strTaskCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskStatusType statusType)Update identity task status
-
-
-
Field Detail
-
BEAN_IDENTITY_STORE_NAME
public static final java.lang.String BEAN_IDENTITY_STORE_NAME
- See Also:
- Constant Field Values
-
BEAN_SERVICE_CONTRACT_NAME
public static final java.lang.String BEAN_SERVICE_CONTRACT_NAME
- See Also:
- Constant Field Values
-
PROPERTY_IDENTITY_CLIENT_CODE
public static final java.lang.String PROPERTY_IDENTITY_CLIENT_CODE
-
-
Method Detail
-
getIdentityByGuid
public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto getIdentityByGuid(java.lang.String strGuid)
Get identity by guid- Parameters:
strGuid-- Returns:
- the identity find
-
updateIdentity
public static boolean updateIdentity(java.lang.String strCustomerId, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.common.IdentityDto identityDto)Update identity- Parameters:
strCustomerId-identityDto-- Returns:
-
getIdentityTaskSearch
public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchResponse getIdentityTaskSearch(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskSearchRequest request)
Get identity task search- Parameters:
request-- Returns:
-
createIdentityTask
public static boolean createIdentityTask(java.lang.String strCustomerId, java.util.Map<java.lang.String,java.lang.String> metadata)Creating an ATTACHMENT_CERTIFICATION_REQUEST type task- Parameters:
request-metadata-- Returns:
- true if the task has been created
-
updateIdentityTaskStatus
public static boolean updateIdentityTaskStatus(java.lang.String strTaskCode, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskStatusType statusType)Update identity task status- Parameters:
strTaskCode-statusType-- Returns:
- true if the status has been updated
-
getIdentityTask
public fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTask(java.lang.String strTaskCode)
Get identity task by task code- Parameters:
strTaskCode-- Returns:
- the identity tasj by task code
-
getActiveServiceContract
public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.contract.ServiceContractSearchResponse getActiveServiceContract(java.lang.String strApplicationCode)
Get active service contract- Parameters:
strApplicationCode-- Returns:
- the active service contract
-
getIdentityTaskInProgress
public static fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto getIdentityTaskInProgress(java.lang.String strCustomerId)
Returns IdentityTaskDto if the user has a task in progress- Parameters:
strCustomerId-- Returns:
- identityTaskDto if the user has a task in progress
-
deleteFiles
public static void deleteFiles(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.task.IdentityTaskDto identityTaskDto)
This method removes user attachments by retrieving information from the taskstack metadata that contains the provider and file path in S3- Parameters:
identityTaskDto-
-
getListAttachmentRequest
public static java.util.List<AttachmentRequest> getListAttachmentRequest()
Gets list of attachment request- Returns:
- list of attachment request
-
getListAttachmentRequestByCuid
public static java.util.List<AttachmentRequest> getListAttachmentRequestByCuid(java.lang.String strCuid)
Gets list of attachment request by cuid- Returns:
- list of attachment request
-
createAttachmentRequest
public static AttachmentRequest createAttachmentRequest(AttachmentRequest attachmentRequest)
Create attachment request- Parameters:
attachmentRequest-- Returns:
- attachment request created
-
removeAttachmentRequest
public static void removeAttachmentRequest(int nIdAttachmentRequest)
Remove attachment request by id- Parameters:
nIdAttachmentRequest-
-
-