Skip to content

Commit 88654d3

Browse files
###### Date: 26-July-2019
- [Entry] - Added support for includeReferenceContentTypeUid support in Entry. - [Query] - Added support for includeReferenceContentTypeUid support in Query. - [Entry] - setLanguage and getLanguage Deprecated in Entry. - [Query] - language deprecated in Query - [Entry] - Added method for getLocale and setLocale(String locale) in Entry - [Query] - Added method for locale in Query. - [Query] - Removed deprecated method for includeSchema in Query
1 parent a9704b3 commit 88654d3

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

pom.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Written manually.
2-
version=1.3.3
2+
version=1.4.0
33
groupId=com.contentstack.sdk
44
artifactId=java

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.contentstack.sdk</groupId>
88
<artifactId>java</artifactId>
9-
<version>1.3.2</version>
9+
<version>1.4.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>contentstack-java</name>

src/main/java/com/contentstack/sdk/Entry.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,29 @@ public Entry addParam(String key, String value){
13001300

13011301

13021302

1303+
/**
1304+
* This method also includes the content type UIDs of the referenced entries returned in the response
1305+
* @return {@link Entry}
1306+
*
1307+
* <br><br><b>Example :</b><br>
1308+
* <pre class="prettyprint">
1309+
* //'blt5d4sample2633b' is a dummy Stack API key
1310+
* //'blt6d0240b5sample254090d' is dummy access token.
1311+
* {@code
1312+
* Stack stack = Contentstack.stack(context, "blt5d4sample2633b", "blt6d0240b5sample254090d", "stag", false);
1313+
* final Entry entry = stack.contentType("user").entry("blt3b0aaebf6f1c3762"); <br>
1314+
* entry.includeReferenceContentTypeUID; <br>
1315+
* entry.fetch(new BuiltResultCallBack() {
1316+
* <br>&#64;
1317+
* Override
1318+
* public void onCompletion(ResponseType responseType, BuiltError builtError) {
1319+
* }<br>
1320+
* });<br>
1321+
* }
1322+
* </pre>
1323+
*
1324+
*
1325+
*/
13031326
public Entry includeReferenceContentTypeUID(){
13041327
try {
13051328
otherPostJSON.put("include_reference_content_type_uid", "true");

src/main/java/com/contentstack/sdk/Query.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,26 @@ public Query addParam(String key, String value){
18461846

18471847

18481848

1849+
/**
1850+
* This method also includes the content type UIDs of the referenced entries returned in the response
1851+
* @return {@link Query}
1852+
*
1853+
* <br><br><b>Example :</b><br>
1854+
* <pre class="prettyprint">
1855+
* //'blt5d4sample2633b' is a dummy Stack API key
1856+
* //'blt6d0240b5sample254090d' is dummy access token.
1857+
* Stack stack = Contentstack.stack(context, "blt5d4sample2633b", "blt6d0240b5sample254090d", "stag", false);
1858+
* Query csQuery = stack.contentType("contentType_name").query();<br>
1859+
* csQuery.includeReferenceContentTypUid();
1860+
* csQuery.findOne(new QueryResultsCallBack() {<br>
1861+
* &#64;Override
1862+
* public void onCompletion(ResponseType responseType, ENTRY entry, Error error) {<br>
1863+
* }
1864+
* });<br>
1865+
* </pre>
1866+
*
1867+
*
1868+
*/
18491869
public Query includeReferenceContentTypUid(){
18501870
try {
18511871
urlQueries.put("include_reference_content_type_uid", "true");

0 commit comments

Comments
 (0)