Skip to content

Commit

Permalink
Renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Aug 22, 2024
1 parent 146fa89 commit 172945d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,17 @@ public IJsonObject getAsJson ()
final IJsonObject ret = new JsonObject ();
ret.addJson ("businesscard", m_aBusinessCard.getAsJson ());
ret.addJson ("doctypes",
new JsonArray ().addAllMapped (m_aDocumentTypeIDs, x -> PDIdentifier.getAsJson (x.getScheme (), x.getValue ())));
new JsonArray ().addAllMapped (m_aDocumentTypeIDs,
x -> PDIdentifier.getAsJson (x.getScheme (), x.getValue ())));
return ret;
}

@Override
public String toString ()
{
return new ToStringGenerator (this).append ("BusinessCard", m_aBusinessCard).append ("DocTypeIDs", m_aDocumentTypeIDs).getToString ();
return new ToStringGenerator (this).append ("BusinessCard", m_aBusinessCard)
.append ("DocTypeIDs", m_aDocumentTypeIDs)
.getToString ();
}

@Nonnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ public Response createOrUpdateParticipant (@Context @Nonnull final HttpServletRe
@Nonnull final String sParticipantID)
{
final String sLogPrefix = "[createOrUpdateParticipant] ";
final ClientCertificateValidationResult aResult = _checkClientCertificate (aHttpServletRequest, sLogPrefix);
if (aResult.isFailure ())
final ClientCertificateValidationResult aCertValidationResult = _checkClientCertificate (aHttpServletRequest,
sLogPrefix);
if (aCertValidationResult.isFailure ())
return Response.status (Response.Status.FORBIDDEN).build ();

final String sRealParticipantID = _unifyPID (sParticipantID);
Expand All @@ -126,7 +127,7 @@ public Response createOrUpdateParticipant (@Context @Nonnull final HttpServletRe
if (PDMetaManager.getIndexerMgr ()
.queueWorkItem (aPI,
EIndexerWorkItemType.CREATE_UPDATE,
aResult.getClientID (),
aCertValidationResult.getClientID (),
_getRequestingHost (aHttpServletRequest))
.isUnchanged ())
{
Expand All @@ -142,8 +143,9 @@ public Response deleteParticipant (@Context @Nonnull final HttpServletRequest aH
@PathParam ("participantID") @Nonnull final String sParticipantID)
{
final String sLogPrefix = "[deleteParticipant] ";
final ClientCertificateValidationResult aResult = _checkClientCertificate (aHttpServletRequest, sLogPrefix);
if (aResult.isFailure ())
final ClientCertificateValidationResult aCertValidationResult = _checkClientCertificate (aHttpServletRequest,
sLogPrefix);
if (aCertValidationResult.isFailure ())
return Response.status (Response.Status.FORBIDDEN).build ();

final String sRealParticipantID = _unifyPID (sParticipantID);
Expand All @@ -165,7 +167,7 @@ public Response deleteParticipant (@Context @Nonnull final HttpServletRequest aH
if (PDMetaManager.getIndexerMgr ()
.queueWorkItem (aPI,
EIndexerWorkItemType.DELETE,
aResult.getClientID (),
aCertValidationResult.getClientID (),
_getRequestingHost (aHttpServletRequest))
.isUnchanged ())
{
Expand Down

0 comments on commit 172945d

Please sign in to comment.