private void checkEntityId(EntityId entityId) throws MissingRequestParameterException { if (nullOrEmpty(entityId.getId())) { throw new MissingRequestParameterException("id", "string"); } if (nullOrEmpty(entityId.getType())) { throw new MissingRequestParameterException("type", "string"); } if (entityId.getIsPattern() == null) { entityId.setIsPattern(false); } }
private void checkEntityId(EntityId entityId) throws MissingRequestParameterException { if (nullOrEmpty(entityId.getId())) { throw new MissingRequestParameterException("id", "string"); } if (nullOrEmpty(entityId.getType())) { throw new MissingRequestParameterException("type", "string"); } if (entityId.getIsPattern() == null) { entityId.setIsPattern(false); } }