The following document contains the results of PMD's CPD 6.13.0.
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/contract/ServiceContractDAO.java | 92 |
| fr/paris/lutece/plugins/identitystore/business/contract/ServiceContractDAO.java | 336 |
daoUtil.setString( nIndex++, serviceContract.getName( ) );
daoUtil.setString( nIndex++, serviceContract.getMoaEntityName( ) );
daoUtil.setString( nIndex++, serviceContract.getMoeResponsibleName( ) );
daoUtil.setString( nIndex++, serviceContract.getMoaContactName( ) );
daoUtil.setString( nIndex++, serviceContract.getMoeEntityName( ) );
daoUtil.setInt( nIndex++, serviceContract.getDataRetentionPeriodInMonths( ) );
daoUtil.setString( nIndex++, serviceContract.getServiceType( ) );
daoUtil.setDate( nIndex++, serviceContract.getStartingDate( ) );
daoUtil.setDate( nIndex++, serviceContract.getEndingDate( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedCreation( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedUpdate( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedSearch( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedMerge( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedAccountUpdate( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedDeletion( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedImport( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedExport( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedDecertification( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedAgentHistoryRead( ) );
daoUtil.setBoolean( nIndex++, serviceContract.getAuthorizedAttachmentCertification( ) );
daoUtil.setTimestamp( nIndex++, new Timestamp( new java.util.Date( ).getTime( ) ) );
daoUtil.setTimestamp( nIndex++, new Timestamp( new java.util.Date( ).getTime( ) ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 213 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 375 |
try ( final DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin ) )
{
daoUtil.executeQuery( );
final List<AttributeKey> attributeKeyList = new ArrayList<>( );
while ( daoUtil.next( ) )
{
final AttributeKey attributeKey = new AttributeKey( );
int nIndex = 1;
attributeKey.setId( daoUtil.getInt( nIndex++ ) );
attributeKey.setName( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setCommonSearchKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setDescription( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyType( KeyType.valueOf( daoUtil.getInt( nIndex++ ) ) );
attributeKey.setCertifiable( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setPivot( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setKeyWeight( daoUtil.getInt( nIndex++ ) );
attributeKey.setMandatoryForCreation( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setValidationRegex( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessage( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessageKey( daoUtil.getString( nIndex++ ) );
attributeKey.setCreationDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setLastUpdateDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setAuthorName( daoUtil.getString( nIndex ) );
attributeKeyList.add( attributeKey );
}
return attributeKeyList;
}
}
/**
* {@inheritDoc }
*/
@Override
public List<String> selectAttributeKeysNamesList( Plugin plugin ) | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 129 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 293 |
daoUtil.setInt( 1, nKey );
daoUtil.executeQuery( );
AttributeKey attributeKey = null;
if ( daoUtil.next( ) )
{
attributeKey = new AttributeKey( );
int nIndex = 1;
attributeKey.setId( daoUtil.getInt( nIndex++ ) );
attributeKey.setName( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setCommonSearchKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setDescription( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyType( KeyType.valueOf( daoUtil.getInt( nIndex++ ) ) );
attributeKey.setCertifiable( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setPivot( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setKeyWeight( daoUtil.getInt( nIndex++ ) );
attributeKey.setMandatoryForCreation( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setValidationRegex( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessage( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessageKey( daoUtil.getString( nIndex++ ) );
attributeKey.setCreationDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setLastUpdateDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setAuthorName( daoUtil.getString( nIndex ) );
}
return attributeKey;
}
}
/**
* {@inheritDoc }
*/
@Override
public void delete( int nKey, Plugin plugin ) | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 136 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 219 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 300 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 381 |
attributeKey = new AttributeKey( );
int nIndex = 1;
attributeKey.setId( daoUtil.getInt( nIndex++ ) );
attributeKey.setName( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setCommonSearchKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setDescription( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyType( KeyType.valueOf( daoUtil.getInt( nIndex++ ) ) );
attributeKey.setCertifiable( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setPivot( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setKeyWeight( daoUtil.getInt( nIndex++ ) );
attributeKey.setMandatoryForCreation( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setValidationRegex( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessage( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessageKey( daoUtil.getString( nIndex++ ) );
attributeKey.setCreationDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setLastUpdateDate( daoUtil.getDate( nIndex++ ) );
attributeKey.setAuthorName( daoUtil.getString( nIndex ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/web/ServiceContractJspBean.java | 349 |
| fr/paris/lutece/plugins/identitystore/web/ServiceContractJspBean.java | 523 |
_servicecontract.setAttributeCertifications( attributeCertifications.stream( ).filter( certif -> {
AttributeRight attributeRight = lstAttributeRights.stream( ).filter( atr -> atr.getAttributeKey( ).getId( ) == certif.getAttributeKey( ).getId( ) )
.findFirst( ).orElse( null );
return attributeRight != null && attributeRight.isWritable( );
} ).collect( Collectors.toList( ) ) );
final boolean validMandatoryConfig = _servicecontract.getAttributeRights( ).stream( ).filter( AttributeRight::isMandatory )
.allMatch( attributeRight -> _servicecontract.getAttributeRequirements( ).stream( )
.anyMatch( req -> Objects.equals( req.getAttributeKey( ).getKeyName( ), attributeRight.getAttributeKey( ).getKeyName( ) )
&& req.getRefCertificationLevel( ) != null && req.getRefCertificationLevel( ).getLevel( ) != null ) );
if ( !validMandatoryConfig )
{
this.addError( ERROR_SERVICECONTRACT_INVALID_MANDATORY_ATTRIBUTE, getLocale( ) );
return redirect( request, VIEW_CREATE_SERVICECONTRACT, PARAMETER_ID_CLIENTAPPLICATION, selectedClientAppId ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/identity/IdentityDAO.java | 625 |
| fr/paris/lutece/plugins/identitystore/business/identity/IdentityDAO.java | 648 |
try ( final DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT_HISTORY, Statement.RETURN_GENERATED_KEYS, plugin ) )
{
int nIndex = 1;
daoUtil.setInt( nIndex++, identityChange.getChangeType( ).getValue( ) );
daoUtil.setString( nIndex++, identityChange.getChangeStatus( ) );
daoUtil.setString( nIndex++, identityChange.getChangeMessage( ) );
daoUtil.setString( nIndex++, identityChange.getAuthor( ).getType( ).name( ) );
daoUtil.setString( nIndex++, identityChange.getAuthor( ).getName( ) );
daoUtil.setString( nIndex++, identityChange.getClientCode( ) );
daoUtil.setString( nIndex++, identityChange.getCustomerId( ) );
daoUtil.setString( nIndex, objectMapper.writeValueAsString( identityChange.getMetadata( ) ) );
daoUtil.executeUpdate( );
}
catch( JsonProcessingException e )
{
throw new IdentityStoreException( e.getMessage( ), e );
}
}
@Override
public void addOrUpdateChangeHistory( IdentityChange identityChange, Plugin plugin ) throws IdentityStoreException | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 243 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 275 |
public Response updateIdentity( @ApiParam( name = "Request body", value = "An Identity Change Request" ) IdentityChangeRequest identityChangeRequest,
@ApiParam( name = Constants.PARAM_ID_CUSTOMER, value = "Customer ID of the updated identity" ) @PathParam( Constants.PARAM_ID_CUSTOMER ) String strCustomerId,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreUpdateRequest request = new IdentityStoreUpdateRequest( strCustomerId, identityChangeRequest, clientCode, strHeaderAppCode,
authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/request/identity/IdentityStoreCancelMergeRequest.java | 91 |
| fr/paris/lutece/plugins/identitystore/v3/web/request/identity/IdentityStoreMergeRequest.java | 92 |
public IdentityStoreCancelMergeRequest( final IdentityMergeRequest identityMergeRequest, final String strClientCode, final String strAppCode,
final String authorName, final String authorType ) throws IdentityStoreException
{
super( strClientCode, strAppCode, authorName, authorType );
if ( identityMergeRequest == null )
{
throw new RequestFormatException( "Provided Identity Merge request is null", Constants.PROPERTY_REST_ERROR_MERGE_REQUEST_NULL );
}
this._identityMergeRequest = identityMergeRequest;
this.formatStatuses = new ArrayList<>( );
}
@Override
protected void fetchResources( ) throws ResourceNotFoundException, ClientAuthorizationException {
serviceContract = ServiceContractService.instance( ).getActiveServiceContract( _strClientCode );
primaryIdentity = _identityDtoCache.getByCustomerId( _identityMergeRequest.getPrimaryCuid( ), serviceContract );
if ( primaryIdentity == null )
{
throw new ResourceNotFoundException( "Could not find primary identity", Constants.PROPERTY_REST_ERROR_PRIMARY_IDENTITY_NOT_FOUND );
}
secondaryIdentity = _identityDtoCache.getByCustomerId( _identityMergeRequest.getSecondaryCuid( ), serviceContract );
if ( secondaryIdentity == null )
{
throw new ResourceNotFoundException( "Could not find secondary identity", Constants.PROPERTY_REST_ERROR_SECONDARY_IDENTITY_NOT_FOUND );
} | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 184 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 227 |
suspiciousIdentity = new SuspiciousIdentity( );
int nIndex = 1;
suspiciousIdentity.setId( daoUtil.getInt( nIndex++ ) );
suspiciousIdentity.setCustomerId( daoUtil.getString( nIndex++ ) );
suspiciousIdentity.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
suspiciousIdentity.setIdDuplicateRule( daoUtil.getInt( nIndex++ ) );
suspiciousIdentity.setDuplicateRuleCode( daoUtil.getString( nIndex++ ) );
final SuspiciousIdentityLock lock = new SuspiciousIdentityLock( );
suspiciousIdentity.setLock( lock );
lock.setLockEndDate( daoUtil.getTimestamp( nIndex++ ) );
if ( lock.getLockEndDate( ) != null )
{
lock.setLocked( daoUtil.getBoolean( nIndex++ ) );
lock.setAuthorType( daoUtil.getString( nIndex++ ) );
lock.setAuthorName( daoUtil.getString( nIndex ) );
}
else
{
lock.setLocked( false );
}
suspiciousIdentity.setLock( lock );
}
return suspiciousIdentity; | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 145 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 534 |
suspiciousIdentity = new SuspiciousIdentity( );
int nIndex = 1;
suspiciousIdentity.setId( daoUtil.getInt( nIndex++ ) );
suspiciousIdentity.setCustomerId( daoUtil.getString( nIndex++ ) );
suspiciousIdentity.setIdDuplicateRule( daoUtil.getInt( nIndex++ ) );
suspiciousIdentity.setDuplicateRuleCode( daoUtil.getString( nIndex++ ) );
final SuspiciousIdentityLock lock = new SuspiciousIdentityLock( );
suspiciousIdentity.setLock( lock );
lock.setLockEndDate( daoUtil.getTimestamp( nIndex++ ) );
if ( lock.getLockEndDate( ) != null )
{
lock.setLocked( daoUtil.getBoolean( nIndex++ ) );
lock.setAuthorType( daoUtil.getString( nIndex++ ) );
lock.setAuthorName( daoUtil.getString( nIndex ) );
}
else
{
lock.setLocked( false );
} | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/rules/duplicate/DuplicateRuleDAO.java | 382 |
| fr/paris/lutece/plugins/identitystore/business/rules/search/IdentitySearchRuleDAO.java | 127 |
}
}
private AttributeKey getAttributeKey( final DAOUtil daoUtil, final int offset )
{
final AttributeKey attributeKey = new AttributeKey( );
int nIndex = offset;
attributeKey.setId( daoUtil.getInt( ++nIndex ) );
attributeKey.setName( daoUtil.getString( ++nIndex ) );
attributeKey.setDescription( daoUtil.getString( ++nIndex ) );
attributeKey.setKeyName( daoUtil.getString( ++nIndex ) );
attributeKey.setKeyType( KeyType.valueOf( daoUtil.getInt( ++nIndex ) ) );
attributeKey.setKeyWeight( daoUtil.getInt( ++nIndex ) );
attributeKey.setCertifiable( daoUtil.getBoolean( ++nIndex ) );
attributeKey.setPivot( daoUtil.getBoolean( ++nIndex ) );
attributeKey.setCommonSearchKeyName( daoUtil.getString( ++nIndex ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 182 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 213 |
public Response createIdentity( @ApiParam( name = "Request body", value = "An Identity Change Request" ) IdentityChangeRequest identityChangeRequest,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreCreateRequest request = new IdentityStoreCreateRequest( identityChangeRequest, clientCode, strHeaderAppCode, authorName,
authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 277 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 311 |
public Response updateServiceContract( @ApiParam( name = "Request body", value = "A service contract change Request" ) ServiceContractDto serviceContract,
@ApiParam( name = Constants.PARAM_ID_SERVICE_CONTRACT, value = "ID of the updated contract" ) @PathParam( Constants.PARAM_ID_SERVICE_CONTRACT ) Integer serviceContractId,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ServiceContractUpdateRequest request = new ServiceContractUpdateRequest( serviceContract, serviceContractId, clientCode, strHeaderAppCode, | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/contract/AttributeCertificationDAO.java | 280 |
| fr/paris/lutece/plugins/identitystore/business/contract/AttributeRequirementDAO.java | 273 |
AttributeCertification attributeCertification = new AttributeCertification( );
AttributeKey attributeKey = new AttributeKey( );
int nIndex = 1;
attributeKey.setId( daoUtil.getInt( nIndex++ ) );
attributeKey.setName( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setCommonSearchKeyName( daoUtil.getString( nIndex++ ) );
attributeKey.setDescription( daoUtil.getString( nIndex++ ) );
attributeKey.setKeyType( KeyType.valueOf( daoUtil.getInt( nIndex++ ) ) );
attributeKey.setMandatoryForCreation( daoUtil.getBoolean( nIndex++ ) );
attributeKey.setValidationRegex( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessage( daoUtil.getString( nIndex++ ) );
attributeKey.setValidationErrorMessageKey( daoUtil.getString( nIndex ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 155 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 184 |
public Response getServiceContractList(
@ApiParam( name = Constants.PARAM_TARGET_CLIENT_CODE, value = SwaggerConstants.PARAM_TARGET_CLIENT_CODE_DESCRIPTION ) @PathParam( Constants.PARAM_TARGET_CLIENT_CODE ) String strTargetClientCode,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String headerClientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ServiceContractListGetRequest request = new ServiceContractListGetRequest( strTargetClientCode, headerClientCode, strHeaderAppCode, authorName, | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/application/ClientApplicationDAO.java | 112 |
| fr/paris/lutece/plugins/identitystore/business/application/ClientApplicationDAO.java | 145 |
try ( final DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT, plugin ) )
{
daoUtil.setInt( 1, nKey );
daoUtil.executeQuery( );
ClientApplication clientApplication = null;
if ( daoUtil.next( ) )
{
clientApplication = new ClientApplication( );
int nIndex = 1;
clientApplication.setId( daoUtil.getInt( nIndex++ ) );
clientApplication.setName( daoUtil.getString( nIndex++ ) );
clientApplication.setClientCode( daoUtil.getString( nIndex++ ) );
clientApplication.setApplicationCode( daoUtil.getString( nIndex++ ) );
clientApplication.setCreationDate( daoUtil.getDate( nIndex++ ) );
clientApplication.setLastUpdateDate( daoUtil.getDate( nIndex++ ) );
clientApplication.setAuthorName( daoUtil.getString( nIndex ) );
}
return clientApplication;
}
}
/**
* {@inheritDoc }
*/
@Override
public ClientApplication selectByContractId( int nKey, Plugin plugin ) | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/identity/IdentityDAO.java | 226 |
| fr/paris/lutece/plugins/identitystore/business/identity/IdentityDAO.java | 340 |
identity.setId( daoUtil.getInt( nIndex++ ) );
identity.setConnectionId( daoUtil.getString( nIndex++ ) );
identity.setCustomerId( daoUtil.getString( nIndex++ ) );
identity.setDeleted( daoUtil.getBoolean( nIndex++ ) );
identity.setMerged( daoUtil.getBoolean( nIndex++ ) );
identity.setMasterIdentityId( daoUtil.getInt( nIndex++ ) );
identity.setCreationDate( daoUtil.getTimestamp( nIndex++ ) );
identity.setLastUpdateDate( daoUtil.getTimestamp( nIndex++ ) );
identity.setMergeDate( daoUtil.getTimestamp( nIndex++ ) );
identity.setMonParisActive( daoUtil.getBoolean( nIndex++ ) );
identity.setExpirationDate( daoUtil.getTimestamp( nIndex ) );
} | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/rules/duplicate/DuplicateRuleDAO.java | 87 |
| fr/paris/lutece/plugins/identitystore/business/rules/duplicate/DuplicateRuleDAO.java | 228 |
try ( final DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT_RULE, Statement.RETURN_GENERATED_KEYS, plugin ) )
{
int nIndex = 0;
daoUtil.setString( ++nIndex, duplicateRule.getName( ) );
daoUtil.setString( ++nIndex, duplicateRule.getCode( ) );
daoUtil.setString( ++nIndex, duplicateRule.getDescription( ) );
daoUtil.setInt( ++nIndex, duplicateRule.getNbFilledAttributes( ) );
daoUtil.setInt( ++nIndex, duplicateRule.getNbEqualAttributes( ) );
daoUtil.setInt( ++nIndex, duplicateRule.getNbMissingAttributes( ) );
daoUtil.setInt( ++nIndex, duplicateRule.getPriority( ) );
daoUtil.setBoolean( ++nIndex, duplicateRule.isActive( ) );
daoUtil.setBoolean( ++nIndex, duplicateRule.isDaemon( ) );
daoUtil.setInt( ++nIndex, duplicateRule.getDetectionLimit( ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/contract/AttributeCertificationDAO.java | 230 |
| fr/paris/lutece/plugins/identitystore/business/contract/AttributeRequirementDAO.java | 222 |
| fr/paris/lutece/plugins/identitystore/business/contract/ServiceContractDAO.java | 390 |
| fr/paris/lutece/plugins/identitystore/business/referentiel/RefAttributeCertificationLevelDAO.java | 242 |
| fr/paris/lutece/plugins/identitystore/business/referentiel/RefAttributeCertificationProcessusDAO.java | 209 |
| fr/paris/lutece/plugins/identitystore/business/referentiel/RefCertificationLevelDAO.java | 214 |
List<AttributeCertification> attributeCertificationList = new ArrayList<>( );
StringBuilder builder = new StringBuilder( );
if ( !listIds.isEmpty( ) )
{
for ( int i = 0; i < listIds.size( ); i++ )
{
builder.append( "?," );
}
String placeHolders = builder.deleteCharAt( builder.length( ) - 1 ).toString( );
String stmt = SQL_QUERY_SELECTALL_BY_IDS + placeHolders + ")";
try ( final DAOUtil daoUtil = new DAOUtil( stmt, plugin ) )
{
int index = 1;
for ( Integer n : listIds )
{
daoUtil.setInt( index++, n );
}
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{ | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 182 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 213 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 398 |
public Response createIdentity( @ApiParam( name = "Request body", value = "An Identity Change Request" ) IdentityChangeRequest identityChangeRequest,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreCreateRequest request = new IdentityStoreCreateRequest( identityChangeRequest, clientCode, strHeaderAppCode, authorName, | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 305 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 333 |
public Response mergeIdentities( @ApiParam( name = "Request body", value = "An Identity Merge Request" ) IdentityMergeRequest identityMergeRequest,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreMergeRequest request = new IdentityStoreMergeRequest( identityMergeRequest, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/application/ClientApplicationDAO.java | 114 |
| fr/paris/lutece/plugins/identitystore/business/application/ClientApplicationDAO.java | 147 |
| fr/paris/lutece/plugins/identitystore/business/application/ClientApplicationDAO.java | 289 |
daoUtil.setInt( 1, nKey );
daoUtil.executeQuery( );
ClientApplication clientApplication = null;
if ( daoUtil.next( ) )
{
clientApplication = new ClientApplication( );
int nIndex = 1;
clientApplication.setId( daoUtil.getInt( nIndex++ ) );
clientApplication.setName( daoUtil.getString( nIndex++ ) );
clientApplication.setClientCode( daoUtil.getString( nIndex++ ) );
clientApplication.setApplicationCode( daoUtil.getString( nIndex++ ) );
clientApplication.setCreationDate( daoUtil.getDate( nIndex++ ) );
clientApplication.setLastUpdateDate( daoUtil.getDate( nIndex++ ) );
clientApplication.setAuthorName( daoUtil.getString( nIndex ) );
}
return clientApplication;
}
}
/**
* {@inheritDoc }
*/
@Override
public ClientApplication selectByContractId( int nKey, Plugin plugin ) | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/request/identity/IdentityStoreCancelMergeRequest.java | 154 |
| fr/paris/lutece/plugins/identitystore/v3/web/request/identity/IdentityStoreMergeRequest.java | 155 |
IdentityValidator.instance( ).checkIdentityMergedStatusForMergeCancel( primaryIdentity, secondaryIdentity );
}
@Override
protected void formatRequestContent( ) throws RequestContentFormattingException
{
if ( _identityMergeRequest.getIdentity( ) != null && CollectionUtils.isNotEmpty( _identityMergeRequest.getIdentity( ).getAttributes( ) ) )
{
formatStatuses.addAll( IdentityAttributeFormatterService.instance( ).formatIdentityMergeRequestAttributeValues( _identityMergeRequest ) );
IdentityAttributeValidator.instance( ).validateIdentityAttributeValues( _identityMergeRequest.getIdentity( ) );
}
}
@Override
protected void checkDuplicatesConsistency( ) throws DuplicatesConsistencyException
{
// do nothing
}
@Override
protected IdentityMergeResponse doSpecificRequest( ) throws IdentityStoreException
{
final IdentityMergeResponse response = new IdentityMergeResponse( );
final Pair<Identity, List<AttributeStatus>> result = IdentityService.instance( ).cancelMerge( _identityMergeRequest, _author, _strClientCode ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/request/validator/IdentityDuplicateValidator.java | 299 |
| fr/paris/lutece/plugins/identitystore/v3/web/request/validator/IdentityDuplicateValidator.java | 353 |
private void checkDuplicates( final Map<String, String> attributes, final String ruleCodeProperty, final String customerId )
throws DuplicatesConsistencyException
{
try
{
final List<DuplicateRule> rules = new ArrayList<>();
final List<String> ruleCodes = Arrays.stream(AppPropertiesService.getProperty( ruleCodeProperty, "" ).split( "," ))
.filter(StringUtils::isNotEmpty).collect(Collectors.toList());
for( final String ruleCode : ruleCodes){
final DuplicateRule rule = DuplicateRuleService.instance().get(ruleCode);
DuplicateRuleValidator.instance().validateActive(rule);
rules.add(rule);
} | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 90 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 117 |
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientsGetRequest request = new ClientsGetRequest(StringUtils.EMPTY, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 149 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 189 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 233 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 538 |
suspiciousIdentity.setCustomerId( daoUtil.getString( nIndex++ ) );
suspiciousIdentity.setIdDuplicateRule( daoUtil.getInt( nIndex++ ) );
suspiciousIdentity.setDuplicateRuleCode( daoUtil.getString( nIndex++ ) );
final SuspiciousIdentityLock lock = new SuspiciousIdentityLock( );
suspiciousIdentity.setLock( lock );
lock.setLockEndDate( daoUtil.getTimestamp( nIndex++ ) );
if ( lock.getLockEndDate( ) != null )
{
lock.setLocked( daoUtil.getBoolean( nIndex++ ) );
lock.setAuthorType( daoUtil.getString( nIndex++ ) );
lock.setAuthorName( daoUtil.getString( nIndex ) );
}
else
{
lock.setLocked( false );
} | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 102 |
| fr/paris/lutece/plugins/identitystore/business/attribute/AttributeKeyDAO.java | 185 |
daoUtil.setString( nIndex++, attributeKey.getName( ) );
daoUtil.setString( nIndex++, attributeKey.getKeyName( ) );
daoUtil.setString( nIndex++, attributeKey.getCommonSearchKeyName( ) );
daoUtil.setString( nIndex++, attributeKey.getDescription( ) );
daoUtil.setInt( nIndex++, attributeKey.getKeyType( ).getId( ) );
daoUtil.setBoolean( nIndex++, attributeKey.getCertifiable( ) );
daoUtil.setBoolean( nIndex++, attributeKey.getPivot( ) );
daoUtil.setInt( nIndex++, attributeKey.getKeyWeight( ) );
daoUtil.setString( nIndex++, attributeKey.getValidationRegex( ) ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 89 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 82 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 98 |
public Response getClients(
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientsGetRequest request = new ClientsGetRequest(StringUtils.EMPTY, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 116 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 172 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 182 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 213 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 244 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 276 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 305 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 333 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 399 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 459 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 128 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 245 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 278 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 312 |
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.CLIENT_APPLICATION_CODE_DESCRIPTION ) @PathParam( Constants.PARAM_APPLICATION_CODE ) String applicationCode,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientsGetRequest request = new ClientsGetRequest( applicationCode, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 143 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 156 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 185 |
@ApiParam( name = Constants.PARAM_TARGET_CLIENT_CODE, value = SwaggerConstants.PARAM_TARGET_CLIENT_CODE_DESCRIPTION ) @PathParam( Constants.PARAM_TARGET_CLIENT_CODE ) String targetClientCode,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String headerClientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientGetRequest request = new ClientGetRequest( targetClientCode, headerClientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/HistoryRestService.java | 88 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/HistoryRestService.java | 119 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 146 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 429 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 481 |
@ApiParam( name = Constants.PARAM_ID_CUSTOMER, value = "Customer ID of the requested identity" ) @PathParam( Constants.PARAM_ID_CUSTOMER ) String strCustomerId,
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String strHeaderClientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreHistoryGetRequest request = new IdentityStoreHistoryGetRequest( strCustomerId, strHeaderClientCode, strHeaderAppCode, authorName, | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 106 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 130 |
public Response getAllLevels(
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String strClientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final LevelListGetRequest request = new LevelListGetRequest( strClientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 90 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 173 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 183 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 214 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 245 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 277 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 306 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 334 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 400 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 460 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 129 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 246 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 279 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 313 |
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientsGetRequest request = new ClientsGetRequest(StringUtils.EMPTY, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ClientRestService.java | 117 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 83 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ServiceContractRestService.java | 99 |
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String clientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final ClientsGetRequest request = new ClientsGetRequest( applicationCode, clientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/rs/IdentityStoreRestService.java | 363 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 107 |
| fr/paris/lutece/plugins/identitystore/v3/web/rs/ReferentielRestService.java | 131 |
@ApiParam( name = Constants.PARAM_CLIENT_CODE, value = SwaggerConstants.PARAM_CLIENT_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_CLIENT_CODE ) String strClientCode,
@ApiParam( name = Constants.PARAM_AUTHOR_NAME, value = SwaggerConstants.PARAM_AUTHOR_NAME_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_NAME ) String authorName,
@ApiParam( name = Constants.PARAM_AUTHOR_TYPE, value = SwaggerConstants.PARAM_AUTHOR_TYPE_DESCRIPTION ) @HeaderParam( Constants.PARAM_AUTHOR_TYPE ) String authorType,
@ApiParam( name = Constants.PARAM_APPLICATION_CODE, value = SwaggerConstants.PARAM_APPLICATION_CODE_DESCRIPTION ) @HeaderParam( Constants.PARAM_APPLICATION_CODE ) @DefaultValue( "" ) String strHeaderAppCode )
throws IdentityStoreException
{
final IdentityStoreDeleteRequest request = new IdentityStoreDeleteRequest( strCustomerId, strClientCode, strHeaderAppCode, authorName, authorType ); | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 416 |
| fr/paris/lutece/plugins/identitystore/business/duplicates/suspicions/SuspiciousIdentityDAO.java | 444 |
daoUtil.executeQuery( );
while ( daoUtil.next( ) )
{
final ExcludedIdentities excludedIdentities = new ExcludedIdentities( );
int nIndex = 1;
excludedIdentities.setFirstCustomerId( daoUtil.getString( nIndex++ ) );
excludedIdentities.setSecondCustomerId( daoUtil.getString( nIndex++ ) );
excludedIdentities.setExclusionDate( daoUtil.getTimestamp( nIndex++ ) );
excludedIdentities.setAuthorType( daoUtil.getString( nIndex++ ) );
excludedIdentities.setAuthorName( daoUtil.getString( nIndex ) );
excludedIdentitiesList.add( excludedIdentities );
}
return excludedIdentitiesList;
}
}
@Override
public List<ExcludedIdentities> selectExcludedIdentitiesList( final String customerId, Plugin plugin ) | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/request/contract/ServiceContractListGetAllRequest.java | 66 |
| fr/paris/lutece/plugins/identitystore/v3/web/request/referentiel/ProcessusListGetRequest.java | 71 |
public ServiceContractListGetAllRequest( final String strClientCode, final String strAppCode, final String authorName, final String authorType )
throws IdentityStoreException
{
super( strClientCode, strAppCode, authorName, authorType );
}
@Override
protected void fetchResources( ) throws ResourceNotFoundException
{
// do nothing
}
@Override
protected void validateRequestFormat( ) throws RequestFormatException
{
// do nothing
}
@Override
protected void validateClientAuthorization( ) throws ClientAuthorizationException
{
// TODO no authorization in service contract for that
}
@Override
protected void validateResourcesConsistency( ) throws ResourceConsistencyException
{
// do nothing
}
@Override
protected void formatRequestContent( ) throws RequestContentFormattingException
{
// do nothing
}
@Override
protected void checkDuplicatesConsistency( ) throws DuplicatesConsistencyException
{
// do nothing
}
/**
* get the service contract list
*
* @throws AppException
* if there is an exception during the treatment
*/
@Override
protected ServiceContractsSearchResponse doSpecificRequest( ) throws IdentityStoreException | |
| File | Line |
|---|---|
| fr/paris/lutece/plugins/identitystore/v3/web/request/referentiel/AttributeKeyListGetRequest.java | 68 |
| fr/paris/lutece/plugins/identitystore/v3/web/request/referentiel/LevelListGetRequest.java | 68 |
public AttributeKeyListGetRequest( final String strClientCode, final String strAppCode, final String authorName, final String authorType )
throws IdentityStoreException
{
super( strClientCode, strAppCode, authorName, authorType );
}
@Override
protected void fetchResources( ) throws ResourceNotFoundException
{
// do nothing
}
@Override
protected void validateRequestFormat( ) throws RequestFormatException
{
// do nothing
}
@Override
protected void validateClientAuthorization( ) throws ClientAuthorizationException
{
// do nothing
}
@Override
protected void validateResourcesConsistency( ) throws ResourceConsistencyException
{
// do nothing
}
@Override
protected void formatRequestContent( ) throws RequestContentFormattingException
{
// do nothing
}
@Override
protected void checkDuplicatesConsistency( ) throws DuplicatesConsistencyException
{
// do nothing
}
/**
* get the identity
*
* @throws AppException
* if there is an exception during the treatment
*/
@Override
public AttributeSearchResponse doSpecificRequest( ) throws IdentityStoreException | |