com.avalara.avatax.services.address
Class IsAuthorizedResult

java.lang.Object
  extended by com.avalara.avatax.services.address.BaseResult
      extended by com.avalara.avatax.services.address.IsAuthorizedResult
All Implemented Interfaces:
java.io.Serializable

public class IsAuthorizedResult
extends BaseResult
implements java.io.Serializable

Result information returned from the AddressSvc's AddressSvcSoap.isAuthorized(java.lang.String) method and the TaxSvc's TaxSvcSoap.isAuthorized(java.lang.String) method.

Example:

 [Java]
  EngineConfiguration config = new FileProvider("avatax4j.wsdd");
  AddressSvcLocator AddressSvc = new AddressSvcLocator(config);

  AddressSvcSoap port = AddressSvc.getAddressSvcSoap(new URL("http://www.avalara.com/services/"));

  // Set the profile
  Profile profile = new Profile();
  profile.setClient("AddressSvcTest,4.0.0.0");
  port.setProfile(profile);

  // Set security
  Security security = new Security();
  security.setAccount("account");
  security.setLicense("license number");
  port.setSecurity(security);

  PingResult result = port.ping("");
  int numMessages = (result.getMessages() == null ||
          result.getMessages().getMessage() == null ? 0 :
          result.getMessages().getMessage().length);
  JOptionPane.showMessageDialog(null, "Result Code: " + result.getResultCode().toString() + "\r\n" +
      "# Messages: " + numMessages + "\r\n" +
      "Service Version: " + result.getVersion(), "Ping Result",
          JOptionPane.INFORMATION_MESSAGE);



 

See Also:
Serialized Form

Constructor Summary
IsAuthorizedResult()
          Initializes a new instance of the class.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether the specified Object is equal to the current Object.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.
 java.util.Calendar getExpires()
          Indicates the subscription expiration date in yyyy-mm-dd format (e.g.
 java.lang.String getOperations()
          Authorized operations for the user.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.
 int hashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 void setExpires(java.util.Calendar expires)
          Indicates the subscription expiration date in yyyy-mm-dd format (e.g.
 void setOperations(java.lang.String operations)
          Authorized operations for the user.
 
Methods inherited from class com.avalara.avatax.services.address.BaseResult
getMessages, getResultCode, getTransactionId, setMessages, setResultCode, setTransactionId
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsAuthorizedResult

public IsAuthorizedResult()
Initializes a new instance of the class.

Method Detail

getOperations

public java.lang.String getOperations()
Authorized operations for the user.
Example: "GetTax,PostTax"
This will contain a comma-delimited list of the the requested operations the user is authorized to invoke. For security, it will not return any operations other than those requested.

Returns:
operations

setOperations

public void setOperations(java.lang.String operations)
Authorized operations for the user.
Example: "GetTax,PostTax"
This will contain a comma-delimited list of the the requested operations the user is authorized to invoke. For security, it will not return any operations other than those requested.

Parameters:
operations -

getExpires

public java.util.Calendar getExpires()
Indicates the subscription expiration date in yyyy-mm-dd format (e.g. 2005-01-29).

Returns:
expires

setExpires

public void setExpires(java.util.Calendar expires)
Indicates the subscription expiration date in yyyy-mm-dd format (e.g. 2005-01-29).

Parameters:
expires -

equals

public boolean equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. Note: In current implementation all Java Strings members of the two objects must be exactly alike, including in case, for equal to return true.

Overrides:
equals in class BaseResult
Parameters:
obj -
Returns:
true or false, indicating if the two objects are equal.

hashCode

public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class BaseResult
Returns:
hash code for this GetTaxRequest object
See Also:
Object.hashCode()

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.

Returns:
Type Description

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Serializer

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Deserializer