repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.getAuthHeader | private String getAuthHeader() {
String base64ClientIdSec = DatatypeConverter.printBase64Binary((oauth2Config.getClientId() + ":" + oauth2Config.getClientSecret()).getBytes());
return "Basic " + base64ClientIdSec;
} | java | private String getAuthHeader() {
String base64ClientIdSec = DatatypeConverter.printBase64Binary((oauth2Config.getClientId() + ":" + oauth2Config.getClientSecret()).getBytes());
return "Basic " + base64ClientIdSec;
} | [
"private",
"String",
"getAuthHeader",
"(",
")",
"{",
"String",
"base64ClientIdSec",
"=",
"DatatypeConverter",
".",
"printBase64Binary",
"(",
"(",
"oauth2Config",
".",
"getClientId",
"(",
")",
"+",
"\":\"",
"+",
"oauth2Config",
".",
"getClientSecret",
"(",
")",
"... | Method to generate auth header based on client ID and Client Secret
@return | [
"Method",
"to",
"generate",
"auth",
"header",
"based",
"on",
"client",
"ID",
"and",
"Client",
"Secret"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L224-L227 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.getUserInfo | public UserInfoResponse getUserInfo(String accessToken) throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::getUserInfo");
try {
HttpRequestClient client = new HttpRequestClient(oauth2Config.getProxyConfig());
Request request = new Request.RequestBuilder(... | java | public UserInfoResponse getUserInfo(String accessToken) throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::getUserInfo");
try {
HttpRequestClient client = new HttpRequestClient(oauth2Config.getProxyConfig());
Request request = new Request.RequestBuilder(... | [
"public",
"UserInfoResponse",
"getUserInfo",
"(",
"String",
"accessToken",
")",
"throws",
"OpenIdException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter OAuth2PlatformClient::getUserInfo\"",
")",
";",
"try",
"{",
"HttpRequestClient",
"client",
"=",
"new",
"HttpRequestCli... | Method to retrieve UserInfo data associated with the accessToken generated
The response depends on the Scope supplied during openId
@param accessToken
@return
@throws OpenIdException | [
"Method",
"to",
"retrieve",
"UserInfo",
"data",
"associated",
"with",
"the",
"accessToken",
"generated",
"The",
"response",
"depends",
"on",
"the",
"Scope",
"supplied",
"during",
"openId"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L237-L265 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.validateIDToken | public boolean validateIDToken(String idToken) throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::validateIDToken");
String[] idTokenParts = idToken.split("\\.");
if (idTokenParts.length < 3) {
logger.debug("invalid idTokenParts length");
... | java | public boolean validateIDToken(String idToken) throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::validateIDToken");
String[] idTokenParts = idToken.split("\\.");
if (idTokenParts.length < 3) {
logger.debug("invalid idTokenParts length");
... | [
"public",
"boolean",
"validateIDToken",
"(",
"String",
"idToken",
")",
"throws",
"OpenIdException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter OAuth2PlatformClient::validateIDToken\"",
")",
";",
"String",
"[",
"]",
"idTokenParts",
"=",
"idToken",
".",
"split",
"(",
... | Method to validate IDToken
@param idToken
@param clientId
@return
@throws OpenIdException | [
"Method",
"to",
"validate",
"IDToken"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L275-L349 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.getKeyMapFromJWKSUri | private HashMap<String, JSONObject> getKeyMapFromJWKSUri() throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::getKeyMapFromJWKSUri");
try {
HttpRequestClient client = new HttpRequestClient(oauth2Config.getProxyConfig());
Request requ... | java | private HashMap<String, JSONObject> getKeyMapFromJWKSUri() throws OpenIdException {
logger.debug("Enter OAuth2PlatformClient::getKeyMapFromJWKSUri");
try {
HttpRequestClient client = new HttpRequestClient(oauth2Config.getProxyConfig());
Request requ... | [
"private",
"HashMap",
"<",
"String",
",",
"JSONObject",
">",
"getKeyMapFromJWKSUri",
"(",
")",
"throws",
"OpenIdException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter OAuth2PlatformClient::getKeyMapFromJWKSUri\"",
")",
";",
"try",
"{",
"HttpRequestClient",
"client",
"... | Build JWKS keymap
@return
@throws OpenIdException | [
"Build",
"JWKS",
"keymap"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L357-L382 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.getPublicKey | private PublicKey getPublicKey(String MODULUS, String EXPONENT) {
byte[] nb = base64UrlDecodeToBytes(MODULUS);
byte[] eb = base64UrlDecodeToBytes(EXPONENT);
BigInteger n = new BigInteger(1, nb);
BigInteger e = new BigInteger(1, eb);
RSAPublicKeySpec rsaPublicKeySpec = new RSAPub... | java | private PublicKey getPublicKey(String MODULUS, String EXPONENT) {
byte[] nb = base64UrlDecodeToBytes(MODULUS);
byte[] eb = base64UrlDecodeToBytes(EXPONENT);
BigInteger n = new BigInteger(1, nb);
BigInteger e = new BigInteger(1, eb);
RSAPublicKeySpec rsaPublicKeySpec = new RSAPub... | [
"private",
"PublicKey",
"getPublicKey",
"(",
"String",
"MODULUS",
",",
"String",
"EXPONENT",
")",
"{",
"byte",
"[",
"]",
"nb",
"=",
"base64UrlDecodeToBytes",
"(",
"MODULUS",
")",
";",
"byte",
"[",
"]",
"eb",
"=",
"base64UrlDecodeToBytes",
"(",
"EXPONENT",
")... | Build public key
@param MODULUS
@param EXPONENT
@return | [
"Build",
"public",
"key"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L391-L405 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java | OAuth2PlatformClient.buildKeyMap | private HashMap<String, JSONObject> buildKeyMap(String content) throws ConnectionException {
HashMap<String, JSONObject> retMap = new HashMap<String, JSONObject>();
JSONObject jwksPayload = new JSONObject(content);
JSONArray keysArray = jwksPayload.getJSONArray("keys");
for (int i=0;i<k... | java | private HashMap<String, JSONObject> buildKeyMap(String content) throws ConnectionException {
HashMap<String, JSONObject> retMap = new HashMap<String, JSONObject>();
JSONObject jwksPayload = new JSONObject(content);
JSONArray keysArray = jwksPayload.getJSONArray("keys");
for (int i=0;i<k... | [
"private",
"HashMap",
"<",
"String",
",",
"JSONObject",
">",
"buildKeyMap",
"(",
"String",
"content",
")",
"throws",
"ConnectionException",
"{",
"HashMap",
"<",
"String",
",",
"JSONObject",
">",
"retMap",
"=",
"new",
"HashMap",
"<",
"String",
",",
"JSONObject"... | Build Map from response
@param content
@return
@throws ConnectionException | [
"Build",
"Map",
"from",
"response"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/client/OAuth2PlatformClient.java#L452-L463 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.eq | public Expression<String> eq(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.eq, valueString);
} | java | public Expression<String> eq(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.eq, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"eq",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"eq",
","... | Method to construct the equals expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"equals",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L43-L46 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.neq | public Expression<String> neq(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.neq, valueString);
} | java | public Expression<String> neq(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.neq, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"neq",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"neq",
"... | Method to construct the not equals expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"not",
"equals",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L54-L57 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.lt | public Expression<String> lt(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.lt, valueString);
} | java | public Expression<String> lt(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.lt, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"lt",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"lt",
","... | Method to construct the less than expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"less",
"than",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L65-L68 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.lte | public Expression<String> lte(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.lte, valueString);
} | java | public Expression<String> lte(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.lte, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"lte",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"lte",
"... | Method to construct the less than or equals expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"less",
"than",
"or",
"equals",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L76-L79 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.gt | public Expression<String> gt(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.gt, valueString);
} | java | public Expression<String> gt(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.gt, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"gt",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"gt",
","... | Method to construct the greater than expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"greater",
"than",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L87-L90 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.gte | public Expression<String> gte(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.gte, valueString);
} | java | public Expression<String> gte(String value) {
String valueString = "'" + value + "'";
return new Expression<String>(this, Operation.gte, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"gte",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"gte",
"... | Method to construct the greater than or equals expression for string
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"greater",
"than",
"or",
"equals",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L98-L101 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.in | public Expression<String> in(String[] value) {
String listString = "";
Boolean firstString = true;
for (String v : value) {
if (firstString) {
listString = listString.concat("('").concat(v).concat("'");
firstString = false;
} else {
listString = listString.concat(", '").concat(v).concat("'");
... | java | public Expression<String> in(String[] value) {
String listString = "";
Boolean firstString = true;
for (String v : value) {
if (firstString) {
listString = listString.concat("('").concat(v).concat("'");
firstString = false;
} else {
listString = listString.concat(", '").concat(v).concat("'");
... | [
"public",
"Expression",
"<",
"String",
">",
"in",
"(",
"String",
"[",
"]",
"value",
")",
"{",
"String",
"listString",
"=",
"\"\"",
";",
"Boolean",
"firstString",
"=",
"true",
";",
"for",
"(",
"String",
"v",
":",
"value",
")",
"{",
"if",
"(",
"firstSt... | Method to construct the in expression for string
@param value the string array
@return Expression | [
"Method",
"to",
"construct",
"the",
"in",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L109-L122 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.startsWith | public Expression<String> startsWith(String value) {
String valueString = "'" + value + "%'";
return new Expression<String>(this, Operation.like, valueString);
} | java | public Expression<String> startsWith(String value) {
String valueString = "'" + value + "%'";
return new Expression<String>(this, Operation.like, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"startsWith",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"value",
"+",
"\"%'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"l... | Method to construct the like expression for string starts with
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"like",
"expression",
"for",
"string",
"starts",
"with"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L130-L133 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.endsWith | public Expression<String> endsWith(String value) {
String valueString = "'%" + value + "'";
return new Expression<String>(this, Operation.like, valueString);
} | java | public Expression<String> endsWith(String value) {
String valueString = "'%" + value + "'";
return new Expression<String>(this, Operation.like, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"endsWith",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'%\"",
"+",
"value",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"lik... | Method to construct the like expression for string ends with
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"like",
"expression",
"for",
"string",
"ends",
"with"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L141-L144 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.contains | public Expression<String> contains(String value) {
String valueString = "'%" + value + "%'";
return new Expression<String>(this, Operation.like, valueString);
} | java | public Expression<String> contains(String value) {
String valueString = "'%" + value + "%'";
return new Expression<String>(this, Operation.like, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"contains",
"(",
"String",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'%\"",
"+",
"value",
"+",
"\"%'\"",
";",
"return",
"new",
"Expression",
"<",
"String",
">",
"(",
"this",
",",
"Operation",
".",
"li... | Method to construct the like expression for string contains
@param value the string value
@return Expression | [
"Method",
"to",
"construct",
"the",
"like",
"expression",
"for",
"string",
"contains"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L152-L155 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java | StringPath.between | public Expression<String> between(String startValue, String endValue) {
String valueString = "'" + startValue + "' AND '" + endValue + "'";
return new Expression<String>(this, Operation.between, valueString);
} | java | public Expression<String> between(String startValue, String endValue) {
String valueString = "'" + startValue + "' AND '" + endValue + "'";
return new Expression<String>(this, Operation.between, valueString);
} | [
"public",
"Expression",
"<",
"String",
">",
"between",
"(",
"String",
"startValue",
",",
"String",
"endValue",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"startValue",
"+",
"\"' AND '\"",
"+",
"endValue",
"+",
"\"'\"",
";",
"return",
"new",
"Expre... | Method to construct the between expression for string
@param startValue the start value
@param endValue the end value
@return Expression | [
"Method",
"to",
"construct",
"the",
"between",
"expression",
"for",
"string"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/StringPath.java#L164-L167 | train |
intuit/QuickBooks-V3-Java-SDK | oauth2-platform-api/src/main/java/com/intuit/oauth2/http/Response.java | Response.getContent | public String getContent() throws ConnectionException {
logger.debug("Enter Response::getContent");
if (content != null) {
logger.debug("content already available ");
return content;
}
BufferedReader rd = new BufferedReader(new InputStreamReader(stream));
StringB... | java | public String getContent() throws ConnectionException {
logger.debug("Enter Response::getContent");
if (content != null) {
logger.debug("content already available ");
return content;
}
BufferedReader rd = new BufferedReader(new InputStreamReader(stream));
StringB... | [
"public",
"String",
"getContent",
"(",
")",
"throws",
"ConnectionException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter Response::getContent\"",
")",
";",
"if",
"(",
"content",
"!=",
"null",
")",
"{",
"logger",
".",
"debug",
"(",
"\"content already available \"",
... | Returns the json content from http response
@return
@throws ConnectionException | [
"Returns",
"the",
"json",
"content",
"from",
"http",
"response"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/oauth2-platform-api/src/main/java/com/intuit/oauth2/http/Response.java#L53-L77 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/util/Config.java | Config.setProperty | public static void setProperty(String key, String value) {
local.get().cc.setProperty(key, value);
} | java | public static void setProperty(String key, String value) {
local.get().cc.setProperty(key, value);
} | [
"public",
"static",
"void",
"setProperty",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"local",
".",
"get",
"(",
")",
".",
"cc",
".",
"setProperty",
"(",
"key",
",",
"value",
")",
";",
"}"
] | Sets the property to the configuration
@param key
@param value | [
"Sets",
"the",
"property",
"to",
"the",
"configuration"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/util/Config.java#L251-L253 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/util/Config.java | Config.getBooleanProperty | public static Boolean getBooleanProperty(String key, Boolean defaultValue) {
String value = getProperty(key);
if((null == value) || value.isEmpty() ) {
return (null == defaultValue) ? false : defaultValue;
}
if("null".equals(value.toLowerCase()) && (null != defaultValue) ) {
... | java | public static Boolean getBooleanProperty(String key, Boolean defaultValue) {
String value = getProperty(key);
if((null == value) || value.isEmpty() ) {
return (null == defaultValue) ? false : defaultValue;
}
if("null".equals(value.toLowerCase()) && (null != defaultValue) ) {
... | [
"public",
"static",
"Boolean",
"getBooleanProperty",
"(",
"String",
"key",
",",
"Boolean",
"defaultValue",
")",
"{",
"String",
"value",
"=",
"getProperty",
"(",
"key",
")",
";",
"if",
"(",
"(",
"null",
"==",
"value",
")",
"||",
"value",
".",
"isEmpty",
"... | Returns boolean value for specified property and default value
@param key
@param defaultValue
@return | [
"Returns",
"boolean",
"value",
"for",
"specified",
"property",
"and",
"default",
"value"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/util/Config.java#L272-L281 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.getDateTimeFormatter | private SimpleDateFormat getDateTimeFormatter() {
SimpleDateFormat formatter = new SimpleDateFormat();
formatter.applyPattern("yyyy-MM-dd'T'HH:mm:ss");
formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
return formatter;
} | java | private SimpleDateFormat getDateTimeFormatter() {
SimpleDateFormat formatter = new SimpleDateFormat();
formatter.applyPattern("yyyy-MM-dd'T'HH:mm:ss");
formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
return formatter;
} | [
"private",
"SimpleDateFormat",
"getDateTimeFormatter",
"(",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"new",
"SimpleDateFormat",
"(",
")",
";",
"formatter",
".",
"applyPattern",
"(",
"\"yyyy-MM-dd'T'HH:mm:ss\"",
")",
";",
"formatter",
".",
"setTimeZone",
"(",
... | Method to get simple date format
@return SimpleDateFormat | [
"Method",
"to",
"get",
"simple",
"date",
"format"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L47-L52 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.getCalendarAsString | private String getCalendarAsString(Calendar cal) {
SimpleDateFormat formatter = getDateTimeFormatter();
Date date = cal.getTime();
return formatter.format(date).concat("Z");
} | java | private String getCalendarAsString(Calendar cal) {
SimpleDateFormat formatter = getDateTimeFormatter();
Date date = cal.getTime();
return formatter.format(date).concat("Z");
} | [
"private",
"String",
"getCalendarAsString",
"(",
"Calendar",
"cal",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"getDateTimeFormatter",
"(",
")",
";",
"Date",
"date",
"=",
"cal",
".",
"getTime",
"(",
")",
";",
"return",
"formatter",
".",
"format",
"(",
"... | Method to get string value of date from Calendar
@return String the date | [
"Method",
"to",
"get",
"string",
"value",
"of",
"date",
"from",
"Calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L70-L74 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.eq | public Expression<Calendar> eq(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.eq, valueString);
} | java | public Expression<Calendar> eq(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.eq, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"eq",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"this... | Method to construct the equals expression for Calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"equals",
"expression",
"for",
"Calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L82-L85 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.neq | public Expression<Calendar> neq(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.neq, valueString);
} | java | public Expression<Calendar> neq(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.neq, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"neq",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"thi... | Method to construct the not equals expression for Calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"not",
"equals",
"expression",
"for",
"Calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L117-L120 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.lt | public Expression<Calendar> lt(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.lt, valueString);
} | java | public Expression<Calendar> lt(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.lt, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"lt",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"this... | Method to construct the less than expression for calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"less",
"than",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L152-L155 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.lte | public Expression<Calendar> lte(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.lte, valueString);
} | java | public Expression<Calendar> lte(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.lte, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"lte",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"thi... | Method to construct the less than or equals expression for calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"less",
"than",
"or",
"equals",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L187-L190 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.lte | public Expression<java.sql.Date> lte(java.sql.Date value) {
SimpleDateFormat formatter = getDateFormatter();
String valueString = "'" + formatter.format(value) + "'";
return new Expression<java.sql.Date>(this, Operation.lte, valueString);
} | java | public Expression<java.sql.Date> lte(java.sql.Date value) {
SimpleDateFormat formatter = getDateFormatter();
String valueString = "'" + formatter.format(value) + "'";
return new Expression<java.sql.Date>(this, Operation.lte, valueString);
} | [
"public",
"Expression",
"<",
"java",
".",
"sql",
".",
"Date",
">",
"lte",
"(",
"java",
".",
"sql",
".",
"Date",
"value",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"getDateFormatter",
"(",
")",
";",
"String",
"valueString",
"=",
"\"'\"",
"+",
"forma... | Method to construct the less than or equals expression for date
@param value the date value
@return Expression | [
"Method",
"to",
"construct",
"the",
"less",
"than",
"or",
"equals",
"expression",
"for",
"date"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L210-L214 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.gt | public Expression<Calendar> gt(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.gt, valueString);
} | java | public Expression<Calendar> gt(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.gt, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"gt",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"this... | Method to construct the greater than expression for calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"greater",
"than",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L222-L225 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.gt | public Expression<java.util.Date> gt(java.util.Date value) {
SimpleDateFormat formatter = getDateTimeFormatter();
String valueString = "'" + formatter.format(value).concat("Z") + "'";
return new Expression<java.util.Date>(this, Operation.gt, valueString);
} | java | public Expression<java.util.Date> gt(java.util.Date value) {
SimpleDateFormat formatter = getDateTimeFormatter();
String valueString = "'" + formatter.format(value).concat("Z") + "'";
return new Expression<java.util.Date>(this, Operation.gt, valueString);
} | [
"public",
"Expression",
"<",
"java",
".",
"util",
".",
"Date",
">",
"gt",
"(",
"java",
".",
"util",
".",
"Date",
"value",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"getDateTimeFormatter",
"(",
")",
";",
"String",
"valueString",
"=",
"\"'\"",
"+",
"... | Method to construct the greater than expression for date
@param value the date value
@return Expression | [
"Method",
"to",
"construct",
"the",
"greater",
"than",
"expression",
"for",
"date"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L233-L237 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.gte | public Expression<Calendar> gte(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.gte, valueString);
} | java | public Expression<Calendar> gte(Calendar value) {
String valueString = "'" + getCalendarAsString(value) + "'";
return new Expression<Calendar>(this, Operation.gte, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"gte",
"(",
"Calendar",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"value",
")",
"+",
"\"'\"",
";",
"return",
"new",
"Expression",
"<",
"Calendar",
">",
"(",
"thi... | Method to construct the greater than or equals expression for calendar
@param value the calendar value
@return Expression | [
"Method",
"to",
"construct",
"the",
"greater",
"than",
"or",
"equals",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L257-L260 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.in | public Expression<Calendar> in(Calendar[] value) {
String valueString = "";
Boolean firstCalendar = true;
for (Calendar v : value) {
if (firstCalendar) {
valueString = valueString.concat("('").concat(getCalendarAsString(v)).concat("'");
firstCalendar = false;
} else {
valueString = valueString.c... | java | public Expression<Calendar> in(Calendar[] value) {
String valueString = "";
Boolean firstCalendar = true;
for (Calendar v : value) {
if (firstCalendar) {
valueString = valueString.concat("('").concat(getCalendarAsString(v)).concat("'");
firstCalendar = false;
} else {
valueString = valueString.c... | [
"public",
"Expression",
"<",
"Calendar",
">",
"in",
"(",
"Calendar",
"[",
"]",
"value",
")",
"{",
"String",
"valueString",
"=",
"\"\"",
";",
"Boolean",
"firstCalendar",
"=",
"true",
";",
"for",
"(",
"Calendar",
"v",
":",
"value",
")",
"{",
"if",
"(",
... | Method to construct the in expression for calendar
@param value the calendar array
@return Expression | [
"Method",
"to",
"construct",
"the",
"in",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L292-L306 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.in | public Expression<java.util.Date> in(java.util.Date[] value) {
SimpleDateFormat formatter = getDateTimeFormatter();
String valueString = "";
Boolean firstCalendar = true;
for (Date v : value) {
if (firstCalendar) {
valueString = valueString.concat("('").concat(formatter.format(v).concat("Z")).concat("'")... | java | public Expression<java.util.Date> in(java.util.Date[] value) {
SimpleDateFormat formatter = getDateTimeFormatter();
String valueString = "";
Boolean firstCalendar = true;
for (Date v : value) {
if (firstCalendar) {
valueString = valueString.concat("('").concat(formatter.format(v).concat("Z")).concat("'")... | [
"public",
"Expression",
"<",
"java",
".",
"util",
".",
"Date",
">",
"in",
"(",
"java",
".",
"util",
".",
"Date",
"[",
"]",
"value",
")",
"{",
"SimpleDateFormat",
"formatter",
"=",
"getDateTimeFormatter",
"(",
")",
";",
"String",
"valueString",
"=",
"\"\"... | Method to construct the in expression for date
@param value the date array
@return Expression | [
"Method",
"to",
"construct",
"the",
"in",
"expression",
"for",
"date"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L314-L329 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java | CalendarPath.between | public Expression<Calendar> between(Calendar startValue, Calendar endValue) {
String valueString = "'" + getCalendarAsString(startValue).concat("Z") + "' AND '" + getCalendarAsString(endValue) + "'";
return new Expression<Calendar>(this, Operation.between, valueString);
} | java | public Expression<Calendar> between(Calendar startValue, Calendar endValue) {
String valueString = "'" + getCalendarAsString(startValue).concat("Z") + "' AND '" + getCalendarAsString(endValue) + "'";
return new Expression<Calendar>(this, Operation.between, valueString);
} | [
"public",
"Expression",
"<",
"Calendar",
">",
"between",
"(",
"Calendar",
"startValue",
",",
"Calendar",
"endValue",
")",
"{",
"String",
"valueString",
"=",
"\"'\"",
"+",
"getCalendarAsString",
"(",
"startValue",
")",
".",
"concat",
"(",
"\"Z\"",
")",
"+",
"... | Method to construct the between expression for calendar
@param startValue the start value
@param endValue the end value
@return Expression | [
"Method",
"to",
"construct",
"the",
"between",
"expression",
"for",
"calendar"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/query/expr/CalendarPath.java#L361-L364 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java | HTTPURLConnectionInterceptor.setResponseElements | private void setResponseElements(IntuitMessage intuitMessage, HttpURLConnection httpUrlConnection) throws FMSException {
LOG.debug("Response headers:"+httpUrlConnection.getHeaderFields());
ResponseElements responseElements = intuitMessage.getResponseElements();
responseElements.setEncodingHeader(httpUrlConnection... | java | private void setResponseElements(IntuitMessage intuitMessage, HttpURLConnection httpUrlConnection) throws FMSException {
LOG.debug("Response headers:"+httpUrlConnection.getHeaderFields());
ResponseElements responseElements = intuitMessage.getResponseElements();
responseElements.setEncodingHeader(httpUrlConnection... | [
"private",
"void",
"setResponseElements",
"(",
"IntuitMessage",
"intuitMessage",
",",
"HttpURLConnection",
"httpUrlConnection",
")",
"throws",
"FMSException",
"{",
"LOG",
".",
"debug",
"(",
"\"Response headers:\"",
"+",
"httpUrlConnection",
".",
"getHeaderFields",
"(",
... | Method to set the response elements by reading the values from the response | [
"Method",
"to",
"set",
"the",
"response",
"elements",
"by",
"reading",
"the",
"values",
"from",
"the",
"response"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java#L184-L209 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java | HTTPURLConnectionInterceptor.getCopyOfResponseContent | private InputStream getCopyOfResponseContent(InputStream is) throws FMSException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream copyIs = null;
try {
byte[] bbuf = new byte[LENGTH_256];
while (true) {
int r = is.read(bbuf);
if (r < 0) {
break;
}
baos.write(bbuf,... | java | private InputStream getCopyOfResponseContent(InputStream is) throws FMSException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
InputStream copyIs = null;
try {
byte[] bbuf = new byte[LENGTH_256];
while (true) {
int r = is.read(bbuf);
if (r < 0) {
break;
}
baos.write(bbuf,... | [
"private",
"InputStream",
"getCopyOfResponseContent",
"(",
"InputStream",
"is",
")",
"throws",
"FMSException",
"{",
"ByteArrayOutputStream",
"baos",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
";",
"InputStream",
"copyIs",
"=",
"null",
";",
"try",
"{",
"byte",
... | Method to create the copy of the input stream of response body. This is required while decompress the original content
@param is the input stream of the response body
@return InputStream the copy of response body
@throws FMSException the FMSException | [
"Method",
"to",
"create",
"the",
"copy",
"of",
"the",
"input",
"stream",
"of",
"response",
"body",
".",
"This",
"is",
"required",
"while",
"decompress",
"the",
"original",
"content"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java#L218-L244 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java | HTTPURLConnectionInterceptor.setTimeout | private void setTimeout(HttpURLConnection httpUrlConnection) {
String connTimeout = Config.getProperty(Config.TIMEOUT_CONNECTION);
if (StringUtils.hasText(connTimeout)) {
httpUrlConnection.setReadTimeout(new Integer(connTimeout.trim()));
}
String reqTimeout = Config.getProperty(Config.TIMEOUT_REQUEST);
... | java | private void setTimeout(HttpURLConnection httpUrlConnection) {
String connTimeout = Config.getProperty(Config.TIMEOUT_CONNECTION);
if (StringUtils.hasText(connTimeout)) {
httpUrlConnection.setReadTimeout(new Integer(connTimeout.trim()));
}
String reqTimeout = Config.getProperty(Config.TIMEOUT_REQUEST);
... | [
"private",
"void",
"setTimeout",
"(",
"HttpURLConnection",
"httpUrlConnection",
")",
"{",
"String",
"connTimeout",
"=",
"Config",
".",
"getProperty",
"(",
"Config",
".",
"TIMEOUT_CONNECTION",
")",
";",
"if",
"(",
"StringUtils",
".",
"hasText",
"(",
"connTimeout",
... | Method to set the connection and request timeouts by reading from the configuration file | [
"Method",
"to",
"set",
"the",
"connection",
"and",
"request",
"timeouts",
"by",
"reading",
"from",
"the",
"configuration",
"file"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPURLConnectionInterceptor.java#L249-L258 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java | IAPlatformClient.disconnect | public PlatformResponse disconnect(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
return this.httpClient.disconnect();
} | java | public PlatformResponse disconnect(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
return this.httpClient.disconnect();
} | [
"public",
"PlatformResponse",
"disconnect",
"(",
"String",
"consumerKey",
",",
"String",
"consumerSecret",
",",
"String",
"accessToken",
",",
"String",
"accessTokenSecret",
")",
"throws",
"ConnectionException",
"{",
"httpClient",
"=",
"new",
"PlatformHttpClient",
"(",
... | Disconnects the user from quickbooks
@throws ConnectionException | [
"Disconnects",
"the",
"user",
"from",
"quickbooks"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java#L50-L56 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java | IAPlatformClient.getcurrentUser | public User getcurrentUser(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
User user = null;;
try {
user = this.httpClient.getCurrent... | java | public User getcurrentUser(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
User user = null;;
try {
user = this.httpClient.getCurrent... | [
"public",
"User",
"getcurrentUser",
"(",
"String",
"consumerKey",
",",
"String",
"consumerSecret",
",",
"String",
"accessToken",
",",
"String",
"accessTokenSecret",
")",
"throws",
"ConnectionException",
"{",
"httpClient",
"=",
"new",
"PlatformHttpClient",
"(",
"consum... | getCurrentUser the user from quickbooks
@throws ConnectionException | [
"getCurrentUser",
"the",
"user",
"from",
"quickbooks"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java#L62-L74 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java | IAPlatformClient.getAppMenu | public List<String> getAppMenu(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
try {
List<String> menulist;
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
menulist = this.httpCl... | java | public List<String> getAppMenu(String consumerKey, String consumerSecret,
String accessToken, String accessTokenSecret)
throws ConnectionException {
try {
List<String> menulist;
httpClient = new PlatformHttpClient(consumerKey, consumerSecret,
accessToken, accessTokenSecret);
menulist = this.httpCl... | [
"public",
"List",
"<",
"String",
">",
"getAppMenu",
"(",
"String",
"consumerKey",
",",
"String",
"consumerSecret",
",",
"String",
"accessToken",
",",
"String",
"accessTokenSecret",
")",
"throws",
"ConnectionException",
"{",
"try",
"{",
"List",
"<",
"String",
">"... | Get App Menu returns list of all the applications that are linked with
the selected company
@return List<String>: Returns HTML as a list of Strings
@throws ConnectionException | [
"Get",
"App",
"Menu",
"returns",
"list",
"of",
"all",
"the",
"applications",
"that",
"are",
"linked",
"with",
"the",
"selected",
"company"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-java-qbapihelper/src/main/java/com/intuit/ia/connection/IAPlatformClient.java#L84-L99 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/IntuitBatchInterceptorProvider.java | IntuitBatchInterceptorProvider.swapRequestInterceptor | private void swapRequestInterceptor(Class<? extends Interceptor> target, Interceptor interceptor)
{
List<Interceptor> list = this.getRequestInterceptors();
for(Interceptor object : list) {
if(object.getClass() == target) {
list.set(list.indexOf(object),interceptor);
... | java | private void swapRequestInterceptor(Class<? extends Interceptor> target, Interceptor interceptor)
{
List<Interceptor> list = this.getRequestInterceptors();
for(Interceptor object : list) {
if(object.getClass() == target) {
list.set(list.indexOf(object),interceptor);
... | [
"private",
"void",
"swapRequestInterceptor",
"(",
"Class",
"<",
"?",
"extends",
"Interceptor",
">",
"target",
",",
"Interceptor",
"interceptor",
")",
"{",
"List",
"<",
"Interceptor",
">",
"list",
"=",
"this",
".",
"getRequestInterceptors",
"(",
")",
";",
"for"... | Swap one interceptor with new one
@param target subclass of interceptor
@param interceptor new interceptor which will be used instead
TODO do we need to pay attention to safe threading here (expected answer: no) | [
"Swap",
"one",
"interceptor",
"with",
"new",
"one"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/IntuitBatchInterceptorProvider.java#L48-L59 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/SyncErrorDeserializer.java | SyncErrorDeserializer.getSyncObject | private SyncObject getSyncObject(JsonNode jsonNode) {
String name = null;
JsonNode jn1 =null;
SyncObject syncObject = new SyncObject();
Iterator<String> ite = jsonNode.fieldNames();
while (ite.hasNext()) {
String key = ite.next();
if (JsonResourceTypeLocator.lookupType(key) != null) {... | java | private SyncObject getSyncObject(JsonNode jsonNode) {
String name = null;
JsonNode jn1 =null;
SyncObject syncObject = new SyncObject();
Iterator<String> ite = jsonNode.fieldNames();
while (ite.hasNext()) {
String key = ite.next();
if (JsonResourceTypeLocator.lookupType(key) != null) {... | [
"private",
"SyncObject",
"getSyncObject",
"(",
"JsonNode",
"jsonNode",
")",
"{",
"String",
"name",
"=",
"null",
";",
"JsonNode",
"jn1",
"=",
"null",
";",
"SyncObject",
"syncObject",
"=",
"new",
"SyncObject",
"(",
")",
";",
"Iterator",
"<",
"String",
">",
"... | Method to Object Intuitobject
@param JsonNode | [
"Method",
"to",
"Object",
"Intuitobject"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/SyncErrorDeserializer.java#L120-L158 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/services/ECheckService.java | ECheckService.create | public ECheck create(ECheck eCheck) throws BaseException {
logger.debug("Enter ECheckService::create");
// prepare API url
String apiUrl = requestContext.getBaseUrl() + "echecks".replaceAll("\\{format\\}", "json");
logger.info("apiUrl - " + apiUrl);
// assign TypeReference for deserialization
TypeRef... | java | public ECheck create(ECheck eCheck) throws BaseException {
logger.debug("Enter ECheckService::create");
// prepare API url
String apiUrl = requestContext.getBaseUrl() + "echecks".replaceAll("\\{format\\}", "json");
logger.info("apiUrl - " + apiUrl);
// assign TypeReference for deserialization
TypeRef... | [
"public",
"ECheck",
"create",
"(",
"ECheck",
"eCheck",
")",
"throws",
"BaseException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter ECheckService::create\"",
")",
";",
"// prepare API url",
"String",
"apiUrl",
"=",
"requestContext",
".",
"getBaseUrl",
"(",
")",
"+",... | Method to create ECheck
@param eCheck
@return
@throws BaseException | [
"Method",
"to",
"create",
"ECheck"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/services/ECheckService.java#L70-L95 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/services/ECheckService.java | ECheckService.retrieve | public ECheck retrieve(String eCheckId) throws BaseException {
logger.debug("Enter ECheckService::retrieve");
if (StringUtils.isBlank(eCheckId)) {
logger.error("IllegalArgumentException {}", eCheckId);
throw new IllegalArgumentException("eCheckId cannot be empty or null");
}
// prepare API url
Stri... | java | public ECheck retrieve(String eCheckId) throws BaseException {
logger.debug("Enter ECheckService::retrieve");
if (StringUtils.isBlank(eCheckId)) {
logger.error("IllegalArgumentException {}", eCheckId);
throw new IllegalArgumentException("eCheckId cannot be empty or null");
}
// prepare API url
Stri... | [
"public",
"ECheck",
"retrieve",
"(",
"String",
"eCheckId",
")",
"throws",
"BaseException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter ECheckService::retrieve\"",
")",
";",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"eCheckId",
")",
")",
"{",
"logger",
".",... | Method to retrieve ECheck
@param eCheckId
@return
@throws BaseException | [
"Method",
"to",
"retrieve",
"ECheck"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/services/ECheckService.java#L104-L135 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/services/ECheckService.java | ECheckService.refund | public Refund refund(String eCheckId, Refund refund) throws BaseException {
logger.debug("Enter ECheckService::refund");
if (StringUtils.isBlank(eCheckId)) {
logger.error("IllegalArgumentException {}", eCheckId);
throw new IllegalArgumentException("eCheckId cannot be empty or null");
}
// prepare API... | java | public Refund refund(String eCheckId, Refund refund) throws BaseException {
logger.debug("Enter ECheckService::refund");
if (StringUtils.isBlank(eCheckId)) {
logger.error("IllegalArgumentException {}", eCheckId);
throw new IllegalArgumentException("eCheckId cannot be empty or null");
}
// prepare API... | [
"public",
"Refund",
"refund",
"(",
"String",
"eCheckId",
",",
"Refund",
"refund",
")",
"throws",
"BaseException",
"{",
"logger",
".",
"debug",
"(",
"\"Enter ECheckService::refund\"",
")",
";",
"if",
"(",
"StringUtils",
".",
"isBlank",
"(",
"eCheckId",
")",
")"... | Method to refund or void ECheck
@param eCheckId
@param refund
@return
@throws BaseException | [
"Method",
"to",
"refund",
"or",
"void",
"ECheck"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/services/ECheckService.java#L145-L176 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/CustomFieldDefinitionDeserializer.java | CustomFieldDefinitionDeserializer.getCustomFieldDefinitionType | private CustomFieldDefinition getCustomFieldDefinitionType(JsonNode jn) throws IOException {
if (jn.isArray()) {
JsonNode jn1 = jn.get(0);
String type = jn1.get(TYPE).textValue();
try {
return (CustomFieldDefinition) Class.forName("com.intuit.ipp.data." + type + "CustomFieldDefinition").newInstance();
... | java | private CustomFieldDefinition getCustomFieldDefinitionType(JsonNode jn) throws IOException {
if (jn.isArray()) {
JsonNode jn1 = jn.get(0);
String type = jn1.get(TYPE).textValue();
try {
return (CustomFieldDefinition) Class.forName("com.intuit.ipp.data." + type + "CustomFieldDefinition").newInstance();
... | [
"private",
"CustomFieldDefinition",
"getCustomFieldDefinitionType",
"(",
"JsonNode",
"jn",
")",
"throws",
"IOException",
"{",
"if",
"(",
"jn",
".",
"isArray",
"(",
")",
")",
"{",
"JsonNode",
"jn1",
"=",
"jn",
".",
"get",
"(",
"0",
")",
";",
"String",
"type... | Method to get the CustomFieldDefinition implementation type object
@param jn the Json Node
@return CustomFieldDefinition implementation reference
@throws IOException | [
"Method",
"to",
"get",
"the",
"CustomFieldDefinition",
"implementation",
"type",
"object"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/CustomFieldDefinitionDeserializer.java#L113-L125 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/IntuitResponseDeserializer.java | IntuitResponseDeserializer.getBatchItemResponse | private BatchItemResponse getBatchItemResponse(JsonNode jsonNode) throws IOException {
ObjectMapper mapper = new ObjectMapper();
SimpleModule simpleModule = new SimpleModule("BatchItemResponseDeserializer", new Version(1, 0, 0, null));
simpleModule.addDeserializer(BatchItemResponse.class, new BatchItemResponseDe... | java | private BatchItemResponse getBatchItemResponse(JsonNode jsonNode) throws IOException {
ObjectMapper mapper = new ObjectMapper();
SimpleModule simpleModule = new SimpleModule("BatchItemResponseDeserializer", new Version(1, 0, 0, null));
simpleModule.addDeserializer(BatchItemResponse.class, new BatchItemResponseDe... | [
"private",
"BatchItemResponse",
"getBatchItemResponse",
"(",
"JsonNode",
"jsonNode",
")",
"throws",
"IOException",
"{",
"ObjectMapper",
"mapper",
"=",
"new",
"ObjectMapper",
"(",
")",
";",
"SimpleModule",
"simpleModule",
"=",
"new",
"SimpleModule",
"(",
"\"BatchItemRe... | Method to deserialize the BatchItemResponse object
@param jsonNode the json node
@return BatchItemResponse the batch item response | [
"Method",
"to",
"deserialize",
"the",
"BatchItemResponse",
"object"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/serialization/IntuitResponseDeserializer.java#L354-L364 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.execute | public void execute(List<IntuitMessage> intuitMessages) throws FMSException {
LOG.debug("Enter HTTPBatchClientConnectionInterceptor - batch...");
RequestElements intuitRequest = getFirst(intuitMessages).getRequestElements();
IntuitRetryPolicyHandler handler = getRetryHandler();... | java | public void execute(List<IntuitMessage> intuitMessages) throws FMSException {
LOG.debug("Enter HTTPBatchClientConnectionInterceptor - batch...");
RequestElements intuitRequest = getFirst(intuitMessages).getRequestElements();
IntuitRetryPolicyHandler handler = getRetryHandler();... | [
"public",
"void",
"execute",
"(",
"List",
"<",
"IntuitMessage",
">",
"intuitMessages",
")",
"throws",
"FMSException",
"{",
"LOG",
".",
"debug",
"(",
"\"Enter HTTPBatchClientConnectionInterceptor - batch...\"",
")",
";",
"RequestElements",
"intuitRequest",
"=",
"getFirst... | Major executor. It is not part of interface
@param intuitMessages
@throws FMSException | [
"Major",
"executor",
".",
"It",
"is",
"not",
"part",
"of",
"interface"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L102-L158 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.getFirst | private IntuitMessage getFirst(List<IntuitMessage> intuitMessages) throws FMSException {
if(intuitMessages.isEmpty()) {
throw new FMSException("IntuitMessages list is empty. Nothing to upload.");
}
return intuitMessages.get(0);
} | java | private IntuitMessage getFirst(List<IntuitMessage> intuitMessages) throws FMSException {
if(intuitMessages.isEmpty()) {
throw new FMSException("IntuitMessages list is empty. Nothing to upload.");
}
return intuitMessages.get(0);
} | [
"private",
"IntuitMessage",
"getFirst",
"(",
"List",
"<",
"IntuitMessage",
">",
"intuitMessages",
")",
"throws",
"FMSException",
"{",
"if",
"(",
"intuitMessages",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"FMSException",
"(",
"\"IntuitMessages list is em... | Returns first item from the list
@param intuitMessages
@return IntuitMessage
@throws FMSException | [
"Returns",
"first",
"item",
"from",
"the",
"list"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L166-L171 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.prepareClientSSL | public SSLConnectionSocketFactory prepareClientSSL() {
try {
String path = Config.getProperty(Config.PROXY_KEYSTORE_PATH);
String pass = Config.getProperty(Config.PROXY_KEYSTORE_PASSWORD);
KeyStore trustStore = null;
if (path != null && pass != null) {
trustStore = KeyStore.getInstance(Ke... | java | public SSLConnectionSocketFactory prepareClientSSL() {
try {
String path = Config.getProperty(Config.PROXY_KEYSTORE_PATH);
String pass = Config.getProperty(Config.PROXY_KEYSTORE_PASSWORD);
KeyStore trustStore = null;
if (path != null && pass != null) {
trustStore = KeyStore.getInstance(Ke... | [
"public",
"SSLConnectionSocketFactory",
"prepareClientSSL",
"(",
")",
"{",
"try",
"{",
"String",
"path",
"=",
"Config",
".",
"getProperty",
"(",
"Config",
".",
"PROXY_KEYSTORE_PATH",
")",
";",
"String",
"pass",
"=",
"Config",
".",
"getProperty",
"(",
"Config",
... | Configures proxy if this is applicable to connection
@throws FMSException | [
"Configures",
"proxy",
"if",
"this",
"is",
"applicable",
"to",
"connection"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L177-L200 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.prepareHttpRequest | private <T extends CloseableHttpClient> HttpRequestBase prepareHttpRequest(RequestElements intuitRequest) throws FMSException
{
//setTimeout(client, intuitRequest.getContext());
HttpRequestBase httpRequest = extractMethod(intuitRequest, extractURI(intuitRequest));
// populate the headers t... | java | private <T extends CloseableHttpClient> HttpRequestBase prepareHttpRequest(RequestElements intuitRequest) throws FMSException
{
//setTimeout(client, intuitRequest.getContext());
HttpRequestBase httpRequest = extractMethod(intuitRequest, extractURI(intuitRequest));
// populate the headers t... | [
"private",
"<",
"T",
"extends",
"CloseableHttpClient",
">",
"HttpRequestBase",
"prepareHttpRequest",
"(",
"RequestElements",
"intuitRequest",
")",
"throws",
"FMSException",
"{",
"//setTimeout(client, intuitRequest.getContext());",
"HttpRequestBase",
"httpRequest",
"=",
"extract... | Returns httpRequest instance with configured fields
@param intuitRequest
@param client
@param <T>
@return
@throws FMSException | [
"Returns",
"httpRequest",
"instance",
"with",
"configured",
"fields"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L230-L245 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.extractURI | private URI extractURI(RequestElements intuitRequest) throws FMSException
{
URI uri = null;
try {
uri = new URI(intuitRequest.getRequestParameters().get(RequestElements.REQ_PARAM_RESOURCE_URL));
} catch (URISyntaxException e) {
throw new FMSException("URISyntaxExcept... | java | private URI extractURI(RequestElements intuitRequest) throws FMSException
{
URI uri = null;
try {
uri = new URI(intuitRequest.getRequestParameters().get(RequestElements.REQ_PARAM_RESOURCE_URL));
} catch (URISyntaxException e) {
throw new FMSException("URISyntaxExcept... | [
"private",
"URI",
"extractURI",
"(",
"RequestElements",
"intuitRequest",
")",
"throws",
"FMSException",
"{",
"URI",
"uri",
"=",
"null",
";",
"try",
"{",
"uri",
"=",
"new",
"URI",
"(",
"intuitRequest",
".",
"getRequestParameters",
"(",
")",
".",
"get",
"(",
... | Returns URI instance which will be used as a connection source
@param intuitRequest
@return URI
@throws FMSException | [
"Returns",
"URI",
"instance",
"which",
"will",
"be",
"used",
"as",
"a",
"connection",
"source"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L253-L263 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.extractMethod | private HttpRequestBase extractMethod(RequestElements intuitRequest, URI uri) throws FMSException {
String method = intuitRequest.getRequestParameters().get(RequestElements.REQ_PARAM_METHOD_TYPE);
if (method.equals(MethodType.GET.toString())) {
return new HttpGet(uri);
} else if (me... | java | private HttpRequestBase extractMethod(RequestElements intuitRequest, URI uri) throws FMSException {
String method = intuitRequest.getRequestParameters().get(RequestElements.REQ_PARAM_METHOD_TYPE);
if (method.equals(MethodType.GET.toString())) {
return new HttpGet(uri);
} else if (me... | [
"private",
"HttpRequestBase",
"extractMethod",
"(",
"RequestElements",
"intuitRequest",
",",
"URI",
"uri",
")",
"throws",
"FMSException",
"{",
"String",
"method",
"=",
"intuitRequest",
".",
"getRequestParameters",
"(",
")",
".",
"get",
"(",
"RequestElements",
".",
... | Returns instance of HttpGet or HttpPost type, depends from request parameters
@param intuitRequest
@param uri
@return HttpRequestBase
@throws FMSException | [
"Returns",
"instance",
"of",
"HttpGet",
"or",
"HttpPost",
"type",
"depends",
"from",
"request",
"parameters"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L272-L281 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.executeHttpRequest | private IntuitMessage executeHttpRequest(HttpRequestBase httpRequest, CloseableHttpClient client) throws FMSException {
CloseableHttpResponse httpResponse = null;
IntuitMessage intuitMessage = new IntuitMessage();
try {
// prepare HttpHost object
HttpHost target = new ... | java | private IntuitMessage executeHttpRequest(HttpRequestBase httpRequest, CloseableHttpClient client) throws FMSException {
CloseableHttpResponse httpResponse = null;
IntuitMessage intuitMessage = new IntuitMessage();
try {
// prepare HttpHost object
HttpHost target = new ... | [
"private",
"IntuitMessage",
"executeHttpRequest",
"(",
"HttpRequestBase",
"httpRequest",
",",
"CloseableHttpClient",
"client",
")",
"throws",
"FMSException",
"{",
"CloseableHttpResponse",
"httpResponse",
"=",
"null",
";",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"Int... | Executes communication with remote host
@param httpRequest
@param client
@return IntuitMessage
@throws FMSException | [
"Executes",
"communication",
"with",
"remote",
"host"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L290-L323 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.authorizeRequest | private void authorizeRequest(Context context, HttpRequestBase httpRequest) throws FMSException {
context.getAuthorizer().authorize(httpRequest);
} | java | private void authorizeRequest(Context context, HttpRequestBase httpRequest) throws FMSException {
context.getAuthorizer().authorize(httpRequest);
} | [
"private",
"void",
"authorizeRequest",
"(",
"Context",
"context",
",",
"HttpRequestBase",
"httpRequest",
")",
"throws",
"FMSException",
"{",
"context",
".",
"getAuthorizer",
"(",
")",
".",
"authorize",
"(",
"httpRequest",
")",
";",
"}"
] | Method to authorize the given HttpRequest
@param context the context
@param httpRequest the http request
@throws com.intuit.ipp.exception.FMSException the FMSException | [
"Method",
"to",
"authorize",
"the",
"given",
"HttpRequest"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L369-L371 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.getRetryHandler | private IntuitRetryPolicyHandler getRetryHandler() throws FMSException {
IntuitRetryPolicyHandler handler = null;
String policy = Config.getProperty(Config.RETRY_MODE);
if (policy.equalsIgnoreCase("fixed")) {
String retryCountStr = Config.getProperty(Config.RETRY_FIXED_COUNT);
... | java | private IntuitRetryPolicyHandler getRetryHandler() throws FMSException {
IntuitRetryPolicyHandler handler = null;
String policy = Config.getProperty(Config.RETRY_MODE);
if (policy.equalsIgnoreCase("fixed")) {
String retryCountStr = Config.getProperty(Config.RETRY_FIXED_COUNT);
... | [
"private",
"IntuitRetryPolicyHandler",
"getRetryHandler",
"(",
")",
"throws",
"FMSException",
"{",
"IntuitRetryPolicyHandler",
"handler",
"=",
"null",
";",
"String",
"policy",
"=",
"Config",
".",
"getProperty",
"(",
"Config",
".",
"RETRY_MODE",
")",
";",
"if",
"("... | Method to get the retry handler which is used to retry to establish the HTTP connection
@return returns the IntuitRetryPolicyHandler
@throws com.intuit.ipp.exception.FMSException the FMSException | [
"Method",
"to",
"get",
"the",
"retry",
"handler",
"which",
"is",
"used",
"to",
"retry",
"to",
"establish",
"the",
"HTTP",
"connection"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L379-L419 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.setResponseElements | private void setResponseElements(IntuitMessage intuitMessage, HttpResponse httpResponse) throws FMSException {
ResponseElements responseElements = intuitMessage.getResponseElements();
if(httpResponse.getLastHeader(RequestElements.HEADER_PARAM_CONTENT_ENCODING) != null)
{
responseElements... | java | private void setResponseElements(IntuitMessage intuitMessage, HttpResponse httpResponse) throws FMSException {
ResponseElements responseElements = intuitMessage.getResponseElements();
if(httpResponse.getLastHeader(RequestElements.HEADER_PARAM_CONTENT_ENCODING) != null)
{
responseElements... | [
"private",
"void",
"setResponseElements",
"(",
"IntuitMessage",
"intuitMessage",
",",
"HttpResponse",
"httpResponse",
")",
"throws",
"FMSException",
"{",
"ResponseElements",
"responseElements",
"=",
"intuitMessage",
".",
"getResponseElements",
"(",
")",
";",
"if",
"(",
... | Method to set the response elements by reading the values from HttpResponse
@param intuitMessage the intuit message object
@param httpResponse the http response object
@throws com.intuit.ipp.exception.FMSException the FMSException | [
"Method",
"to",
"set",
"the",
"response",
"elements",
"by",
"reading",
"the",
"values",
"from",
"HttpResponse"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L443-L472 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.setTimeout | private RequestConfig setTimeout(Context context) {
int socketTimeout = 0;
int connectionTimeout = 0;
if ( context.getCustomerRequestTimeout() != null) {
socketTimeout = context.getCustomerRequestTimeout();
}else {
String reqTimeout = Config.getProperty(Config.TIM... | java | private RequestConfig setTimeout(Context context) {
int socketTimeout = 0;
int connectionTimeout = 0;
if ( context.getCustomerRequestTimeout() != null) {
socketTimeout = context.getCustomerRequestTimeout();
}else {
String reqTimeout = Config.getProperty(Config.TIM... | [
"private",
"RequestConfig",
"setTimeout",
"(",
"Context",
"context",
")",
"{",
"int",
"socketTimeout",
"=",
"0",
";",
"int",
"connectionTimeout",
"=",
"0",
";",
"if",
"(",
"context",
".",
"getCustomerRequestTimeout",
"(",
")",
"!=",
"null",
")",
"{",
"socket... | Method to set the connection and request timeouts by reading from the configuration file or Context object | [
"Method",
"to",
"set",
"the",
"connection",
"and",
"request",
"timeouts",
"by",
"reading",
"from",
"the",
"configuration",
"file",
"or",
"Context",
"object"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L512-L536 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java | HTTPBatchClientConnectionInterceptor.populateEntity | private HttpEntity populateEntity(RequestElements intuitRequest) throws FMSException {
byte[] compressedData = intuitRequest.getCompressedData();
if (null == compressedData) {
// use postString to create httpEntity
try {
return new StringEntity(intuitRequest.getP... | java | private HttpEntity populateEntity(RequestElements intuitRequest) throws FMSException {
byte[] compressedData = intuitRequest.getCompressedData();
if (null == compressedData) {
// use postString to create httpEntity
try {
return new StringEntity(intuitRequest.getP... | [
"private",
"HttpEntity",
"populateEntity",
"(",
"RequestElements",
"intuitRequest",
")",
"throws",
"FMSException",
"{",
"byte",
"[",
"]",
"compressedData",
"=",
"intuitRequest",
".",
"getCompressedData",
"(",
")",
";",
"if",
"(",
"null",
"==",
"compressedData",
")... | Creates HttpEntity depends from type of content
@param intuitRequest
@return
@throws FMSException | [
"Creates",
"HttpEntity",
"depends",
"from",
"type",
"of",
"content"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/HTTPBatchClientConnectionInterceptor.java#L544-L558 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/util/JsonUtil.java | JsonUtil.serialize | public static String serialize(Object obj) throws SerializationException {
try {
if (obj != null) {
return mapper.writeValueAsString(obj);
} else {
return null;
}
} catch (Exception e) {
logger.error("SerializationException {}", e.getMessage());
throw new SerializationException(e.getMessage()... | java | public static String serialize(Object obj) throws SerializationException {
try {
if (obj != null) {
return mapper.writeValueAsString(obj);
} else {
return null;
}
} catch (Exception e) {
logger.error("SerializationException {}", e.getMessage());
throw new SerializationException(e.getMessage()... | [
"public",
"static",
"String",
"serialize",
"(",
"Object",
"obj",
")",
"throws",
"SerializationException",
"{",
"try",
"{",
"if",
"(",
"obj",
"!=",
"null",
")",
"{",
"return",
"mapper",
".",
"writeValueAsString",
"(",
"obj",
")",
";",
"}",
"else",
"{",
"r... | Serialize object to String
@param obj
@return
@throws SerializationException | [
"Serialize",
"object",
"to",
"String"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/util/JsonUtil.java#L63-L74 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/util/JsonUtil.java | JsonUtil.deserialize | public static Object deserialize(String json, TypeReference<?> typeReference) throws SerializationException {
try {
logger.debug("Json string to deserialize {} ", json);
return mapper.readValue(json, typeReference);
} catch (IOException e) {
logger.error("SerializationException {}", e.getMessage());
Ser... | java | public static Object deserialize(String json, TypeReference<?> typeReference) throws SerializationException {
try {
logger.debug("Json string to deserialize {} ", json);
return mapper.readValue(json, typeReference);
} catch (IOException e) {
logger.error("SerializationException {}", e.getMessage());
Ser... | [
"public",
"static",
"Object",
"deserialize",
"(",
"String",
"json",
",",
"TypeReference",
"<",
"?",
">",
"typeReference",
")",
"throws",
"SerializationException",
"{",
"try",
"{",
"logger",
".",
"debug",
"(",
"\"Json string to deserialize {} \"",
",",
"json",
")",... | Deserialize String to object of TypeReference
@param json
@param typeReference
@return
@throws SerializationException | [
"Deserialize",
"String",
"to",
"object",
"of",
"TypeReference"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/util/JsonUtil.java#L84-L93 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.findAll | @SuppressWarnings("unchecked")
public <T extends IEntity> List<T> findAll(T entity) throws FMSException {
String intuitQuery = "SELECT * FROM " + entity.getClass().getSimpleName();
QueryResult result = executeQuery(intuitQuery);
return (List<T>) result.getEntities();
} | java | @SuppressWarnings("unchecked")
public <T extends IEntity> List<T> findAll(T entity) throws FMSException {
String intuitQuery = "SELECT * FROM " + entity.getClass().getSimpleName();
QueryResult result = executeQuery(intuitQuery);
return (List<T>) result.getEntities();
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"List",
"<",
"T",
">",
"findAll",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"String",
"intuitQuery",
"=",
"\"SELECT * FROM \"",
"+",
"entity",
".... | Method to retrieve all records for the given entity
Note, without pagination this will return only 100 records
Use query API to add pagintion and obtain additional records
@param entity
the entity
@return returns the queryResult
@throws FMSException
throws FMSException | [
"Method",
"to",
"retrieve",
"all",
"records",
"for",
"the",
"given",
"entity",
"Note",
"without",
"pagination",
"this",
"will",
"return",
"only",
"100",
"records",
"Use",
"query",
"API",
"to",
"add",
"pagintion",
"and",
"obtain",
"additional",
"records"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L112-L118 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.add | @SuppressWarnings("unchecked")
public <T extends IEntity> T add(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareAdd(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T add(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareAdd(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"add",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareAdd",
"(",
"entity",
")",
";",
"//execute inte... | Method to add the given entity
@param entity
the entity
@return returns the added entity
@throws FMSException
throws FMSException | [
"Method",
"to",
"add",
"the",
"given",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L137-L146 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.delete | @SuppressWarnings("unchecked")
public <T extends IEntity> T delete(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareDelete(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T delete(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareDelete(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"delete",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareDelete",
"(",
"entity",
")",
";",
"//execut... | Method to delete record for the given entity
@param entity
the entity
@return returns deleted y status
@throws FMSException | [
"Method",
"to",
"delete",
"record",
"for",
"the",
"given",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L182-L191 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.update | @SuppressWarnings("unchecked")
public <T extends IEntity> T update(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareUpdate(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T update(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareUpdate(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"update",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareUpdate",
"(",
"entity",
")",
";",
"//execut... | Method to update the record of the corresponding entity
@param entity
the entity
@return returns upadated status
@throws FMSException | [
"Method",
"to",
"update",
"the",
"record",
"of",
"the",
"corresponding",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L201-L210 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.updateAccountOnTxns | @SuppressWarnings("unchecked")
public <T extends IEntity> T updateAccountOnTxns(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareupdateAccountOnTxns(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
... | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T updateAccountOnTxns(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareupdateAccountOnTxns(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"updateAccountOnTxns",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareupdateAccountOnTxns",
"(",
"entity",... | updateAccountOnTxns used for France Locale with Minor Version >= 5. | [
"updateAccountOnTxns",
"used",
"for",
"France",
"Locale",
"with",
"Minor",
"Version",
">",
"=",
"5",
"."
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L214-L223 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.donotUpdateAccountOnTxns | @SuppressWarnings("unchecked")
public <T extends IEntity> T donotUpdateAccountOnTxns(T entity) throws FMSException {
IntuitMessage intuitMessage = preparedonotUpdateAccountOnTxns(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMe... | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T donotUpdateAccountOnTxns(T entity) throws FMSException {
IntuitMessage intuitMessage = preparedonotUpdateAccountOnTxns(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMe... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"donotUpdateAccountOnTxns",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"preparedonotUpdateAccountOnTxns",
"(",
... | donotUpdateAccountOnTxns used for France Locale with Minor Version >= 5. | [
"donotUpdateAccountOnTxns",
"used",
"for",
"France",
"Locale",
"with",
"Minor",
"Version",
">",
"=",
"5",
"."
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L226-L235 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.retrieveEntity | @SuppressWarnings("unchecked")
private <T extends IEntity> T retrieveEntity(IntuitMessage intuitMessage) {
T returnEntity = null;
IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().getResponse();
if (intuitResponse != null) {
JAXBElement<? extend... | java | @SuppressWarnings("unchecked")
private <T extends IEntity> T retrieveEntity(IntuitMessage intuitMessage) {
T returnEntity = null;
IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().getResponse();
if (intuitResponse != null) {
JAXBElement<? extend... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"retrieveEntity",
"(",
"IntuitMessage",
"intuitMessage",
")",
"{",
"T",
"returnEntity",
"=",
"null",
";",
"IntuitResponse",
"intuitResponse",
"=",
"(",
"Intu... | Common method to retrieve result entity from IntuitMessage
@param intuitMessage
@param <T>
@return | [
"Common",
"method",
"to",
"retrieve",
"result",
"entity",
"from",
"IntuitMessage"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L242-L253 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.voidRequest | @SuppressWarnings("unchecked")
public <T extends IEntity> T voidRequest(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareVoidRequest(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T voidRequest(T entity) throws FMSException {
IntuitMessage intuitMessage = prepareVoidRequest(entity);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) retrieveEntity(intuitMessage);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"voidRequest",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareVoidRequest",
"(",
"entity",
")",
";",
... | Method to cancel the operation for the corresponding entity
@param entity
@return entity the entity
@throws FMSException | [
"Method",
"to",
"cancel",
"the",
"operation",
"for",
"the",
"corresponding",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L356-L365 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.upload | @SuppressWarnings("unchecked")
public <T extends IEntity> T upload(T entity, InputStream docContent) throws FMSException {
IntuitMessage intuitMessage = prepareUpload(entity, docContent);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) getReturnEntity(intuitM... | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T upload(T entity, InputStream docContent) throws FMSException {
IntuitMessage intuitMessage = prepareUpload(entity, docContent);
//execute interceptors
executeInterceptors(intuitMessage);
return (T) getReturnEntity(intuitM... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"upload",
"(",
"T",
"entity",
",",
"InputStream",
"docContent",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareUpload",
"(... | Method to upload the given document content for the corresponding entity
@param entity the entity
@return returns the entity
@throws FMSException | [
"Method",
"to",
"upload",
"the",
"given",
"document",
"content",
"for",
"the",
"corresponding",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L374-L383 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.upload | public <T extends IEntity> List<T> upload(List<UploadEntry> entries) throws FMSException {
List<IntuitMessage> intuitMessages = prepareUpload(entries);
//execute interceptors
if(!intuitMessages.isEmpty()) {
executeInterceptors(intuitMessages);
}
return getResultEn... | java | public <T extends IEntity> List<T> upload(List<UploadEntry> entries) throws FMSException {
List<IntuitMessage> intuitMessages = prepareUpload(entries);
//execute interceptors
if(!intuitMessages.isEmpty()) {
executeInterceptors(intuitMessages);
}
return getResultEn... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"List",
"<",
"T",
">",
"upload",
"(",
"List",
"<",
"UploadEntry",
">",
"entries",
")",
"throws",
"FMSException",
"{",
"List",
"<",
"IntuitMessage",
">",
"intuitMessages",
"=",
"prepareUpload",
"(",
"entries",
... | Method to upload entities with their correspond binary
@param entries
@param <T>
@return
@throws FMSException | [
"Method",
"to",
"upload",
"entities",
"with",
"their",
"correspond",
"binary"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L423-L435 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.getResultEntities | @SuppressWarnings("unchecked")
private <T extends IEntity> List<T> getResultEntities(List<IntuitMessage> intuitMessages) {
List<T> resultEntities = new ArrayList<T>();
int i = 0;
for(IntuitMessage intuitMessage : intuitMessages) {
if(!isContainResponse(intuitMessage, i)) {
... | java | @SuppressWarnings("unchecked")
private <T extends IEntity> List<T> getResultEntities(List<IntuitMessage> intuitMessages) {
List<T> resultEntities = new ArrayList<T>();
int i = 0;
for(IntuitMessage intuitMessage : intuitMessages) {
if(!isContainResponse(intuitMessage, i)) {
... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"<",
"T",
"extends",
"IEntity",
">",
"List",
"<",
"T",
">",
"getResultEntities",
"(",
"List",
"<",
"IntuitMessage",
">",
"intuitMessages",
")",
"{",
"List",
"<",
"T",
">",
"resultEntities",
"=",
... | Processes list of intuitMessages and returns list of resultEntities
@param intuitMessages
@param <T>
@return | [
"Processes",
"list",
"of",
"intuitMessages",
"and",
"returns",
"list",
"of",
"resultEntities"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L443-L457 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareUpload | private List<IntuitMessage> prepareUpload(List<UploadEntry> entries) throws FMSException {
List<IntuitMessage> intuitMessages = new ArrayList<IntuitMessage>();
String boundaryId = null;
for(UploadEntry item : entries) {
if(item.isEmpty()) {
LOG.warn("UploadEntry inst... | java | private List<IntuitMessage> prepareUpload(List<UploadEntry> entries) throws FMSException {
List<IntuitMessage> intuitMessages = new ArrayList<IntuitMessage>();
String boundaryId = null;
for(UploadEntry item : entries) {
if(item.isEmpty()) {
LOG.warn("UploadEntry inst... | [
"private",
"List",
"<",
"IntuitMessage",
">",
"prepareUpload",
"(",
"List",
"<",
"UploadEntry",
">",
"entries",
")",
"throws",
"FMSException",
"{",
"List",
"<",
"IntuitMessage",
">",
"intuitMessages",
"=",
"new",
"ArrayList",
"<",
"IntuitMessage",
">",
"(",
")... | Creates list of IntuitMessage instances based on list of entries
@param entries items and files which are going to be uploaded
@return list of intuitMessage instances
@throws FMSException | [
"Creates",
"list",
"of",
"IntuitMessage",
"instances",
"based",
"on",
"list",
"of",
"entries"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L465-L483 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.isContainResponse | private boolean isContainResponse(IntuitMessage intuitMessage, int idx)
{
List<AttachableResponse> response = ((IntuitResponse) intuitMessage.getResponseElements().getResponse()).getAttachableResponse();
if(null == response) { return false; }
if(0 >= response.size() ) { return f... | java | private boolean isContainResponse(IntuitMessage intuitMessage, int idx)
{
List<AttachableResponse> response = ((IntuitResponse) intuitMessage.getResponseElements().getResponse()).getAttachableResponse();
if(null == response) { return false; }
if(0 >= response.size() ) { return f... | [
"private",
"boolean",
"isContainResponse",
"(",
"IntuitMessage",
"intuitMessage",
",",
"int",
"idx",
")",
"{",
"List",
"<",
"AttachableResponse",
">",
"response",
"=",
"(",
"(",
"IntuitResponse",
")",
"intuitMessage",
".",
"getResponseElements",
"(",
")",
".",
"... | verifies availability of an object in response
@param intuitMessage
@param idx
@return | [
"verifies",
"availability",
"of",
"an",
"object",
"in",
"response"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L491-L498 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.sendEmail | public <T extends IEntity> T sendEmail(T entity) throws FMSException {
return sendEmail(entity, null);
} | java | public <T extends IEntity> T sendEmail(T entity) throws FMSException {
return sendEmail(entity, null);
} | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"sendEmail",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"return",
"sendEmail",
"(",
"entity",
",",
"null",
")",
";",
"}"
] | Send entity via email using address associated with this entity in the system
@param entity
@param <T>
@return
@throws FMSException | [
"Send",
"entity",
"via",
"email",
"using",
"address",
"associated",
"with",
"this",
"entity",
"in",
"the",
"system"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L548-L550 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.sendEmail | @SuppressWarnings("unchecked")
public <T extends IEntity> T sendEmail(T entity, String email) throws FMSException {
if(!isAvailableToEmail(entity)) {
throw new FMSException("Following entity: " + entity.getClass().getSimpleName() + " cannot be send as email" );
}
IntuitMessage in... | java | @SuppressWarnings("unchecked")
public <T extends IEntity> T sendEmail(T entity, String email) throws FMSException {
if(!isAvailableToEmail(entity)) {
throw new FMSException("Following entity: " + entity.getClass().getSimpleName() + " cannot be send as email" );
}
IntuitMessage in... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
"extends",
"IEntity",
">",
"T",
"sendEmail",
"(",
"T",
"entity",
",",
"String",
"email",
")",
"throws",
"FMSException",
"{",
"if",
"(",
"!",
"isAvailableToEmail",
"(",
"entity",
")",
"... | Send entity via email using specified address
@param entity
@param email
@param <T>
@return
@throws FMSException | [
"Send",
"entity",
"via",
"email",
"using",
"specified",
"address"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L560-L571 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.executeCDCQuery | public List<CDCQueryResult> executeCDCQuery(List<? extends IEntity> entities, String changedSince) throws FMSException {
if (entities == null || entities.isEmpty()) {
throw new FMSException("Entities is required.");
}
if (!StringUtils.hasText(changedSince)) {
throw new ... | java | public List<CDCQueryResult> executeCDCQuery(List<? extends IEntity> entities, String changedSince) throws FMSException {
if (entities == null || entities.isEmpty()) {
throw new FMSException("Entities is required.");
}
if (!StringUtils.hasText(changedSince)) {
throw new ... | [
"public",
"List",
"<",
"CDCQueryResult",
">",
"executeCDCQuery",
"(",
"List",
"<",
"?",
"extends",
"IEntity",
">",
"entities",
",",
"String",
"changedSince",
")",
"throws",
"FMSException",
"{",
"if",
"(",
"entities",
"==",
"null",
"||",
"entities",
".",
"isE... | Method to retrieve the list of records for the given entities whose last modified date is greater than the given changedSince date
@param entities the list of entities to be listed in the response
@param changedSince the date where the entities should be listed from the last changed date
@return the list of CDCQueryRe... | [
"Method",
"to",
"retrieve",
"the",
"list",
"of",
"records",
"for",
"the",
"given",
"entities",
"whose",
"last",
"modified",
"date",
"is",
"greater",
"than",
"the",
"given",
"changedSince",
"date"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L647-L673 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.executeBatch | public void executeBatch(BatchOperation batchOperation) throws FMSException {
IntuitMessage intuitMessage = prepareBatch(batchOperation);
//execute interceptors
executeInterceptors(intuitMessage);
IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().get... | java | public void executeBatch(BatchOperation batchOperation) throws FMSException {
IntuitMessage intuitMessage = prepareBatch(batchOperation);
//execute interceptors
executeInterceptors(intuitMessage);
IntuitResponse intuitResponse = (IntuitResponse) intuitMessage.getResponseElements().get... | [
"public",
"void",
"executeBatch",
"(",
"BatchOperation",
"batchOperation",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareBatch",
"(",
"batchOperation",
")",
";",
"//execute interceptors",
"executeInterceptors",
"(",
"intuitMessage",
")... | Method to execute the batch operation
@param batchOperation
the batch operation
@throws FMSException
throws FMSException | [
"Method",
"to",
"execute",
"the",
"batch",
"operation"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L683-L726 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.findAllAsync | public <T extends IEntity> void findAllAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
//findall is to be called as query
String query = "SELECT * FROM " + entity.getClass().getSimpleName();
executeQueryAsync(query, callbackHandler);
} | java | public <T extends IEntity> void findAllAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
//findall is to be called as query
String query = "SELECT * FROM " + entity.getClass().getSimpleName();
executeQueryAsync(query, callbackHandler);
} | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"findAllAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"//findall is to be called as query",
"String",
"query",
"=",
"\"SELECT * FROM \"",
"+",
"entity",... | Method to retrieve all records for the given entity in asynchronous fashion
Note, without pagination this will return only 100 records
Use query API to add pagintion and obtain additional records
@param entity
the entity
@param callbackHandler
the callback handler
@throws FMSException
throws FMSException | [
"Method",
"to",
"retrieve",
"all",
"records",
"for",
"the",
"given",
"entity",
"in",
"asynchronous",
"fashion",
"Note",
"without",
"pagination",
"this",
"will",
"return",
"only",
"100",
"records",
"Use",
"query",
"API",
"to",
"add",
"pagintion",
"and",
"obtain... | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L740-L745 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.addAsync | public <T extends IEntity> void addAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareAdd(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors
... | java | public <T extends IEntity> void addAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareAdd(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors
... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"addAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareAdd",
"(",
"entity",
")",
";",
"//set callback hand... | Method to add the given entity in asynchronous fashion
@param entity
the entity
@param callbackHandler
the callback handler
@throws FMSException
throws FMSException | [
"Method",
"to",
"add",
"the",
"given",
"entity",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L757-L766 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.deleteAsync | public <T extends IEntity> void deleteAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareDelete(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors... | java | public <T extends IEntity> void deleteAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareDelete(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"deleteAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareDelete",
"(",
"entity",
")",
";",
"//set callbac... | Method to delete record for the given entity in asynchronous fashion
@param entity
the entity
@param callbackHandler
the callback handler
@throws FMSException | [
"Method",
"to",
"delete",
"record",
"for",
"the",
"given",
"entity",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L779-L788 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.updateAsync | public <T extends IEntity> void updateAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareUpdate(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors... | java | public <T extends IEntity> void updateAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareUpdate(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async interceptors... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"updateAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareUpdate",
"(",
"entity",
")",
";",
"//set callbac... | Method to update the record of the corresponding entity in asynchronous fashion
@param entity
the entity
@param callbackHandler
the callback handler
@throws FMSException | [
"Method",
"to",
"update",
"the",
"record",
"of",
"the",
"corresponding",
"entity",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L799-L808 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.findByIdAsync | public <T extends IEntity> void findByIdAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareFindById(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async intercep... | java | public <T extends IEntity> void findByIdAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareFindById(entity);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
//execute async intercep... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"findByIdAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareFindById",
"(",
"entity",
")",
";",
"//set cal... | Method to find the record for the given id for the corresponding entity in asynchronous fashion
@param entity
the entity
@param callbackHandler
the callback handler
@throws FMSException | [
"Method",
"to",
"find",
"the",
"record",
"for",
"the",
"given",
"id",
"for",
"the",
"corresponding",
"entity",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L819-L828 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.uploadAsync | public <T extends IEntity> void uploadAsync(T entity, InputStream docContent, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareUpload(entity, docContent);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
... | java | public <T extends IEntity> void uploadAsync(T entity, InputStream docContent, CallbackHandler callbackHandler) throws FMSException {
IntuitMessage intuitMessage = prepareUpload(entity, docContent);
//set callback handler
intuitMessage.getRequestElements().setCallbackHandler(callbackHandler);
... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"uploadAsync",
"(",
"T",
"entity",
",",
"InputStream",
"docContent",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"prepareUpload",
"(",
... | Method to upload the file for the given entity in asynchronous fashion
@param entity
the entity
@param docContent
the content of the file to upload
@param callbackHandler
the callback handler
@throws FMSException
throws FMSException | [
"Method",
"to",
"upload",
"the",
"file",
"for",
"the",
"given",
"entity",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L862-L871 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.sendEmailAsync | public <T extends IEntity> void sendEmailAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
sendEmailAsync(entity,null,callbackHandler);
} | java | public <T extends IEntity> void sendEmailAsync(T entity, CallbackHandler callbackHandler) throws FMSException {
sendEmailAsync(entity,null,callbackHandler);
} | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"sendEmailAsync",
"(",
"T",
"entity",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"sendEmailAsync",
"(",
"entity",
",",
"null",
",",
"callbackHandler",
")",
";",
"}"
] | Method to send the entity to default email for the given id in asynchronous fashion
@param entity
@param callbackHandler
@param <T>
@throws FMSException | [
"Method",
"to",
"send",
"the",
"entity",
"to",
"default",
"email",
"for",
"the",
"given",
"id",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L926-L928 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.sendEmailAsync | public <T extends IEntity> void sendEmailAsync(T entity, String email, CallbackHandler callbackHandler) throws FMSException {
if(!isAvailableToEmail(entity)) {
throw new FMSException("Following entity: " + entity.getClass().getSimpleName() + " cannot send as email (Async) " );
}
Intu... | java | public <T extends IEntity> void sendEmailAsync(T entity, String email, CallbackHandler callbackHandler) throws FMSException {
if(!isAvailableToEmail(entity)) {
throw new FMSException("Following entity: " + entity.getClass().getSimpleName() + " cannot send as email (Async) " );
}
Intu... | [
"public",
"<",
"T",
"extends",
"IEntity",
">",
"void",
"sendEmailAsync",
"(",
"T",
"entity",
",",
"String",
"email",
",",
"CallbackHandler",
"callbackHandler",
")",
"throws",
"FMSException",
"{",
"if",
"(",
"!",
"isAvailableToEmail",
"(",
"entity",
")",
")",
... | Method to send the entity to email for the given id in asynchronous fashion
@param entity
the entity
@param email
the mail string
@param callbackHandler
the callback handler
@throws FMSException
throws FMSException | [
"Method",
"to",
"send",
"the",
"entity",
"to",
"email",
"for",
"the",
"given",
"id",
"in",
"asynchronous",
"fashion"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L942-L953 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareVoidRequest | private <T extends IEntity> IntuitMessage prepareVoidRequest(T entity) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request parameters
Map<String, String> requestParameters = requ... | java | private <T extends IEntity> IntuitMessage prepareVoidRequest(T entity) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request parameters
Map<String, String> requestParameters = requ... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"IntuitMessage",
"prepareVoidRequest",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"IntuitMessage",
"(",
")",
";",
"RequestElements",
"requestElements",
"=",
... | Common method to prepare the request params for voidRequest operation for both sync and async calls
@param entity
the entity
@return IntuitMessage the intuit message
@throws FMSException | [
"Common",
"method",
"to",
"prepare",
"the",
"request",
"params",
"for",
"voidRequest",
"operation",
"for",
"both",
"sync",
"and",
"async",
"calls"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1265-L1279 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareUpload | private <T extends IEntity> IntuitMessage prepareUpload(T entity, InputStream docContent, String boundaryId) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request parameters
Map<St... | java | private <T extends IEntity> IntuitMessage prepareUpload(T entity, InputStream docContent, String boundaryId) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request parameters
Map<St... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"IntuitMessage",
"prepareUpload",
"(",
"T",
"entity",
",",
"InputStream",
"docContent",
",",
"String",
"boundaryId",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"IntuitMessage",
... | Common method to prepare the request params for upload operation for both sync and async calls
@param entity the entity
@param docContent the content for document to upload
@return IntuitMessage the intuit message
@throws FMSException | [
"Common",
"method",
"to",
"prepare",
"the",
"request",
"params",
"for",
"upload",
"operation",
"for",
"both",
"sync",
"and",
"async",
"calls"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1289-L1308 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.verifyEntityId | private <T extends IEntity> Object verifyEntityId(T entity) throws FMSException {
Class<?> objectClass = entity.getClass();
Object rid = null;
Method m;
try {
m = objectClass.getMethod("getId");
rid = m.invoke(entity);
} catch (Exception e) {
... | java | private <T extends IEntity> Object verifyEntityId(T entity) throws FMSException {
Class<?> objectClass = entity.getClass();
Object rid = null;
Method m;
try {
m = objectClass.getMethod("getId");
rid = m.invoke(entity);
} catch (Exception e) {
... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"Object",
"verifyEntityId",
"(",
"T",
"entity",
")",
"throws",
"FMSException",
"{",
"Class",
"<",
"?",
">",
"objectClass",
"=",
"entity",
".",
"getClass",
"(",
")",
";",
"Object",
"rid",
"=",
"null",
";",
... | Verifies that entity has getID method which can be invoked to retrieve entity id
@param entity
@param <T>
@return the result of dispatching getId method
@throws FMSException | [
"Verifies",
"that",
"entity",
"has",
"getID",
"method",
"which",
"can",
"be",
"invoked",
"to",
"retrieve",
"entity",
"id"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1385-L1401 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareQuery | private <T extends IEntity> IntuitMessage prepareQuery(String query) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<String, String> requestParameters = requestEle... | java | private <T extends IEntity> IntuitMessage prepareQuery(String query) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<String, String> requestParameters = requestEle... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"IntuitMessage",
"prepareQuery",
"(",
"String",
"query",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"IntuitMessage",
"(",
")",
";",
"RequestElements",
"requestElements",
"=",
"i... | Common method to prepare the request params for query operation for both sync and async calls
@param query
the query list
@return IntuitMessage the intuit message
@throws FMSException | [
"Common",
"method",
"to",
"prepare",
"the",
"request",
"params",
"for",
"query",
"operation",
"for",
"both",
"sync",
"and",
"async",
"calls"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1443-L1461 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareCDCQuery | private <T extends IEntity> IntuitMessage prepareCDCQuery(List<? extends IEntity> entities, String changedSince) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<St... | java | private <T extends IEntity> IntuitMessage prepareCDCQuery(List<? extends IEntity> entities, String changedSince) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<St... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"IntuitMessage",
"prepareCDCQuery",
"(",
"List",
"<",
"?",
"extends",
"IEntity",
">",
"entities",
",",
"String",
"changedSince",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"In... | Common method to prepare the request params for CDC query operation for both sync and async calls
@param entities
the list of entities
@param changedSince
the date where the entities should be listed from the last changed date
@return IntuitMessage the intuit message
@throws FMSException | [
"Common",
"method",
"to",
"prepare",
"the",
"request",
"params",
"for",
"CDC",
"query",
"operation",
"for",
"both",
"sync",
"and",
"async",
"calls"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1475-L1504 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.prepareBatch | private <T extends IEntity> IntuitMessage prepareBatch(BatchOperation batchOperation) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<String, String> requestParame... | java | private <T extends IEntity> IntuitMessage prepareBatch(BatchOperation batchOperation) throws FMSException {
IntuitMessage intuitMessage = new IntuitMessage();
RequestElements requestElements = intuitMessage.getRequestElements();
//set the request params
Map<String, String> requestParame... | [
"private",
"<",
"T",
"extends",
"IEntity",
">",
"IntuitMessage",
"prepareBatch",
"(",
"BatchOperation",
"batchOperation",
")",
"throws",
"FMSException",
"{",
"IntuitMessage",
"intuitMessage",
"=",
"new",
"IntuitMessage",
"(",
")",
";",
"RequestElements",
"requestEleme... | Common method to prepare the request params for batch operation for both sync and async calls
@param batchOperation
the batch operation
@return IntuitMessage the intuit message
@throws FMSException | [
"Common",
"method",
"to",
"prepare",
"the",
"request",
"params",
"for",
"batch",
"operation",
"for",
"both",
"sync",
"and",
"async",
"calls"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1514-L1531 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.getSerializableObject | @SuppressWarnings("unchecked")
protected <T extends IEntity> Object getSerializableObject(T object) throws FMSException {
Class<?> objectClass = object.getClass();
String methodName = "create".concat(objectClass.getSimpleName());
ObjectFactory objectEntity = new ObjectFactory();
Cla... | java | @SuppressWarnings("unchecked")
protected <T extends IEntity> Object getSerializableObject(T object) throws FMSException {
Class<?> objectClass = object.getClass();
String methodName = "create".concat(objectClass.getSimpleName());
ObjectFactory objectEntity = new ObjectFactory();
Cla... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"protected",
"<",
"T",
"extends",
"IEntity",
">",
"Object",
"getSerializableObject",
"(",
"T",
"object",
")",
"throws",
"FMSException",
"{",
"Class",
"<",
"?",
">",
"objectClass",
"=",
"object",
".",
"getClas... | Method to get the serializable object for the given entity
@param object
the entity object
@return Object the serializable object | [
"Method",
"to",
"get",
"the",
"serializable",
"object",
"for",
"the",
"given",
"entity"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1540-L1564 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.getQueryResult | protected QueryResult getQueryResult(QueryResponse queryResponse) {
QueryResult queryResult = null;
if (queryResponse != null) {
queryResult = new QueryResult();
queryResult.setEntities(getEntities(queryResponse));
queryResult.setFault(queryResponse.getFault());
... | java | protected QueryResult getQueryResult(QueryResponse queryResponse) {
QueryResult queryResult = null;
if (queryResponse != null) {
queryResult = new QueryResult();
queryResult.setEntities(getEntities(queryResponse));
queryResult.setFault(queryResponse.getFault());
... | [
"protected",
"QueryResult",
"getQueryResult",
"(",
"QueryResponse",
"queryResponse",
")",
"{",
"QueryResult",
"queryResult",
"=",
"null",
";",
"if",
"(",
"queryResponse",
"!=",
"null",
")",
"{",
"queryResult",
"=",
"new",
"QueryResult",
"(",
")",
";",
"queryResu... | Method to read the query response from QueryResponse and set into QueryResult
@param queryResponse
the query response
@return queryResult | [
"Method",
"to",
"read",
"the",
"query",
"response",
"from",
"QueryResponse",
"and",
"set",
"into",
"QueryResult"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1627-L1639 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.getCDCQueryResult | protected List<CDCQueryResult> getCDCQueryResult(List<CDCResponse> cdcResponses) {
List<CDCQueryResult> cdcQueryResults = null;
if (cdcResponses != null) {
Iterator<CDCResponse> cdcResponseItr = cdcResponses.iterator();
while (cdcResponseItr.hasNext()) {
cdcQueryR... | java | protected List<CDCQueryResult> getCDCQueryResult(List<CDCResponse> cdcResponses) {
List<CDCQueryResult> cdcQueryResults = null;
if (cdcResponses != null) {
Iterator<CDCResponse> cdcResponseItr = cdcResponses.iterator();
while (cdcResponseItr.hasNext()) {
cdcQueryR... | [
"protected",
"List",
"<",
"CDCQueryResult",
">",
"getCDCQueryResult",
"(",
"List",
"<",
"CDCResponse",
">",
"cdcResponses",
")",
"{",
"List",
"<",
"CDCQueryResult",
">",
"cdcQueryResults",
"=",
"null",
";",
"if",
"(",
"cdcResponses",
"!=",
"null",
")",
"{",
... | Method to get the list of CDCQueryResult object from list of CDCResponse
@param cdcResponses the cdc responses list
@return list of CDCQueryResult object | [
"Method",
"to",
"get",
"the",
"list",
"of",
"CDCQueryResult",
"object",
"from",
"list",
"of",
"CDCResponse"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1647-L1659 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.getCDCQueryResult | protected CDCQueryResult getCDCQueryResult(CDCResponse cdcResponse) {
CDCQueryResult cdcQueryResult = new CDCQueryResult();
List<QueryResponse> queryResponses = cdcResponse.getQueryResponse();
if (queryResponses != null) {
Map<String, QueryResult> queryResults = new HashMap<String, Q... | java | protected CDCQueryResult getCDCQueryResult(CDCResponse cdcResponse) {
CDCQueryResult cdcQueryResult = new CDCQueryResult();
List<QueryResponse> queryResponses = cdcResponse.getQueryResponse();
if (queryResponses != null) {
Map<String, QueryResult> queryResults = new HashMap<String, Q... | [
"protected",
"CDCQueryResult",
"getCDCQueryResult",
"(",
"CDCResponse",
"cdcResponse",
")",
"{",
"CDCQueryResult",
"cdcQueryResult",
"=",
"new",
"CDCQueryResult",
"(",
")",
";",
"List",
"<",
"QueryResponse",
">",
"queryResponses",
"=",
"cdcResponse",
".",
"getQueryRes... | Method to construct and return the CDCQueryResult object from CDCResponse
@param cdcResponse
the CDC Response object
@return the CDCQueryResult object | [
"Method",
"to",
"construct",
"and",
"return",
"the",
"CDCQueryResult",
"object",
"from",
"CDCResponse"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1668-L1689 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.populateQueryResultsInCDC | private void populateQueryResultsInCDC(Map<String, QueryResult> queryResults, QueryResult queryResult) {
if (queryResult != null) {
List<? extends IEntity> entities = queryResult.getEntities();
if (entities != null && !entities.isEmpty()) {
IEntity entity = entities.get(0... | java | private void populateQueryResultsInCDC(Map<String, QueryResult> queryResults, QueryResult queryResult) {
if (queryResult != null) {
List<? extends IEntity> entities = queryResult.getEntities();
if (entities != null && !entities.isEmpty()) {
IEntity entity = entities.get(0... | [
"private",
"void",
"populateQueryResultsInCDC",
"(",
"Map",
"<",
"String",
",",
"QueryResult",
">",
"queryResults",
",",
"QueryResult",
"queryResult",
")",
"{",
"if",
"(",
"queryResult",
"!=",
"null",
")",
"{",
"List",
"<",
"?",
"extends",
"IEntity",
">",
"e... | Method to populate the QueryResults hash map by reading the key from QueryResult entities
@param queryResults
the queryResults hash map to be populated
@param queryResult
the QueryResult object | [
"Method",
"to",
"populate",
"the",
"QueryResults",
"hash",
"map",
"by",
"reading",
"the",
"key",
"from",
"QueryResult",
"entities"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1699-L1708 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java | DataService.populateFaultInCDC | private void populateFaultInCDC(CDCQueryResult cdcQueryResult, QueryResult queryResult) {
if (queryResult != null) {
Fault fault = queryResult.getFault();
if (fault != null) {
cdcQueryResult.setFalut(fault);
}
}
} | java | private void populateFaultInCDC(CDCQueryResult cdcQueryResult, QueryResult queryResult) {
if (queryResult != null) {
Fault fault = queryResult.getFault();
if (fault != null) {
cdcQueryResult.setFalut(fault);
}
}
} | [
"private",
"void",
"populateFaultInCDC",
"(",
"CDCQueryResult",
"cdcQueryResult",
",",
"QueryResult",
"queryResult",
")",
"{",
"if",
"(",
"queryResult",
"!=",
"null",
")",
"{",
"Fault",
"fault",
"=",
"queryResult",
".",
"getFault",
"(",
")",
";",
"if",
"(",
... | Method to populate the fault in CDCQueryResult if any
@param cdcQueryResult the CDCQueryResult
@param queryResult the QueryResult | [
"Method",
"to",
"populate",
"the",
"fault",
"in",
"CDCQueryResult",
"if",
"any"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/services/DataService.java#L1716-L1723 | train |
intuit/QuickBooks-V3-Java-SDK | payments-api/src/main/java/com/intuit/payment/util/PropertiesConfig.java | PropertiesConfig.readProperties | private void readProperties() {
InputStream input = null;
try {
input = getClass().getClassLoader().getResourceAsStream(PROP_FILE_NAME);
if(input==null){
logger.info("Unnable to find " + PROP_FILE_NAME);
return;
}
prop.load(input);
} catch (Exception e) {
logger.info("exception in Proper... | java | private void readProperties() {
InputStream input = null;
try {
input = getClass().getClassLoader().getResourceAsStream(PROP_FILE_NAME);
if(input==null){
logger.info("Unnable to find " + PROP_FILE_NAME);
return;
}
prop.load(input);
} catch (Exception e) {
logger.info("exception in Proper... | [
"private",
"void",
"readProperties",
"(",
")",
"{",
"InputStream",
"input",
"=",
"null",
";",
"try",
"{",
"input",
"=",
"getClass",
"(",
")",
".",
"getClassLoader",
"(",
")",
".",
"getResourceAsStream",
"(",
"PROP_FILE_NAME",
")",
";",
"if",
"(",
"input",
... | Method to read propeties file and store the data | [
"Method",
"to",
"read",
"propeties",
"file",
"and",
"store",
"the",
"data"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/payments-api/src/main/java/com/intuit/payment/util/PropertiesConfig.java#L55-L79 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/SerializeInterceptor.java | SerializeInterceptor.getUploadFileContent | private byte[] getUploadFileContent(RequestElements requestElements) throws FMSException {
Attachable attachable = (Attachable) requestElements.getEntity();
InputStream docContent = requestElements.getUploadRequestElements().getDocContent();
// gets the mime value form the filename
String mime = getMime(atta... | java | private byte[] getUploadFileContent(RequestElements requestElements) throws FMSException {
Attachable attachable = (Attachable) requestElements.getEntity();
InputStream docContent = requestElements.getUploadRequestElements().getDocContent();
// gets the mime value form the filename
String mime = getMime(atta... | [
"private",
"byte",
"[",
"]",
"getUploadFileContent",
"(",
"RequestElements",
"requestElements",
")",
"throws",
"FMSException",
"{",
"Attachable",
"attachable",
"=",
"(",
"Attachable",
")",
"requestElements",
".",
"getEntity",
"(",
")",
";",
"InputStream",
"docConten... | Method to get the file content of the upload file based on the mime type
@param requestElements the request elements
@return byte[] the upload file content
@throws FMSException | [
"Method",
"to",
"get",
"the",
"file",
"content",
"of",
"the",
"upload",
"file",
"based",
"on",
"the",
"mime",
"type"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/SerializeInterceptor.java#L111-L124 | train |
intuit/QuickBooks-V3-Java-SDK | ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/SerializeInterceptor.java | SerializeInterceptor.isImageType | private boolean isImageType(String mime) {
if (StringUtils.hasText(mime)) {
for (String imageMime : IMAGE_MIMES) {
if (mime.equalsIgnoreCase(imageMime)) {
return true;
}
}
}
return false;
} | java | private boolean isImageType(String mime) {
if (StringUtils.hasText(mime)) {
for (String imageMime : IMAGE_MIMES) {
if (mime.equalsIgnoreCase(imageMime)) {
return true;
}
}
}
return false;
} | [
"private",
"boolean",
"isImageType",
"(",
"String",
"mime",
")",
"{",
"if",
"(",
"StringUtils",
".",
"hasText",
"(",
"mime",
")",
")",
"{",
"for",
"(",
"String",
"imageMime",
":",
"IMAGE_MIMES",
")",
"{",
"if",
"(",
"mime",
".",
"equalsIgnoreCase",
"(",
... | Method to validate whether the given mime is an image file
@param mime the mime type
@return boolean returns true if the file is image | [
"Method",
"to",
"validate",
"whether",
"the",
"given",
"mime",
"is",
"an",
"image",
"file"
] | 59f988d0776d46620d0b34711c411b2b5b1da06b | https://github.com/intuit/QuickBooks-V3-Java-SDK/blob/59f988d0776d46620d0b34711c411b2b5b1da06b/ipp-v3-java-devkit/src/main/java/com/intuit/ipp/interceptors/SerializeInterceptor.java#L186-L195 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.