Skip to content

Commit

Permalink
reorganize imports with -Pexamples
Browse files Browse the repository at this point in the history
  • Loading branch information
ivakegg committed Jul 3, 2023
1 parent 27e0b57 commit d2c53e0
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
import javax.security.auth.callback.NameCallback;
import javax.security.auth.login.LoginContext;

import org.jboss.security.JSSESecurityDomain;
import org.jboss.security.auth.callback.ObjectCallback;

import datawave.security.user.UserOperationsBean;
import datawave.security.util.DnUtils;
import datawave.user.AuthorizationsListBase;

import org.jboss.security.JSSESecurityDomain;
import org.jboss.security.auth.callback.ObjectCallback;

/**
* An example timer bean that shows how one would call a secured EJB from an unsecured context, such as a message-driven bean callback.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
import datawave.webservice.query.result.EdgeQueryResponseBase;
import datawave.webservice.result.BaseQueryResponse;
import datawave.webservice.result.EventQueryResponseBase;
import datawave.webservice.result.GenericResponse;
import datawave.webservice.result.VoidResponse;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
Expand All @@ -32,6 +25,15 @@
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.ssl.SSLContextBuilder;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;

import datawave.webservice.query.result.EdgeQueryResponseBase;
import datawave.webservice.result.BaseQueryResponse;
import datawave.webservice.result.EventQueryResponseBase;
import datawave.webservice.result.GenericResponse;
import datawave.webservice.result.VoidResponse;

/**
* An example showing a simple query to the DATAWAVE web service, using the client classes to simplify parsing the query response.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,8 @@
import java.util.ArrayList;
import java.util.List;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;
import datawave.webservice.query.result.EdgeQueryResponseBase;
import datawave.webservice.result.BaseQueryResponse;
import datawave.webservice.result.EventQueryResponseBase;
import datawave.webservice.result.GenericResponse;
import datawave.webservice.result.VoidResponse;
import javax.net.ssl.SSLContext;

import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
Expand All @@ -34,7 +25,18 @@
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.ssl.SSLContextBuilder;

import javax.net.ssl.SSLContext;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.ParameterException;
import com.fasterxml.jackson.databind.AnnotationIntrospector;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector;

import datawave.webservice.query.result.EdgeQueryResponseBase;
import datawave.webservice.result.BaseQueryResponse;
import datawave.webservice.result.EventQueryResponseBase;
import datawave.webservice.result.GenericResponse;
import datawave.webservice.result.VoidResponse;

/**
* An example showing a simple query to the DATAWAVE web service, using the client classes to simplify parsing the query response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
import java.util.ArrayList;
import java.util.List;

import org.apache.http.message.BasicNameValuePair;

import com.beust.jcommander.IStringConverter;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.ParameterException;

import datawave.webservice.result.DefaultEventQueryResponse;
import org.apache.http.message.BasicNameValuePair;

class Options {
@Parameter(names = {"-b", "--baseURI"}, required = true, description = "The base URI for running queries.")
Expand Down

0 comments on commit d2c53e0

Please sign in to comment.