@Read(type = OperationDefinition.class) public OperationDefinition readOperationDefinition(@IdParam IdType theId) { if (theId == null || theId.hasIdPart() == false) { throw new ResourceNotFoundException(theId); } List<OperationMethodBinding> operationBindings = myOperationNameToBindings.get(theId.getIdPart()); if (operationBindings != null && !operationBindings.isEmpty()) { return readOperationDefinitionForOperation(operationBindings); } List<SearchMethodBinding> searchBindings = mySearchNameToBindings.get(theId.getIdPart()); if (searchBindings != null && !searchBindings.isEmpty()) { return readOperationDefinitionForNamedSearch(searchBindings); } throw new ResourceNotFoundException(theId); }
private IIdType bindSimple(WebSocketSession theSession, String theBindString) { IdType id = new IdType(theBindString); if (!id.hasIdPart() || !id.isIdPartValid()) { try { String message = "Invalid bind request - No ID included"; ourLog.warn(message); theSession.close(new CloseStatus(CloseStatus.PROTOCOL_ERROR.getCode(), message)); } catch (IOException e) { handleFailure(e); } return null; } if (id.hasResourceType() == false) { id = id.withResourceType("Subscription"); } try { ActiveSubscription activeSubscription = mySubscriptionRegistry.get(id.getIdPart()); myState = new BoundStaticSubscipriptionState( theSession, activeSubscription); } catch (ResourceNotFoundException e) { try { String message = "Invalid bind request - Unknown subscription: " + id.getValue(); ourLog.warn(message); theSession.close(new CloseStatus(CloseStatus.PROTOCOL_ERROR.getCode(), message)); } catch (IOException e1) { handleFailure(e); } return null; } return id; }
IdType id = new IdType(theUri); boolean localReference = false; if (id.hasBaseUrl() == false && id.hasIdPart() == true) { localReference = true;
RequestDetails theRequestDetails) { boolean haveId = theId != null && theId.hasIdPart(); boolean haveIdentifier = theUrl != null && isNotBlank(theUrl.getValue()); boolean haveValueSet = theValueSet != null && theValueSet.isEmpty() == false;
@Read(type = OperationDefinition.class) public OperationDefinition readOperationDefinition(@IdParam IdType theId) { if (theId == null || theId.hasIdPart() == false) { throw new ResourceNotFoundException(theId); } List<OperationMethodBinding> operationBindings = myOperationNameToBindings.get(theId.getIdPart()); if (operationBindings != null && !operationBindings.isEmpty()) { return readOperationDefinitionForOperation(operationBindings); } List<SearchMethodBinding> searchBindings = mySearchNameToBindings.get(theId.getIdPart()); if (searchBindings != null && !searchBindings.isEmpty()) { return readOperationDefinitionForNamedSearch(searchBindings); } throw new ResourceNotFoundException(theId); }
&& theTargetCodeSystem.hasValue(); boolean haveReverse = theReverse != null; boolean haveId = theId != null && theId.hasIdPart();
IdType id = new IdType(theUri); boolean localReference = false; if (id.hasBaseUrl() == false && id.hasIdPart() == true) { localReference = true;
RequestDetails theRequestDetails) { boolean haveId = theId != null && theId.hasIdPart(); boolean haveIdentifier = theUrl != null && isNotBlank(theUrl.getValue()); boolean haveValueSet = theValueSet != null && theValueSet.isEmpty() == false;
&& theTargetCodeSystem.hasValue(); boolean haveReverse = theReverse != null; boolean haveId = theId != null && theId.hasIdPart();