id int32 0 165k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
58,500 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XlsxFormatter.java | XlsxFormatter.updateFormulas | protected void updateFormulas() {
CTCalcChain calculationChain = getCalculationChain();
int formulaCount = processInnerFormulas(calculationChain);
processOuterFormulas(formulaCount, calculationChain);
} | java | protected void updateFormulas() {
CTCalcChain calculationChain = getCalculationChain();
int formulaCount = processInnerFormulas(calculationChain);
processOuterFormulas(formulaCount, calculationChain);
} | [
"protected",
"void",
"updateFormulas",
"(",
")",
"{",
"CTCalcChain",
"calculationChain",
"=",
"getCalculationChain",
"(",
")",
";",
"int",
"formulaCount",
"=",
"processInnerFormulas",
"(",
"calculationChain",
")",
";",
"processOuterFormulas",
"(",
"formulaCount",
",",... | todo support formulas without range but with list of cells | [
"todo",
"support",
"formulas",
"without",
"range",
"but",
"with",
"list",
"of",
"cells"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XlsxFormatter.java#L312-L316 |
58,501 | cuba-platform/yarg | core/modules/core/src/com/haulmont/yarg/formatters/impl/XlsxFormatter.java | XlsxFormatter.createFakeTemplateCellsForEmptyOnes | protected void createFakeTemplateCellsForEmptyOnes(Range oneRowRange,
Map<CellReference, Cell> cellsForOneRowRange,
List<Cell> templateCells) {
if (oneRowRange.toCellReferences().size() != templateCells... | java | protected void createFakeTemplateCellsForEmptyOnes(Range oneRowRange,
Map<CellReference, Cell> cellsForOneRowRange,
List<Cell> templateCells) {
if (oneRowRange.toCellReferences().size() != templateCells... | [
"protected",
"void",
"createFakeTemplateCellsForEmptyOnes",
"(",
"Range",
"oneRowRange",
",",
"Map",
"<",
"CellReference",
",",
"Cell",
">",
"cellsForOneRowRange",
",",
"List",
"<",
"Cell",
">",
"templateCells",
")",
"{",
"if",
"(",
"oneRowRange",
".",
"toCellRefe... | XLSX document does not store empty cells and it might be an issue for formula calculations and etc.
So we need to create fake template cell for each empty cell. | [
"XLSX",
"document",
"does",
"not",
"store",
"empty",
"cells",
"and",
"it",
"might",
"be",
"an",
"issue",
"for",
"formula",
"calculations",
"and",
"etc",
".",
"So",
"we",
"need",
"to",
"create",
"fake",
"template",
"cell",
"for",
"each",
"empty",
"cell",
... | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/core/src/com/haulmont/yarg/formatters/impl/XlsxFormatter.java#L773-L796 |
58,502 | cuba-platform/yarg | core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java | RunParams.templateCode | public RunParams templateCode(String templateCode) {
if (templateCode == null) {
throw new NullPointerException("\"templateCode\" parameter can not be null");
}
this.reportTemplate = report.getReportTemplates().get(templateCode);
if (reportTemplate == null) {
thro... | java | public RunParams templateCode(String templateCode) {
if (templateCode == null) {
throw new NullPointerException("\"templateCode\" parameter can not be null");
}
this.reportTemplate = report.getReportTemplates().get(templateCode);
if (reportTemplate == null) {
thro... | [
"public",
"RunParams",
"templateCode",
"(",
"String",
"templateCode",
")",
"{",
"if",
"(",
"templateCode",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
"\"\\\"templateCode\\\" parameter can not be null\"",
")",
";",
"}",
"this",
".",
"reportT... | Setup necessary template by string code. Throws validation exception if code is null or template not found
@param templateCode - string code of template | [
"Setup",
"necessary",
"template",
"by",
"string",
"code",
".",
"Throws",
"validation",
"exception",
"if",
"code",
"is",
"null",
"or",
"template",
"not",
"found"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java#L43-L52 |
58,503 | cuba-platform/yarg | core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java | RunParams.params | public RunParams params(Map<String, Object> params) {
if (params == null) {
throw new NullPointerException("\"params\" parameter can not be null");
}
this.params.putAll(params);
return this;
} | java | public RunParams params(Map<String, Object> params) {
if (params == null) {
throw new NullPointerException("\"params\" parameter can not be null");
}
this.params.putAll(params);
return this;
} | [
"public",
"RunParams",
"params",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"params",
")",
"{",
"if",
"(",
"params",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
"\"\\\"params\\\" parameter can not be null\"",
")",
";",
"}",
"this",... | Adds parameters from map | [
"Adds",
"parameters",
"from",
"map"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java#L68-L74 |
58,504 | cuba-platform/yarg | core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java | RunParams.param | public RunParams param(String key, Object value) {
params.put(key, value);
return this;
} | java | public RunParams param(String key, Object value) {
params.put(key, value);
return this;
} | [
"public",
"RunParams",
"param",
"(",
"String",
"key",
",",
"Object",
"value",
")",
"{",
"params",
".",
"put",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] | Add single parameter | [
"Add",
"single",
"parameter"
] | d157286cbe29448f3e1f445e8c5dd88808351da0 | https://github.com/cuba-platform/yarg/blob/d157286cbe29448f3e1f445e8c5dd88808351da0/core/modules/api/src/com/haulmont/yarg/reporting/RunParams.java#L79-L82 |
58,505 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollection.java | BoxApiCollection.getCollectionsRequest | public BoxRequestsCollections.GetCollections getCollectionsRequest() {
BoxRequestsCollections.GetCollections request = new BoxRequestsCollections.GetCollections(getCollectionsUrl(), mSession);
return request;
} | java | public BoxRequestsCollections.GetCollections getCollectionsRequest() {
BoxRequestsCollections.GetCollections request = new BoxRequestsCollections.GetCollections(getCollectionsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsCollections",
".",
"GetCollections",
"getCollectionsRequest",
"(",
")",
"{",
"BoxRequestsCollections",
".",
"GetCollections",
"request",
"=",
"new",
"BoxRequestsCollections",
".",
"GetCollections",
"(",
"getCollectionsUrl",
"(",
")",
",",
"mSession",... | Gets a request that gets the collections belonging to the user
@return request to get collections belonging to the user | [
"Gets",
"a",
"request",
"that",
"gets",
"the",
"collections",
"belonging",
"to",
"the",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollection.java#L44-L47 |
58,506 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollection.java | BoxApiCollection.getItemsRequest | public BoxRequestsCollections.GetCollectionItems getItemsRequest(String id) {
BoxRequestsCollections.GetCollectionItems request = new BoxRequestsCollections.GetCollectionItems(id, getCollectionItemsUrl(id), mSession);
return request;
} | java | public BoxRequestsCollections.GetCollectionItems getItemsRequest(String id) {
BoxRequestsCollections.GetCollectionItems request = new BoxRequestsCollections.GetCollectionItems(id, getCollectionItemsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsCollections",
".",
"GetCollectionItems",
"getItemsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsCollections",
".",
"GetCollectionItems",
"request",
"=",
"new",
"BoxRequestsCollections",
".",
"GetCollectionItems",
"(",
"id",
",",
"getCollection... | Gets a request that gets the items of a collection
@param id id of collection to retrieve items of
@return request to get a collections items | [
"Gets",
"a",
"request",
"that",
"gets",
"the",
"items",
"of",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollection.java#L55-L58 |
58,507 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUser.java | BoxUser.createFromId | public static BoxUser createFromId(String userId) {
JsonObject object = new JsonObject();
object.add(BoxCollaborator.FIELD_ID, userId);
object.add(BoxCollaborator.FIELD_TYPE, BoxUser.TYPE);
BoxUser user = new BoxUser();
user.createFromJson(object);
return user;
} | java | public static BoxUser createFromId(String userId) {
JsonObject object = new JsonObject();
object.add(BoxCollaborator.FIELD_ID, userId);
object.add(BoxCollaborator.FIELD_TYPE, BoxUser.TYPE);
BoxUser user = new BoxUser();
user.createFromJson(object);
return user;
} | [
"public",
"static",
"BoxUser",
"createFromId",
"(",
"String",
"userId",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"object",
".",
"add",
"(",
"BoxCollaborator",
".",
"FIELD_ID",
",",
"userId",
")",
";",
"object",
".",
"add",... | A convenience method to create an empty user with just the id and type fields set. This allows
the ability to interact with the content sdk in a more descriptive and type safe manner
@param userId the id of user to create
@return an empty BoxUser object that only contains id and type information | [
"A",
"convenience",
"method",
"to",
"create",
"an",
"empty",
"user",
"with",
"just",
"the",
"id",
"and",
"type",
"fields",
"set",
".",
"This",
"allows",
"the",
"ability",
"to",
"interact",
"with",
"the",
"content",
"sdk",
"in",
"a",
"more",
"descriptive",
... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUser.java#L92-L99 |
58,508 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java | BoxApiEvent.getUserEventsRequest | public BoxRequestsEvent.GetUserEvents getUserEventsRequest() {
BoxRequestsEvent.GetUserEvents request = new BoxRequestsEvent.GetUserEvents( getEventsUrl(), mSession);
return request;
} | java | public BoxRequestsEvent.GetUserEvents getUserEventsRequest() {
BoxRequestsEvent.GetUserEvents request = new BoxRequestsEvent.GetUserEvents( getEventsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsEvent",
".",
"GetUserEvents",
"getUserEventsRequest",
"(",
")",
"{",
"BoxRequestsEvent",
".",
"GetUserEvents",
"request",
"=",
"new",
"BoxRequestsEvent",
".",
"GetUserEvents",
"(",
"getEventsUrl",
"(",
")",
",",
"mSession",
")",
";",
"return",
... | Gets a request that retrieves user events
@return request to get user events | [
"Gets",
"a",
"request",
"that",
"retrieves",
"user",
"events"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java#L32-L35 |
58,509 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java | BoxApiEvent.getEnterpriseEventsRequest | public BoxRequestsEvent.GetEnterpriseEvents getEnterpriseEventsRequest() {
BoxRequestsEvent.GetEnterpriseEvents request = new BoxRequestsEvent.GetEnterpriseEvents(getEventsUrl(), mSession);
return request;
} | java | public BoxRequestsEvent.GetEnterpriseEvents getEnterpriseEventsRequest() {
BoxRequestsEvent.GetEnterpriseEvents request = new BoxRequestsEvent.GetEnterpriseEvents(getEventsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsEvent",
".",
"GetEnterpriseEvents",
"getEnterpriseEventsRequest",
"(",
")",
"{",
"BoxRequestsEvent",
".",
"GetEnterpriseEvents",
"request",
"=",
"new",
"BoxRequestsEvent",
".",
"GetEnterpriseEvents",
"(",
"getEventsUrl",
"(",
")",
",",
"mSession",
... | Gets a request that retrieves enterprise events
@return request to retrieve enterprise events | [
"Gets",
"a",
"request",
"that",
"retrieves",
"enterprise",
"events"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java#L42-L45 |
58,510 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java | BoxApiEvent.getLongPollServerConnection | public RealTimeServerConnection getLongPollServerConnection(RealTimeServerConnection.OnChangeListener changeListener) {
BoxRequestsEvent.EventRealTimeServerRequest request = new BoxRequestsEvent.EventRealTimeServerRequest(getEventsUrl(), mSession);
return new RealTimeServerConnection(request,changeListe... | java | public RealTimeServerConnection getLongPollServerConnection(RealTimeServerConnection.OnChangeListener changeListener) {
BoxRequestsEvent.EventRealTimeServerRequest request = new BoxRequestsEvent.EventRealTimeServerRequest(getEventsUrl(), mSession);
return new RealTimeServerConnection(request,changeListe... | [
"public",
"RealTimeServerConnection",
"getLongPollServerConnection",
"(",
"RealTimeServerConnection",
".",
"OnChangeListener",
"changeListener",
")",
"{",
"BoxRequestsEvent",
".",
"EventRealTimeServerRequest",
"request",
"=",
"new",
"BoxRequestsEvent",
".",
"EventRealTimeServerRe... | Gets a request that retrieves a RealTimeServerConnection, which is used to create a long poll to check for some generic change
to the user's account. This can be combined with syncing logic using getUserEventsRequest or getEnterpriseEventsRequest to discover what has changed.
@param changeListener A listener that will... | [
"Gets",
"a",
"request",
"that",
"retrieves",
"a",
"RealTimeServerConnection",
"which",
"is",
"used",
"to",
"create",
"a",
"long",
"poll",
"to",
"check",
"for",
"some",
"generic",
"change",
"to",
"the",
"user",
"s",
"account",
".",
"This",
"can",
"be",
"com... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiEvent.java#L54-L57 |
58,511 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxJsonObject.java | BoxJsonObject.getPropertyValue | public JsonValue getPropertyValue(String name) {
// Return a copy of json value to ensure user can't change the underlying object directly
JsonValue jsonValue = mCacheMap.getAsJsonValue(name);
return jsonValue == null ? null : JsonValue.readFrom(jsonValue.toString());
} | java | public JsonValue getPropertyValue(String name) {
// Return a copy of json value to ensure user can't change the underlying object directly
JsonValue jsonValue = mCacheMap.getAsJsonValue(name);
return jsonValue == null ? null : JsonValue.readFrom(jsonValue.toString());
} | [
"public",
"JsonValue",
"getPropertyValue",
"(",
"String",
"name",
")",
"{",
"// Return a copy of json value to ensure user can't change the underlying object directly",
"JsonValue",
"jsonValue",
"=",
"mCacheMap",
".",
"getAsJsonValue",
"(",
"name",
")",
";",
"return",
"jsonVa... | Gets the value associated with the key in the property map
@param name name of the property
@return Value of the key | [
"Gets",
"the",
"value",
"associated",
"with",
"the",
"key",
"in",
"the",
"property",
"map"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxJsonObject.java#L104-L108 |
58,512 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java | BoxRequestCommentAdd.setMessage | public R setMessage(String message) {
mBodyMap.put(BoxComment.FIELD_MESSAGE, message);
return (R) this;
} | java | public R setMessage(String message) {
mBodyMap.put(BoxComment.FIELD_MESSAGE, message);
return (R) this;
} | [
"public",
"R",
"setMessage",
"(",
"String",
"message",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxComment",
".",
"FIELD_MESSAGE",
",",
"message",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the message used in the request to create a new comment.
@param message message for the new comment.
@return request with the updated message. | [
"Sets",
"the",
"message",
"used",
"in",
"the",
"request",
"to",
"create",
"a",
"new",
"comment",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java#L46-L49 |
58,513 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java | BoxRequestCommentAdd.getItemId | public String getItemId() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_ID) :
null;
} | java | public String getItemId() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_ID) :
null;
} | [
"public",
"String",
"getItemId",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxComment",
".",
"FIELD_ITEM",
")",
"?",
"(",
"String",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_ID",
")",
":",
"null",
";",
"}"
] | Returns the id of the item currently set in the request to add a comment to.
@return id of the item to add a comment to. | [
"Returns",
"the",
"id",
"of",
"the",
"item",
"currently",
"set",
"in",
"the",
"request",
"to",
"add",
"a",
"comment",
"to",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java#L61-L65 |
58,514 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java | BoxRequestCommentAdd.setItemId | protected R setItemId(String id) {
JsonObject object = new JsonObject();
if (mBodyMap.containsKey(BoxComment.FIELD_ITEM)) {
BoxEntity item = (BoxEntity) mBodyMap.get(BoxComment.FIELD_ITEM);
object = item.toJsonObject();
}
object.add(BoxEntity.FIELD_ID, id);
... | java | protected R setItemId(String id) {
JsonObject object = new JsonObject();
if (mBodyMap.containsKey(BoxComment.FIELD_ITEM)) {
BoxEntity item = (BoxEntity) mBodyMap.get(BoxComment.FIELD_ITEM);
object = item.toJsonObject();
}
object.add(BoxEntity.FIELD_ID, id);
... | [
"protected",
"R",
"setItemId",
"(",
"String",
"id",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"if",
"(",
"mBodyMap",
".",
"containsKey",
"(",
"BoxComment",
".",
"FIELD_ITEM",
")",
")",
"{",
"BoxEntity",
"item",
"=",
"(",
... | Sets the id of the item used in the request to add a comment to.
@param id id of the item to add a comment to.
@return request with the updated item id. | [
"Sets",
"the",
"id",
"of",
"the",
"item",
"used",
"in",
"the",
"request",
"to",
"add",
"a",
"comment",
"to",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java#L73-L83 |
58,515 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java | BoxRequestCommentAdd.getItemType | public String getItemType() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_TYPE) :
null;
} | java | public String getItemType() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_TYPE) :
null;
} | [
"public",
"String",
"getItemType",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxComment",
".",
"FIELD_ITEM",
")",
"?",
"(",
"String",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_TYPE",
")",
":",
"null",
";",
"}"
] | Returns the type of item used in the request to add a comment to.
@return type of item to add a comment to. | [
"Returns",
"the",
"type",
"of",
"item",
"used",
"in",
"the",
"request",
"to",
"add",
"a",
"comment",
"to",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java#L90-L94 |
58,516 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java | BoxRequestCommentAdd.setItemType | protected R setItemType(String type) {
JsonObject object = new JsonObject();
if (mBodyMap.containsKey(BoxComment.FIELD_ITEM)) {
BoxEntity item = (BoxEntity) mBodyMap.get(BoxComment.FIELD_ITEM);
object = item.toJsonObject();
}
object.add(BoxEntity.FIELD_TYPE, type)... | java | protected R setItemType(String type) {
JsonObject object = new JsonObject();
if (mBodyMap.containsKey(BoxComment.FIELD_ITEM)) {
BoxEntity item = (BoxEntity) mBodyMap.get(BoxComment.FIELD_ITEM);
object = item.toJsonObject();
}
object.add(BoxEntity.FIELD_TYPE, type)... | [
"protected",
"R",
"setItemType",
"(",
"String",
"type",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"if",
"(",
"mBodyMap",
".",
"containsKey",
"(",
"BoxComment",
".",
"FIELD_ITEM",
")",
")",
"{",
"BoxEntity",
"item",
"=",
"... | Sets the type of item used in the request to add a comment to.
@param type type of item used in the request. Must be "file", "comment", or "web_link".
@return request with the updated item type. | [
"Sets",
"the",
"type",
"of",
"item",
"used",
"in",
"the",
"request",
"to",
"add",
"a",
"comment",
"to",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCommentAdd.java#L102-L112 |
58,517 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpResponse.java | BoxHttpResponse.open | public void open() throws IOException {
mConnection.connect();
mContentType = mConnection.getContentType();
mResponseCode = mConnection.getResponseCode();
mContentEncoding = mConnection.getContentEncoding();
} | java | public void open() throws IOException {
mConnection.connect();
mContentType = mConnection.getContentType();
mResponseCode = mConnection.getResponseCode();
mContentEncoding = mConnection.getContentEncoding();
} | [
"public",
"void",
"open",
"(",
")",
"throws",
"IOException",
"{",
"mConnection",
".",
"connect",
"(",
")",
";",
"mContentType",
"=",
"mConnection",
".",
"getContentType",
"(",
")",
";",
"mResponseCode",
"=",
"mConnection",
".",
"getResponseCode",
"(",
")",
"... | Open connection to the resource.
@throws IOException if an error occurs connecting to server. | [
"Open",
"connection",
"to",
"the",
"resource",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpResponse.java#L60-L65 |
58,518 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestList.java | BoxRequestList.setLimit | public R setLimit(int limit) {
mQueryMap.put(LIMIT, String.valueOf(limit));
return (R) this;
} | java | public R setLimit(int limit) {
mQueryMap.put(LIMIT, String.valueOf(limit));
return (R) this;
} | [
"public",
"R",
"setLimit",
"(",
"int",
"limit",
")",
"{",
"mQueryMap",
".",
"put",
"(",
"LIMIT",
",",
"String",
".",
"valueOf",
"(",
"limit",
")",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the limit of items that should be returned
@param limit limit of items to return
@return the get folder items request | [
"Sets",
"the",
"limit",
"of",
"items",
"that",
"should",
"be",
"returned"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestList.java#L39-L42 |
58,519 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestList.java | BoxRequestList.setOffset | public R setOffset(int offset) {
mQueryMap.put(OFFSET, String.valueOf(offset));
return (R) this;
} | java | public R setOffset(int offset) {
mQueryMap.put(OFFSET, String.valueOf(offset));
return (R) this;
} | [
"public",
"R",
"setOffset",
"(",
"int",
"offset",
")",
"{",
"mQueryMap",
".",
"put",
"(",
"OFFSET",
",",
"String",
".",
"valueOf",
"(",
"offset",
")",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the offset of the items that should be returned
@param offset offset of items to return
@return the offset of the items to return | [
"Sets",
"the",
"offset",
"of",
"the",
"items",
"that",
"should",
"be",
"returned"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestList.java#L50-L53 |
58,520 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApi.java | BoxApi.getBaseUri | protected String getBaseUri() {
if (mSession != null && mSession.getAuthInfo() != null && mSession.getAuthInfo().getBaseDomain() != null){
return String.format(BoxConstants.BASE_URI_TEMPLATE,mSession.getAuthInfo().getBaseDomain());
}
return mBaseUri;
} | java | protected String getBaseUri() {
if (mSession != null && mSession.getAuthInfo() != null && mSession.getAuthInfo().getBaseDomain() != null){
return String.format(BoxConstants.BASE_URI_TEMPLATE,mSession.getAuthInfo().getBaseDomain());
}
return mBaseUri;
} | [
"protected",
"String",
"getBaseUri",
"(",
")",
"{",
"if",
"(",
"mSession",
"!=",
"null",
"&&",
"mSession",
".",
"getAuthInfo",
"(",
")",
"!=",
"null",
"&&",
"mSession",
".",
"getAuthInfo",
"(",
")",
".",
"getBaseDomain",
"(",
")",
"!=",
"null",
")",
"{... | Returns the base URI for the API.
@return base URI for the API. | [
"Returns",
"the",
"base",
"URI",
"for",
"the",
"API",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApi.java#L29-L34 |
58,521 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApi.java | BoxApi.getBaseUploadUri | protected String getBaseUploadUri() {
if (mSession != null && mSession.getAuthInfo() != null && mSession.getAuthInfo().getBaseDomain() != null){
return String.format(BoxConstants.BASE_UPLOAD_URI_TEMPLATE, mSession.getAuthInfo().getBaseDomain());
}
return mBaseUploadUri;
} | java | protected String getBaseUploadUri() {
if (mSession != null && mSession.getAuthInfo() != null && mSession.getAuthInfo().getBaseDomain() != null){
return String.format(BoxConstants.BASE_UPLOAD_URI_TEMPLATE, mSession.getAuthInfo().getBaseDomain());
}
return mBaseUploadUri;
} | [
"protected",
"String",
"getBaseUploadUri",
"(",
")",
"{",
"if",
"(",
"mSession",
"!=",
"null",
"&&",
"mSession",
".",
"getAuthInfo",
"(",
")",
"!=",
"null",
"&&",
"mSession",
".",
"getAuthInfo",
"(",
")",
".",
"getBaseDomain",
"(",
")",
"!=",
"null",
")"... | Returns the base URI for uploads for the API.
@return base upload URI. | [
"Returns",
"the",
"base",
"URI",
"for",
"uploads",
"for",
"the",
"API",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApi.java#L41-L46 |
58,522 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxCollaborationItem.java | BoxCollaborationItem.getAllowedInviteeRoles | public ArrayList<BoxCollaboration.Role> getAllowedInviteeRoles() {
if (mCachedAllowedInviteeRoles != null){
return mCachedAllowedInviteeRoles;
}
ArrayList<String> roles = getPropertyAsStringArray(FIELD_ALLOWED_INVITEE_ROLES);
if (roles == null){
return null;
... | java | public ArrayList<BoxCollaboration.Role> getAllowedInviteeRoles() {
if (mCachedAllowedInviteeRoles != null){
return mCachedAllowedInviteeRoles;
}
ArrayList<String> roles = getPropertyAsStringArray(FIELD_ALLOWED_INVITEE_ROLES);
if (roles == null){
return null;
... | [
"public",
"ArrayList",
"<",
"BoxCollaboration",
".",
"Role",
">",
"getAllowedInviteeRoles",
"(",
")",
"{",
"if",
"(",
"mCachedAllowedInviteeRoles",
"!=",
"null",
")",
"{",
"return",
"mCachedAllowedInviteeRoles",
";",
"}",
"ArrayList",
"<",
"String",
">",
"roles",
... | Item collaboration settings allowed by the enterprise administrator.
@return list of roles allowed for item collaboration invitees. | [
"Item",
"collaboration",
"settings",
"allowed",
"by",
"the",
"enterprise",
"administrator",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxCollaborationItem.java#L64-L77 |
58,523 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSessionEndpoints.java | BoxUploadSessionEndpoints.getEndpointsMap | public Map<String, String> getEndpointsMap () {
List<String> keys = getPropertiesKeySet();
HashMap<String, String> endpoints = new HashMap<>(keys.size());
for (String key : keys) {
endpoints.put(key, getPropertyAsString(key));
}
return endpoints;
} | java | public Map<String, String> getEndpointsMap () {
List<String> keys = getPropertiesKeySet();
HashMap<String, String> endpoints = new HashMap<>(keys.size());
for (String key : keys) {
endpoints.put(key, getPropertyAsString(key));
}
return endpoints;
} | [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"getEndpointsMap",
"(",
")",
"{",
"List",
"<",
"String",
">",
"keys",
"=",
"getPropertiesKeySet",
"(",
")",
";",
"HashMap",
"<",
"String",
",",
"String",
">",
"endpoints",
"=",
"new",
"HashMap",
"<>",
... | Get a map of all end points
@return | [
"Get",
"a",
"map",
"of",
"all",
"end",
"points"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSessionEndpoints.java#L63-L70 |
58,524 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxGroup.java | BoxGroup.createFromId | public static BoxGroup createFromId(String groupId) {
JsonObject object = new JsonObject();
object.add(BoxCollaborator.FIELD_ID, groupId);
object.add(BoxCollaborator.FIELD_TYPE, BoxUser.TYPE);
return new BoxGroup(object);
} | java | public static BoxGroup createFromId(String groupId) {
JsonObject object = new JsonObject();
object.add(BoxCollaborator.FIELD_ID, groupId);
object.add(BoxCollaborator.FIELD_TYPE, BoxUser.TYPE);
return new BoxGroup(object);
} | [
"public",
"static",
"BoxGroup",
"createFromId",
"(",
"String",
"groupId",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"object",
".",
"add",
"(",
"BoxCollaborator",
".",
"FIELD_ID",
",",
"groupId",
")",
";",
"object",
".",
"ad... | A convenience method to create an empty group with just the id and type fields set. This allows
the ability to interact with the content sdk in a more descriptive and type safe manner
@param groupId the id of group to create
@return an empty BoxGroup object that only contains id and type information | [
"A",
"convenience",
"method",
"to",
"create",
"an",
"empty",
"group",
"with",
"just",
"the",
"id",
"and",
"type",
"fields",
"set",
".",
"This",
"allows",
"the",
"ability",
"to",
"interact",
"with",
"the",
"content",
"sdk",
"in",
"a",
"more",
"descriptive",... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxGroup.java#L38-L43 |
58,525 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getAddFolderMetadataRequest | public BoxRequestsMetadata.AddItemMetadata getAddFolderMetadataRequest(String id, LinkedHashMap<String, Object> values, String scope, String template) {
BoxRequestsMetadata.AddItemMetadata request = new BoxRequestsMetadata.AddItemMetadata(values, getFolderMetadataUrl(id, scope, template), mSession);
ret... | java | public BoxRequestsMetadata.AddItemMetadata getAddFolderMetadataRequest(String id, LinkedHashMap<String, Object> values, String scope, String template) {
BoxRequestsMetadata.AddItemMetadata request = new BoxRequestsMetadata.AddItemMetadata(values, getFolderMetadataUrl(id, scope, template), mSession);
ret... | [
"public",
"BoxRequestsMetadata",
".",
"AddItemMetadata",
"getAddFolderMetadataRequest",
"(",
"String",
"id",
",",
"LinkedHashMap",
"<",
"String",
",",
"Object",
">",
"values",
",",
"String",
"scope",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
... | Gets a request that adds metadata to a folder
@param id id of the folder to add metadata to
@param values mapping of the template keys to their values
@param scope currently only global and enterprise scopes are supported
@param template metadata template to use
@return request to add metadata to a folder | [
"Gets",
"a",
"request",
"that",
"adds",
"metadata",
"to",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L129-L132 |
58,526 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getFolderMetadataRequest | public BoxRequestsMetadata.GetItemMetadata getFolderMetadataRequest(String id, String template) {
BoxRequestsMetadata.GetItemMetadata request = new BoxRequestsMetadata.GetItemMetadata(getFolderMetadataUrl(id, template), mSession);
return request;
} | java | public BoxRequestsMetadata.GetItemMetadata getFolderMetadataRequest(String id, String template) {
BoxRequestsMetadata.GetItemMetadata request = new BoxRequestsMetadata.GetItemMetadata(getFolderMetadataUrl(id, template), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"GetItemMetadata",
"getFolderMetadataRequest",
"(",
"String",
"id",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
"GetItemMetadata",
"request",
"=",
"new",
"BoxRequestsMetadata",
".",
"GetItemMetadata",
"(",
"getF... | Gets a request that retrieves the metadata for a specific template on a folder
@param id id of the folder to retrieve metadata for
@param template metadata template requested
@return request to retrieve metadata on a folder | [
"Gets",
"a",
"request",
"that",
"retrieves",
"the",
"metadata",
"for",
"a",
"specific",
"template",
"on",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L201-L204 |
58,527 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getUpdateFileMetadataRequest | public BoxRequestsMetadata.UpdateFileMetadata getUpdateFileMetadataRequest(String id, String scope, String template) {
BoxRequestsMetadata.UpdateFileMetadata request = new BoxRequestsMetadata.UpdateFileMetadata(getFileMetadataUrl(id, scope, template), mSession);
return request;
} | java | public BoxRequestsMetadata.UpdateFileMetadata getUpdateFileMetadataRequest(String id, String scope, String template) {
BoxRequestsMetadata.UpdateFileMetadata request = new BoxRequestsMetadata.UpdateFileMetadata(getFileMetadataUrl(id, scope, template), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"UpdateFileMetadata",
"getUpdateFileMetadataRequest",
"(",
"String",
"id",
",",
"String",
"scope",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
"UpdateFileMetadata",
"request",
"=",
"new",
"BoxRequestsMetadata",
... | Gets a request that updates the metadata for a specific template on a file
@param id id of the file to retrieve metadata for
@param scope currently only global and enterprise scopes are supported
@param template metadata template to use
@return request to update metadata on a file | [
"Gets",
"a",
"request",
"that",
"updates",
"the",
"metadata",
"for",
"a",
"specific",
"template",
"on",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L228-L231 |
58,528 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getUpdateFolderMetadataRequest | public BoxRequestsMetadata.UpdateItemMetadata getUpdateFolderMetadataRequest(String id, String scope, String template) {
BoxRequestsMetadata.UpdateItemMetadata request = new BoxRequestsMetadata.UpdateItemMetadata(getFolderMetadataUrl(id, scope, template), mSession);
return request;
} | java | public BoxRequestsMetadata.UpdateItemMetadata getUpdateFolderMetadataRequest(String id, String scope, String template) {
BoxRequestsMetadata.UpdateItemMetadata request = new BoxRequestsMetadata.UpdateItemMetadata(getFolderMetadataUrl(id, scope, template), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"UpdateItemMetadata",
"getUpdateFolderMetadataRequest",
"(",
"String",
"id",
",",
"String",
"scope",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
"UpdateItemMetadata",
"request",
"=",
"new",
"BoxRequestsMetadata",
... | Gets a request that updates the metadata for a specific template on a folder
@param id id of the folder to retrieve metadata for
@param scope currently only global and enterprise scopes are supported
@param template metadata template to use
@return request to update metadata on a folder | [
"Gets",
"a",
"request",
"that",
"updates",
"the",
"metadata",
"for",
"a",
"specific",
"template",
"on",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L241-L244 |
58,529 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getDeleteFileMetadataTemplateRequest | public BoxRequestsMetadata.DeleteFileMetadata getDeleteFileMetadataTemplateRequest(String id, String template) {
BoxRequestsMetadata.DeleteFileMetadata request = new BoxRequestsMetadata.DeleteFileMetadata(getFileMetadataUrl(id, template), mSession);
return request;
} | java | public BoxRequestsMetadata.DeleteFileMetadata getDeleteFileMetadataTemplateRequest(String id, String template) {
BoxRequestsMetadata.DeleteFileMetadata request = new BoxRequestsMetadata.DeleteFileMetadata(getFileMetadataUrl(id, template), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"DeleteFileMetadata",
"getDeleteFileMetadataTemplateRequest",
"(",
"String",
"id",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
"DeleteFileMetadata",
"request",
"=",
"new",
"BoxRequestsMetadata",
".",
"DeleteFileMeta... | Gets a request that deletes the metadata for a specific template on a file
@param id id of the file to retrieve metadata for
@param template metadata template to use
@return request to delete metadata on a file | [
"Gets",
"a",
"request",
"that",
"deletes",
"the",
"metadata",
"for",
"a",
"specific",
"template",
"on",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L265-L268 |
58,530 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getDeleteFolderMetadataTemplateRequest | public BoxRequestsMetadata.DeleteItemMetadata getDeleteFolderMetadataTemplateRequest(String id, String template) {
BoxRequestsMetadata.DeleteItemMetadata request = new BoxRequestsMetadata.DeleteItemMetadata(getFolderMetadataUrl(id, template), mSession);
return request;
} | java | public BoxRequestsMetadata.DeleteItemMetadata getDeleteFolderMetadataTemplateRequest(String id, String template) {
BoxRequestsMetadata.DeleteItemMetadata request = new BoxRequestsMetadata.DeleteItemMetadata(getFolderMetadataUrl(id, template), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"DeleteItemMetadata",
"getDeleteFolderMetadataTemplateRequest",
"(",
"String",
"id",
",",
"String",
"template",
")",
"{",
"BoxRequestsMetadata",
".",
"DeleteItemMetadata",
"request",
"=",
"new",
"BoxRequestsMetadata",
".",
"DeleteItemMe... | Gets a request that deletes the metadata for a specific template on a folder
@param id id of the folder to retrieve metadata for
@param template metadata template to use
@return request to delete metadata on a folder | [
"Gets",
"a",
"request",
"that",
"deletes",
"the",
"metadata",
"for",
"a",
"specific",
"template",
"on",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L277-L280 |
58,531 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java | BoxApiMetadata.getMetadataTemplatesRequest | public BoxRequestsMetadata.GetMetadataTemplates getMetadataTemplatesRequest() {
BoxRequestsMetadata.GetMetadataTemplates request = new BoxRequestsMetadata.GetMetadataTemplates(getMetadataTemplatesUrl(), mSession);
return request;
} | java | public BoxRequestsMetadata.GetMetadataTemplates getMetadataTemplatesRequest() {
BoxRequestsMetadata.GetMetadataTemplates request = new BoxRequestsMetadata.GetMetadataTemplates(getMetadataTemplatesUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsMetadata",
".",
"GetMetadataTemplates",
"getMetadataTemplatesRequest",
"(",
")",
"{",
"BoxRequestsMetadata",
".",
"GetMetadataTemplates",
"request",
"=",
"new",
"BoxRequestsMetadata",
".",
"GetMetadataTemplates",
"(",
"getMetadataTemplatesUrl",
"(",
")",... | Gets a request that retrieves available metadata templates under the enterprise scope
@return request to retrieve available metadata templates | [
"Gets",
"a",
"request",
"that",
"retrieves",
"available",
"metadata",
"templates",
"under",
"the",
"enterprise",
"scope"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiMetadata.java#L288-L291 |
58,532 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java | BoxSession.logout | public BoxFutureTask<BoxSession> logout() {
final BoxFutureTask<BoxSession> task = (new BoxSessionLogoutRequest(this)).toTask();
new Thread(){
@Override
public void run() {
task.run();
}
}.start();
return task;
} | java | public BoxFutureTask<BoxSession> logout() {
final BoxFutureTask<BoxSession> task = (new BoxSessionLogoutRequest(this)).toTask();
new Thread(){
@Override
public void run() {
task.run();
}
}.start();
return task;
} | [
"public",
"BoxFutureTask",
"<",
"BoxSession",
">",
"logout",
"(",
")",
"{",
"final",
"BoxFutureTask",
"<",
"BoxSession",
">",
"task",
"=",
"(",
"new",
"BoxSessionLogoutRequest",
"(",
"this",
")",
")",
".",
"toTask",
"(",
")",
";",
"new",
"Thread",
"(",
"... | Logout the currently authenticated user.
@return a task that can be used to block until the user associated with this session has been logged out. | [
"Logout",
"the",
"currently",
"authenticated",
"user",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java#L467-L477 |
58,533 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java | BoxSession.refresh | public BoxFutureTask<BoxSession> refresh() {
if (mRefreshTask != null && mRefreshTask.get() != null){
BoxFutureTask<BoxSession> lastRefreshTask = mRefreshTask.get();
if (!(lastRefreshTask.isCancelled() || lastRefreshTask.isDone())){
return lastRefreshTask;
}
... | java | public BoxFutureTask<BoxSession> refresh() {
if (mRefreshTask != null && mRefreshTask.get() != null){
BoxFutureTask<BoxSession> lastRefreshTask = mRefreshTask.get();
if (!(lastRefreshTask.isCancelled() || lastRefreshTask.isDone())){
return lastRefreshTask;
}
... | [
"public",
"BoxFutureTask",
"<",
"BoxSession",
">",
"refresh",
"(",
")",
"{",
"if",
"(",
"mRefreshTask",
"!=",
"null",
"&&",
"mRefreshTask",
".",
"get",
"(",
")",
"!=",
"null",
")",
"{",
"BoxFutureTask",
"<",
"BoxSession",
">",
"lastRefreshTask",
"=",
"mRef... | Refresh authentication information associated with this session.
@return a task that can be used to block until the information associated with this session has been refreshed. | [
"Refresh",
"authentication",
"information",
"associated",
"with",
"this",
"session",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java#L485-L501 |
58,534 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java | BoxSession.onRefreshed | @Override
public void onRefreshed(BoxAuthentication.BoxAuthenticationInfo info) {
if (sameUser(info)) {
BoxAuthentication.BoxAuthenticationInfo.cloneInfo(mAuthInfo, info);
if (sessionAuthListener != null) {
sessionAuthListener.onRefreshed(info);
}
... | java | @Override
public void onRefreshed(BoxAuthentication.BoxAuthenticationInfo info) {
if (sameUser(info)) {
BoxAuthentication.BoxAuthenticationInfo.cloneInfo(mAuthInfo, info);
if (sessionAuthListener != null) {
sessionAuthListener.onRefreshed(info);
}
... | [
"@",
"Override",
"public",
"void",
"onRefreshed",
"(",
"BoxAuthentication",
".",
"BoxAuthenticationInfo",
"info",
")",
"{",
"if",
"(",
"sameUser",
"(",
"info",
")",
")",
"{",
"BoxAuthentication",
".",
"BoxAuthenticationInfo",
".",
"cloneInfo",
"(",
"mAuthInfo",
... | Called when this session has been refreshed with new authentication info.
@param info the latest info from a successful refresh. | [
"Called",
"when",
"this",
"session",
"has",
"been",
"refreshed",
"with",
"new",
"authentication",
"info",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java#L562-L570 |
58,535 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java | BoxSession.onAuthCreated | @Override
public void onAuthCreated(BoxAuthentication.BoxAuthenticationInfo info) {
if (sameUser(info) || getUserId() == null) {
BoxAuthentication.BoxAuthenticationInfo.cloneInfo(mAuthInfo, info);
if (info.getUser() != null) {
setUserId(info.getUser().getId());
... | java | @Override
public void onAuthCreated(BoxAuthentication.BoxAuthenticationInfo info) {
if (sameUser(info) || getUserId() == null) {
BoxAuthentication.BoxAuthenticationInfo.cloneInfo(mAuthInfo, info);
if (info.getUser() != null) {
setUserId(info.getUser().getId());
... | [
"@",
"Override",
"public",
"void",
"onAuthCreated",
"(",
"BoxAuthentication",
".",
"BoxAuthenticationInfo",
"info",
")",
"{",
"if",
"(",
"sameUser",
"(",
"info",
")",
"||",
"getUserId",
"(",
")",
"==",
"null",
")",
"{",
"BoxAuthentication",
".",
"BoxAuthentica... | Called when this user has logged in.
@param info the latest info from going through the login flow. | [
"Called",
"when",
"this",
"user",
"has",
"logged",
"in",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java#L577-L588 |
58,536 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java | BoxSession.onAuthFailure | @Override
public void onAuthFailure(BoxAuthentication.BoxAuthenticationInfo info, Exception ex) {
if (sameUser(info) || (info == null && getUserId() == null)) {
if (sessionAuthListener != null) {
sessionAuthListener.onAuthFailure(info, ex);
}
if (ex instan... | java | @Override
public void onAuthFailure(BoxAuthentication.BoxAuthenticationInfo info, Exception ex) {
if (sameUser(info) || (info == null && getUserId() == null)) {
if (sessionAuthListener != null) {
sessionAuthListener.onAuthFailure(info, ex);
}
if (ex instan... | [
"@",
"Override",
"public",
"void",
"onAuthFailure",
"(",
"BoxAuthentication",
".",
"BoxAuthenticationInfo",
"info",
",",
"Exception",
"ex",
")",
"{",
"if",
"(",
"sameUser",
"(",
"info",
")",
"||",
"(",
"info",
"==",
"null",
"&&",
"getUserId",
"(",
")",
"==... | Called when a failure occurs trying to authenticate or refresh.
@param info The last authentication information available, before the exception.
@param ex the exception that occurred. | [
"Called",
"when",
"a",
"failure",
"occurs",
"trying",
"to",
"authenticate",
"or",
"refresh",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxSession.java#L596-L614 |
58,537 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java | BoxRequestItemCopy.getName | public String getName() {
return mBodyMap.containsKey(BoxItem.FIELD_NAME) ?
(String) mBodyMap.get(BoxItem.FIELD_NAME) :
null;
} | java | public String getName() {
return mBodyMap.containsKey(BoxItem.FIELD_NAME) ?
(String) mBodyMap.get(BoxItem.FIELD_NAME) :
null;
} | [
"public",
"String",
"getName",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_NAME",
")",
"?",
"(",
"String",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_NAME",
")",
":",
"null",
";",
"}"
] | Returns the name currently set for the item copy.
@return name for the item copy, or null if not set | [
"Returns",
"the",
"name",
"currently",
"set",
"for",
"the",
"item",
"copy",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java#L38-L42 |
58,538 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java | BoxRequestItemCopy.setName | public R setName(String name) {
mBodyMap.put(BoxItem.FIELD_NAME, name);
return (R) this;
} | java | public R setName(String name) {
mBodyMap.put(BoxItem.FIELD_NAME, name);
return (R) this;
} | [
"public",
"R",
"setName",
"(",
"String",
"name",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxItem",
".",
"FIELD_NAME",
",",
"name",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the name used in the request for the item copy.
@param name name for the copy of the item.
@return request with the updated name. | [
"Sets",
"the",
"name",
"used",
"in",
"the",
"request",
"for",
"the",
"item",
"copy",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java#L50-L53 |
58,539 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java | BoxRequestItemCopy.getParentId | public String getParentId() {
return mBodyMap.containsKey(BoxItem.FIELD_PARENT) ?
((BoxFolder) mBodyMap.get(BoxItem.FIELD_PARENT)).getId() :
null;
} | java | public String getParentId() {
return mBodyMap.containsKey(BoxItem.FIELD_PARENT) ?
((BoxFolder) mBodyMap.get(BoxItem.FIELD_PARENT)).getId() :
null;
} | [
"public",
"String",
"getParentId",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_PARENT",
")",
"?",
"(",
"(",
"BoxFolder",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_PARENT",
")",
")",
".",
"getId",
"(... | Returns the parent id currently set for the item copy.
@return id of the parent folder for the item copy. | [
"Returns",
"the",
"parent",
"id",
"currently",
"set",
"for",
"the",
"item",
"copy",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java#L60-L64 |
58,540 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java | BoxRequestItemCopy.setParentId | public R setParentId(String parentId) {
BoxFolder parentFolder = BoxFolder.createFromId(parentId);
mBodyMap.put(BoxItem.FIELD_PARENT, parentFolder);
return (R) this;
} | java | public R setParentId(String parentId) {
BoxFolder parentFolder = BoxFolder.createFromId(parentId);
mBodyMap.put(BoxItem.FIELD_PARENT, parentFolder);
return (R) this;
} | [
"public",
"R",
"setParentId",
"(",
"String",
"parentId",
")",
"{",
"BoxFolder",
"parentFolder",
"=",
"BoxFolder",
".",
"createFromId",
"(",
"parentId",
")",
";",
"mBodyMap",
".",
"put",
"(",
"BoxItem",
".",
"FIELD_PARENT",
",",
"parentFolder",
")",
";",
"ret... | Sets the parent id used in the request for the item copy.
@param parentId id of the parent folder for the item copy.
@return request with the updated parent id. | [
"Sets",
"the",
"parent",
"id",
"used",
"in",
"the",
"request",
"for",
"the",
"item",
"copy",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemCopy.java#L72-L76 |
58,541 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSession.java | BoxUploadSession.setPartsSha1 | public void setPartsSha1(List<String> sha1s) {
JsonArray jsonArray = new JsonArray();
for (String s : sha1s) {
jsonArray.add(s);
}
set(FIELD_PARTS_SHA1, jsonArray);
} | java | public void setPartsSha1(List<String> sha1s) {
JsonArray jsonArray = new JsonArray();
for (String s : sha1s) {
jsonArray.add(s);
}
set(FIELD_PARTS_SHA1, jsonArray);
} | [
"public",
"void",
"setPartsSha1",
"(",
"List",
"<",
"String",
">",
"sha1s",
")",
"{",
"JsonArray",
"jsonArray",
"=",
"new",
"JsonArray",
"(",
")",
";",
"for",
"(",
"String",
"s",
":",
"sha1s",
")",
"{",
"jsonArray",
".",
"add",
"(",
"s",
")",
";",
... | Util method for storing sha1 for parts being uploaded | [
"Util",
"method",
"for",
"storing",
"sha1",
"for",
"parts",
"being",
"uploaded"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSession.java#L136-L142 |
58,542 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSession.java | BoxUploadSession.getChunkSize | public static int getChunkSize(BoxUploadSession uploadSession, int partNumber, long fileSize) {
if (partNumber == uploadSession.getTotalParts() - 1) {
return (int) (fileSize - partNumber * uploadSession.getPartSize());
}
return uploadSession.getPartSize();
} | java | public static int getChunkSize(BoxUploadSession uploadSession, int partNumber, long fileSize) {
if (partNumber == uploadSession.getTotalParts() - 1) {
return (int) (fileSize - partNumber * uploadSession.getPartSize());
}
return uploadSession.getPartSize();
} | [
"public",
"static",
"int",
"getChunkSize",
"(",
"BoxUploadSession",
"uploadSession",
",",
"int",
"partNumber",
",",
"long",
"fileSize",
")",
"{",
"if",
"(",
"partNumber",
"==",
"uploadSession",
".",
"getTotalParts",
"(",
")",
"-",
"1",
")",
"{",
"return",
"(... | Computes the actual bytes to be sent in a part, which equals the partsize for all parts
except the last.
@param uploadSession
@param partNumber
@param fileSize
@return | [
"Computes",
"the",
"actual",
"bytes",
"to",
"be",
"sent",
"in",
"a",
"part",
"which",
"equals",
"the",
"partsize",
"for",
"all",
"parts",
"except",
"the",
"last",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxUploadSession.java#L160-L165 |
58,543 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxItem.java | BoxItem.getPathCollection | public BoxIterator<BoxFolder> getPathCollection() {
return (BoxIterator<BoxFolder>)getPropertyAsJsonObject(BoxJsonObject.getBoxJsonObjectCreator(BoxIteratorBoxEntity.class),FIELD_PATH_COLLECTION);
} | java | public BoxIterator<BoxFolder> getPathCollection() {
return (BoxIterator<BoxFolder>)getPropertyAsJsonObject(BoxJsonObject.getBoxJsonObjectCreator(BoxIteratorBoxEntity.class),FIELD_PATH_COLLECTION);
} | [
"public",
"BoxIterator",
"<",
"BoxFolder",
">",
"getPathCollection",
"(",
")",
"{",
"return",
"(",
"BoxIterator",
"<",
"BoxFolder",
">",
")",
"getPropertyAsJsonObject",
"(",
"BoxJsonObject",
".",
"getBoxJsonObjectCreator",
"(",
"BoxIteratorBoxEntity",
".",
"class",
... | Gets the path of folders to the item, starting at the root.
@return the path of folders to the item. | [
"Gets",
"the",
"path",
"of",
"folders",
"to",
"the",
"item",
"starting",
"at",
"the",
"root",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxItem.java#L122-L124 |
58,544 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxItem.java | BoxItem.createBoxItemFromJson | @Deprecated
public static BoxItem createBoxItemFromJson(final String json) {
BoxEntity createdByEntity = new BoxEntity();
createdByEntity.createFromJson(json);
if (createdByEntity.getType().equals(BoxFile.TYPE)) {
BoxFile file = new BoxFile();
file.createFromJson(json... | java | @Deprecated
public static BoxItem createBoxItemFromJson(final String json) {
BoxEntity createdByEntity = new BoxEntity();
createdByEntity.createFromJson(json);
if (createdByEntity.getType().equals(BoxFile.TYPE)) {
BoxFile file = new BoxFile();
file.createFromJson(json... | [
"@",
"Deprecated",
"public",
"static",
"BoxItem",
"createBoxItemFromJson",
"(",
"final",
"String",
"json",
")",
"{",
"BoxEntity",
"createdByEntity",
"=",
"new",
"BoxEntity",
"(",
")",
";",
"createdByEntity",
".",
"createFromJson",
"(",
"json",
")",
";",
"if",
... | Deprecated use BoxEntity.createEntityFromJson. FromCreates a BoxItem object from a JSON string.
@param json JSON string to convert to a BoxItem.
@return BoxItem object representing information in the JSON string. | [
"Deprecated",
"use",
"BoxEntity",
".",
"createEntityFromJson",
".",
"FromCreates",
"a",
"BoxItem",
"object",
"from",
"a",
"JSON",
"string",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxItem.java#L314-L333 |
58,545 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadSessionForNewFileVersionUrl | protected String getUploadSessionForNewFileVersionUrl(final String id) {
return String.format(Locale.ENGLISH, "%s/files/%s/upload_sessions", getBaseUploadUri(), id);
} | java | protected String getUploadSessionForNewFileVersionUrl(final String id) {
return String.format(Locale.ENGLISH, "%s/files/%s/upload_sessions", getBaseUploadUri(), id);
} | [
"protected",
"String",
"getUploadSessionForNewFileVersionUrl",
"(",
"final",
"String",
"id",
")",
"{",
"return",
"String",
".",
"format",
"(",
"Locale",
".",
"ENGLISH",
",",
"\"%s/files/%s/upload_sessions\"",
",",
"getBaseUploadUri",
"(",
")",
",",
"id",
")",
";",... | Get the URL for uploading file a new version of a file in chunks
@param id id of file to retrieve info on
@return the upload sessions URL | [
"Get",
"the",
"URL",
"for",
"uploading",
"file",
"a",
"new",
"version",
"of",
"a",
"file",
"in",
"chunks"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L162-L164 |
58,546 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getInfoRequest | public BoxRequestsFile.GetFileInfo getInfoRequest(final String id) {
BoxRequestsFile.GetFileInfo request = new BoxRequestsFile.GetFileInfo(id, getFileInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetFileInfo getInfoRequest(final String id) {
BoxRequestsFile.GetFileInfo request = new BoxRequestsFile.GetFileInfo(id, getFileInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetFileInfo",
"getInfoRequest",
"(",
"final",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetFileInfo",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetFileInfo",
"(",
"id",
",",
"getFileInfoUrl",
"(",
"id",
")",
",",... | Gets a request that retrieves information on a file
@param id id of file to retrieve info on
@return request to get a files information | [
"Gets",
"a",
"request",
"that",
"retrieves",
"information",
"on",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L174-L177 |
58,547 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getEmbedLinkRequest | public BoxRequestsFile.GetEmbedLinkFileInfo getEmbedLinkRequest(final String id) {
BoxRequestsFile.GetEmbedLinkFileInfo request = new BoxRequestsFile.GetEmbedLinkFileInfo(id, getFileInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetEmbedLinkFileInfo getEmbedLinkRequest(final String id) {
BoxRequestsFile.GetEmbedLinkFileInfo request = new BoxRequestsFile.GetEmbedLinkFileInfo(id, getFileInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetEmbedLinkFileInfo",
"getEmbedLinkRequest",
"(",
"final",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetEmbedLinkFileInfo",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetEmbedLinkFileInfo",
"(",
"id",
",",
"getFileInfoUr... | Gets a request that retrieves an expiring embedded link which can be embedded in a webview for a preview.
@param id id of file to retrieve info on
@return request to get a files information | [
"Gets",
"a",
"request",
"that",
"retrieves",
"an",
"expiring",
"embedded",
"link",
"which",
"can",
"be",
"embedded",
"in",
"a",
"webview",
"for",
"a",
"preview",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L186-L189 |
58,548 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUpdateRequest | public BoxRequestsFile.UpdateFile getUpdateRequest(String id) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.UpdateFile getUpdateRequest(String id) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UpdateFile",
"getUpdateRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"UpdateFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UpdateFile",
"(",
"id",
",",
"getFileInfoUrl",
"(",
"id",
")",
",",
"mSession... | Gets a request that updates a file's information
@param id id of file to update information on
@return request to update a file's information | [
"Gets",
"a",
"request",
"that",
"updates",
"a",
"file",
"s",
"information"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L197-L200 |
58,549 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getCopyRequest | public BoxRequestsFile.CopyFile getCopyRequest(String id, String parentId) {
BoxRequestsFile.CopyFile request = new BoxRequestsFile.CopyFile(id, parentId, getFileCopyUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.CopyFile getCopyRequest(String id, String parentId) {
BoxRequestsFile.CopyFile request = new BoxRequestsFile.CopyFile(id, parentId, getFileCopyUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"CopyFile",
"getCopyRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsFile",
".",
"CopyFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"CopyFile",
"(",
"id",
",",
"parentId",
",",
"getFileCopy... | Gets a request that copies a file
@param id id of the file to copy
@param parentId id of the parent folder to copy the file into
@return request to copy a file | [
"Gets",
"a",
"request",
"that",
"copies",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L209-L212 |
58,550 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getRenameRequest | public BoxRequestsFile.UpdateFile getRenameRequest(String id, String newName) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
request.setName(newName);
return request;
} | java | public BoxRequestsFile.UpdateFile getRenameRequest(String id, String newName) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
request.setName(newName);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UpdateFile",
"getRenameRequest",
"(",
"String",
"id",
",",
"String",
"newName",
")",
"{",
"BoxRequestsFile",
".",
"UpdateFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UpdateFile",
"(",
"id",
",",
"getFileInfoUrl",
"(",
... | Gets a request that renames a file
@param id id of file to rename
@param newName id of file to retrieve info on
@return request to rename a file | [
"Gets",
"a",
"request",
"that",
"renames",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L221-L225 |
58,551 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getMoveRequest | public BoxRequestsFile.UpdateFile getMoveRequest(String id, String parentId) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
request.setParentId(parentId);
return request;
} | java | public BoxRequestsFile.UpdateFile getMoveRequest(String id, String parentId) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
request.setParentId(parentId);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UpdateFile",
"getMoveRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsFile",
".",
"UpdateFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UpdateFile",
"(",
"id",
",",
"getFileInfoUrl",
"(",
... | Gets a request that moves a file to another folder
@param id id of file to move
@param parentId id of parent folder to move file into
@return request to move a file | [
"Gets",
"a",
"request",
"that",
"moves",
"a",
"file",
"to",
"another",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L234-L238 |
58,552 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getCreateSharedLinkRequest | public BoxRequestsFile.UpdatedSharedFile getCreateSharedLinkRequest(String id) {
BoxRequestsFile.UpdatedSharedFile request = new BoxRequestsFile.UpdatedSharedFile(id, getFileInfoUrl(id), mSession)
.setAccess(null);
return request;
} | java | public BoxRequestsFile.UpdatedSharedFile getCreateSharedLinkRequest(String id) {
BoxRequestsFile.UpdatedSharedFile request = new BoxRequestsFile.UpdatedSharedFile(id, getFileInfoUrl(id), mSession)
.setAccess(null);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UpdatedSharedFile",
"getCreateSharedLinkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"UpdatedSharedFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UpdatedSharedFile",
"(",
"id",
",",
"getFileInfoUrl",
"(",
... | Gets a request that creates a shared link for a file
@param id id of file to create shared link for
@return request to create a shared link for a file | [
"Gets",
"a",
"request",
"that",
"creates",
"a",
"shared",
"link",
"for",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L257-L261 |
58,553 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getAddCommentRequest | public BoxRequestsFile.AddCommentToFile getAddCommentRequest(String fileId, String message) {
BoxRequestsFile.AddCommentToFile request = new BoxRequestsFile.AddCommentToFile(fileId, message, getCommentUrl(), mSession);
return request;
} | java | public BoxRequestsFile.AddCommentToFile getAddCommentRequest(String fileId, String message) {
BoxRequestsFile.AddCommentToFile request = new BoxRequestsFile.AddCommentToFile(fileId, message, getCommentUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"AddCommentToFile",
"getAddCommentRequest",
"(",
"String",
"fileId",
",",
"String",
"message",
")",
"{",
"BoxRequestsFile",
".",
"AddCommentToFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"AddCommentToFile",
"(",
"fileId",
","... | Gets a request that adds a comment to a file
@param fileId id of the file to add the comment to
@param message message for the comment that will be added
@return request to add a comment to a file | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"comment",
"to",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L282-L285 |
58,554 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getAddTaggedCommentRequest | public BoxRequestsFile.AddTaggedCommentToFile getAddTaggedCommentRequest(String fileId, String taggedMessage) {
BoxRequestsFile.AddTaggedCommentToFile request = new BoxRequestsFile.AddTaggedCommentToFile(
fileId, taggedMessage, getCommentUrl(), mSession);
return request;
} | java | public BoxRequestsFile.AddTaggedCommentToFile getAddTaggedCommentRequest(String fileId, String taggedMessage) {
BoxRequestsFile.AddTaggedCommentToFile request = new BoxRequestsFile.AddTaggedCommentToFile(
fileId, taggedMessage, getCommentUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"AddTaggedCommentToFile",
"getAddTaggedCommentRequest",
"(",
"String",
"fileId",
",",
"String",
"taggedMessage",
")",
"{",
"BoxRequestsFile",
".",
"AddTaggedCommentToFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"AddTaggedCommentToF... | Gets a request for adding a comment with tags that mention users.
The server will notify mentioned users of the comment.
Tagged users must be collaborators of the parent folder.
Format for adding a tag @[userid:username], E.g. "Hello @[12345:Jane Doe]" will create a comment
'Hello Jane Doe', and notify Jane that she h... | [
"Gets",
"a",
"request",
"for",
"adding",
"a",
"comment",
"with",
"tags",
"that",
"mention",
"users",
".",
"The",
"server",
"will",
"notify",
"mentioned",
"users",
"of",
"the",
"comment",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L299-L303 |
58,555 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadRequest | public BoxRequestsFile.UploadFile getUploadRequest(InputStream fileInputStream, String fileName, String destinationFolderId){
BoxRequestsFile.UploadFile request = new BoxRequestsFile.UploadFile(fileInputStream, fileName, destinationFolderId, getFileUploadUrl(), mSession);
return request;
} | java | public BoxRequestsFile.UploadFile getUploadRequest(InputStream fileInputStream, String fileName, String destinationFolderId){
BoxRequestsFile.UploadFile request = new BoxRequestsFile.UploadFile(fileInputStream, fileName, destinationFolderId, getFileUploadUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UploadFile",
"getUploadRequest",
"(",
"InputStream",
"fileInputStream",
",",
"String",
"fileName",
",",
"String",
"destinationFolderId",
")",
"{",
"BoxRequestsFile",
".",
"UploadFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"... | Gets a request that uploads a file from an input stream
@param fileInputStream input stream of the file
@param fileName name of the new file
@param destinationFolderId id of the parent folder for the new file
@return request to upload a file from an input stream | [
"Gets",
"a",
"request",
"that",
"uploads",
"a",
"file",
"from",
"an",
"input",
"stream"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L313-L316 |
58,556 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadRequest | public BoxRequestsFile.UploadFile getUploadRequest(File file, String destinationFolderId) {
BoxRequestsFile.UploadFile request = new BoxRequestsFile.UploadFile(file, destinationFolderId, getFileUploadUrl(), mSession);
return request;
} | java | public BoxRequestsFile.UploadFile getUploadRequest(File file, String destinationFolderId) {
BoxRequestsFile.UploadFile request = new BoxRequestsFile.UploadFile(file, destinationFolderId, getFileUploadUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UploadFile",
"getUploadRequest",
"(",
"File",
"file",
",",
"String",
"destinationFolderId",
")",
"{",
"BoxRequestsFile",
".",
"UploadFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UploadFile",
"(",
"file",
",",
"destination... | Gets a request that uploads a file from an existing file
@param file file to upload
@param destinationFolderId id of the parent folder for the new file
@return request to upload a file from an existing file | [
"Gets",
"a",
"request",
"that",
"uploads",
"a",
"file",
"from",
"an",
"existing",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L324-L327 |
58,557 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadNewVersionRequest | public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(InputStream fileInputStream, String destinationFileId){
BoxRequestsFile.UploadNewVersion request = new BoxRequestsFile.UploadNewVersion(fileInputStream, getFileUploadNewVersionUrl(destinationFileId), mSession);
return request;
} | java | public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(InputStream fileInputStream, String destinationFileId){
BoxRequestsFile.UploadNewVersion request = new BoxRequestsFile.UploadNewVersion(fileInputStream, getFileUploadNewVersionUrl(destinationFileId), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"UploadNewVersion",
"getUploadNewVersionRequest",
"(",
"InputStream",
"fileInputStream",
",",
"String",
"destinationFileId",
")",
"{",
"BoxRequestsFile",
".",
"UploadNewVersion",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"UploadNewVers... | Gets a request that uploads a new file version from an input stream
@param fileInputStream input stream of the new file version
@param destinationFileId id of the file to upload a new version of
@return request to upload a new file version from an input stream | [
"Gets",
"a",
"request",
"that",
"uploads",
"a",
"new",
"file",
"version",
"from",
"an",
"input",
"stream"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L336-L339 |
58,558 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadNewVersionRequest | public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(File file, String destinationFileId) {
try {
BoxRequestsFile.UploadNewVersion request = getUploadNewVersionRequest(new FileInputStream(file), destinationFileId);
request.setUploadSize(file.length());
request.s... | java | public BoxRequestsFile.UploadNewVersion getUploadNewVersionRequest(File file, String destinationFileId) {
try {
BoxRequestsFile.UploadNewVersion request = getUploadNewVersionRequest(new FileInputStream(file), destinationFileId);
request.setUploadSize(file.length());
request.s... | [
"public",
"BoxRequestsFile",
".",
"UploadNewVersion",
"getUploadNewVersionRequest",
"(",
"File",
"file",
",",
"String",
"destinationFileId",
")",
"{",
"try",
"{",
"BoxRequestsFile",
".",
"UploadNewVersion",
"request",
"=",
"getUploadNewVersionRequest",
"(",
"new",
"File... | Gets a request that uploads a new file version from an existing file
@param file file to upload as a new version
@param destinationFileId id of the file to upload a new version of
@return request to upload a new file version from an existing file | [
"Gets",
"a",
"request",
"that",
"uploads",
"a",
"new",
"file",
"version",
"from",
"an",
"existing",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L348-L357 |
58,559 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadRequest | public BoxRequestsFile.DownloadFile getDownloadRequest(File target, String fileId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(fileId, target, getFileDownloadUr... | java | public BoxRequestsFile.DownloadFile getDownloadRequest(File target, String fileId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(fileId, target, getFileDownloadUr... | [
"public",
"BoxRequestsFile",
".",
"DownloadFile",
"getDownloadRequest",
"(",
"File",
"target",
",",
"String",
"fileId",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"target",
".",
"exists",
"(",
")",
")",
"{",
"throw",
"new",
"FileNotFoundException",
"("... | Gets a request that downloads a given file to a target file
@param target target file to download to, target can be either a directory or a file
@param fileId id of the file to download
@return request to download a file to a target file
@throws IOException throws FileNotFoundException if target file does not e... | [
"Gets",
"a",
"request",
"that",
"downloads",
"a",
"given",
"file",
"to",
"a",
"target",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L367-L373 |
58,560 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadUrlRequest | public BoxRequestsFile.DownloadFile getDownloadUrlRequest(File target, String url) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(target, url,mSession);
return request;
... | java | public BoxRequestsFile.DownloadFile getDownloadUrlRequest(File target, String url) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(target, url,mSession);
return request;
... | [
"public",
"BoxRequestsFile",
".",
"DownloadFile",
"getDownloadUrlRequest",
"(",
"File",
"target",
",",
"String",
"url",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"target",
".",
"exists",
"(",
")",
")",
"{",
"throw",
"new",
"FileNotFoundException",
"("... | Gets a request that downloads a given asset from the url to a target file
This is used to download miscellaneous url assets for instance from the representations endpoint.
@param target target file to download to, target can be either a directory or a file
@param url url of the asset to download
@return request ... | [
"Gets",
"a",
"request",
"that",
"downloads",
"a",
"given",
"asset",
"from",
"the",
"url",
"to",
"a",
"target",
"file",
"This",
"is",
"used",
"to",
"download",
"miscellaneous",
"url",
"assets",
"for",
"instance",
"from",
"the",
"representations",
"endpoint",
... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L383-L389 |
58,561 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadRequest | public BoxRequestsFile.DownloadFile getDownloadRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(fileId, outputStream, getFileDownloadUrl(fileId),mSession);
return request;
} | java | public BoxRequestsFile.DownloadFile getDownloadRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(fileId, outputStream, getFileDownloadUrl(fileId),mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DownloadFile",
"getDownloadRequest",
"(",
"OutputStream",
"outputStream",
",",
"String",
"fileId",
")",
"{",
"BoxRequestsFile",
".",
"DownloadFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DownloadFile",
"(",
"fileId",
",",
... | Gets a request that downloads the given file to the provided outputStream. Developer is responsible for closing the outputStream provided.
@param outputStream outputStream to write file contents to.
@param fileId the file id to download.
@return request to download a file to an output stream | [
"Gets",
"a",
"request",
"that",
"downloads",
"the",
"given",
"file",
"to",
"the",
"provided",
"outputStream",
".",
"Developer",
"is",
"responsible",
"for",
"closing",
"the",
"outputStream",
"provided",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L398-L401 |
58,562 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadThumbnailRequest | public BoxRequestsFile.DownloadThumbnail getDownloadThumbnailRequest(File target, String fileId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
if (target.isDirectory()){
throw new RuntimeException("This endpoint only supports files and do... | java | public BoxRequestsFile.DownloadThumbnail getDownloadThumbnailRequest(File target, String fileId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
if (target.isDirectory()){
throw new RuntimeException("This endpoint only supports files and do... | [
"public",
"BoxRequestsFile",
".",
"DownloadThumbnail",
"getDownloadThumbnailRequest",
"(",
"File",
"target",
",",
"String",
"fileId",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"target",
".",
"exists",
"(",
")",
")",
"{",
"throw",
"new",
"FileNotFoundExc... | Gets a request that downloads a thumbnail to a target file
@param target target file to download to, target can only be a file
@param fileId id of file to download the thumbnail of
@return request to download a thumbnail to a target file
@throws IOException throws FileNotFoundException if target file does not e... | [
"Gets",
"a",
"request",
"that",
"downloads",
"a",
"thumbnail",
"to",
"a",
"target",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L411-L420 |
58,563 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadThumbnailRequest | public BoxRequestsFile.DownloadThumbnail getDownloadThumbnailRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadThumbnail request = new BoxRequestsFile.DownloadThumbnail(fileId, outputStream, getThumbnailFileDownloadUrl(fileId), mSession);
return request;
} | java | public BoxRequestsFile.DownloadThumbnail getDownloadThumbnailRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadThumbnail request = new BoxRequestsFile.DownloadThumbnail(fileId, outputStream, getThumbnailFileDownloadUrl(fileId), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DownloadThumbnail",
"getDownloadThumbnailRequest",
"(",
"OutputStream",
"outputStream",
",",
"String",
"fileId",
")",
"{",
"BoxRequestsFile",
".",
"DownloadThumbnail",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DownloadThumbnail",
"... | Gets a request that downloads the given file thumbnail to the provided outputStream. Developer is responsible for closing the outputStream provided.
@param outputStream outputStream to write file contents to.
@param fileId the file id to download.
@return request to download a file thumbnail | [
"Gets",
"a",
"request",
"that",
"downloads",
"the",
"given",
"file",
"thumbnail",
"to",
"the",
"provided",
"outputStream",
".",
"Developer",
"is",
"responsible",
"for",
"closing",
"the",
"outputStream",
"provided",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L429-L432 |
58,564 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDownloadRepresentationRequest | public BoxRequestsFile.DownloadRepresentation getDownloadRepresentationRequest(String id, File targetFile, BoxRepresentation representation) {
return new BoxRequestsFile.DownloadRepresentation(id, targetFile, representation, mSession);
} | java | public BoxRequestsFile.DownloadRepresentation getDownloadRepresentationRequest(String id, File targetFile, BoxRepresentation representation) {
return new BoxRequestsFile.DownloadRepresentation(id, targetFile, representation, mSession);
} | [
"public",
"BoxRequestsFile",
".",
"DownloadRepresentation",
"getDownloadRepresentationRequest",
"(",
"String",
"id",
",",
"File",
"targetFile",
",",
"BoxRepresentation",
"representation",
")",
"{",
"return",
"new",
"BoxRequestsFile",
".",
"DownloadRepresentation",
"(",
"i... | Gets a request to download a representation object for a given file representation
@param id id of the file to get the representation from
@param targetFile file to store the thumbnail
@param representation the representation to be downloaded
@return request to download the representation | [
"Gets",
"a",
"request",
"to",
"download",
"a",
"representation",
"object",
"for",
"a",
"given",
"file",
"representation"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L442-L444 |
58,565 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getTrashedFileRequest | public BoxRequestsFile.GetTrashedFile getTrashedFileRequest(String id) {
BoxRequestsFile.GetTrashedFile request = new BoxRequestsFile.GetTrashedFile(id, getTrashedFileUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetTrashedFile getTrashedFileRequest(String id) {
BoxRequestsFile.GetTrashedFile request = new BoxRequestsFile.GetTrashedFile(id, getTrashedFileUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetTrashedFile",
"getTrashedFileRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetTrashedFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetTrashedFile",
"(",
"id",
",",
"getTrashedFileUrl",
"(",
"id",
")"... | Gets a request that returns a file in the trash
@param id id of file to get in the trash
@return request to get a file from the trash | [
"Gets",
"a",
"request",
"that",
"returns",
"a",
"file",
"in",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L452-L455 |
58,566 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDeleteTrashedFileRequest | public BoxRequestsFile.DeleteTrashedFile getDeleteTrashedFileRequest(String id) {
BoxRequestsFile.DeleteTrashedFile request = new BoxRequestsFile.DeleteTrashedFile(id, getTrashedFileUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.DeleteTrashedFile getDeleteTrashedFileRequest(String id) {
BoxRequestsFile.DeleteTrashedFile request = new BoxRequestsFile.DeleteTrashedFile(id, getTrashedFileUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DeleteTrashedFile",
"getDeleteTrashedFileRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"DeleteTrashedFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DeleteTrashedFile",
"(",
"id",
",",
"getTrashedFileUrl",
"("... | Gets a request that permanently deletes a file from the trash
@param id id of file to delete from the trash
@return request to permanently delete a file from the trash | [
"Gets",
"a",
"request",
"that",
"permanently",
"deletes",
"a",
"file",
"from",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L463-L466 |
58,567 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getRestoreTrashedFileRequest | public BoxRequestsFile.RestoreTrashedFile getRestoreTrashedFileRequest(String id) {
BoxRequestsFile.RestoreTrashedFile request = new BoxRequestsFile.RestoreTrashedFile(id, getFileInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.RestoreTrashedFile getRestoreTrashedFileRequest(String id) {
BoxRequestsFile.RestoreTrashedFile request = new BoxRequestsFile.RestoreTrashedFile(id, getFileInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"RestoreTrashedFile",
"getRestoreTrashedFileRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"RestoreTrashedFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"RestoreTrashedFile",
"(",
"id",
",",
"getFileInfoUrl",
"(... | Gets a request that restores a trashed file
@param id id of file to restore
@return request to restore a file from the trash | [
"Gets",
"a",
"request",
"that",
"restores",
"a",
"trashed",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L474-L477 |
58,568 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getCommentsRequest | public BoxRequestsFile.GetFileComments getCommentsRequest(String id) {
BoxRequestsFile.GetFileComments request = new BoxRequestsFile.GetFileComments(id, getFileCommentsUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetFileComments getCommentsRequest(String id) {
BoxRequestsFile.GetFileComments request = new BoxRequestsFile.GetFileComments(id, getFileCommentsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetFileComments",
"getCommentsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetFileComments",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetFileComments",
"(",
"id",
",",
"getFileCommentsUrl",
"(",
"id",
")... | Gets a request that retrieves the comments on a file
@param id id of the file to retrieve comments for
@return request to retrieve comments on a file | [
"Gets",
"a",
"request",
"that",
"retrieves",
"the",
"comments",
"on",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L485-L488 |
58,569 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getCollaborationsRequest | public BoxRequestsFile.GetCollaborations getCollaborationsRequest(String id) {
BoxRequestsFile.GetCollaborations request = new BoxRequestsFile.GetCollaborations(id, getFileCollaborationsUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetCollaborations getCollaborationsRequest(String id) {
BoxRequestsFile.GetCollaborations request = new BoxRequestsFile.GetCollaborations(id, getFileCollaborationsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetCollaborations",
"getCollaborationsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetCollaborations",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetCollaborations",
"(",
"id",
",",
"getFileCollaborationsUrl",
... | Gets a request that gets the collaborations of a file
@param id id of file to request collaborations of
@return request to get collaborations | [
"Gets",
"a",
"request",
"that",
"gets",
"the",
"collaborations",
"of",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L496-L499 |
58,570 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getVersionsRequest | public BoxRequestsFile.GetFileVersions getVersionsRequest(String id) {
BoxRequestsFile.GetFileVersions request = new BoxRequestsFile.GetFileVersions(id, getFileVersionsUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.GetFileVersions getVersionsRequest(String id) {
BoxRequestsFile.GetFileVersions request = new BoxRequestsFile.GetFileVersions(id, getFileVersionsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"GetFileVersions",
"getVersionsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"GetFileVersions",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"GetFileVersions",
"(",
"id",
",",
"getFileVersionsUrl",
"(",
"id",
")... | Gets a request that retrieves the versions of a file
@param id id of the file to retrieve file versions for
@return request to retrieve versions of a file | [
"Gets",
"a",
"request",
"that",
"retrieves",
"the",
"versions",
"of",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L507-L510 |
58,571 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDeleteVersionRequest | public BoxRequestsFile.DeleteFileVersion getDeleteVersionRequest(String id, String versionId) {
BoxRequestsFile.DeleteFileVersion request = new BoxRequestsFile.DeleteFileVersion(versionId, getDeleteFileVersionUrl(id, versionId), mSession);
return request;
} | java | public BoxRequestsFile.DeleteFileVersion getDeleteVersionRequest(String id, String versionId) {
BoxRequestsFile.DeleteFileVersion request = new BoxRequestsFile.DeleteFileVersion(versionId, getDeleteFileVersionUrl(id, versionId), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DeleteFileVersion",
"getDeleteVersionRequest",
"(",
"String",
"id",
",",
"String",
"versionId",
")",
"{",
"BoxRequestsFile",
".",
"DeleteFileVersion",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DeleteFileVersion",
"(",
"versionId"... | Gets a request that deletes a version of a file
@param id id of the file to delete a version of
@param versionId id of the file version to delete
@return request to delete a file version | [
"Gets",
"a",
"request",
"that",
"deletes",
"a",
"version",
"of",
"a",
"file"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L533-L536 |
58,572 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getAddToCollectionRequest | public BoxRequestsFile.AddFileToCollection getAddToCollectionRequest(String fileId, String collectionId) {
BoxRequestsFile.AddFileToCollection request = new BoxRequestsFile.AddFileToCollection(fileId, collectionId, getFileInfoUrl(fileId), mSession);
return request;
} | java | public BoxRequestsFile.AddFileToCollection getAddToCollectionRequest(String fileId, String collectionId) {
BoxRequestsFile.AddFileToCollection request = new BoxRequestsFile.AddFileToCollection(fileId, collectionId, getFileInfoUrl(fileId), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"AddFileToCollection",
"getAddToCollectionRequest",
"(",
"String",
"fileId",
",",
"String",
"collectionId",
")",
"{",
"BoxRequestsFile",
".",
"AddFileToCollection",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"AddFileToCollection",
"("... | Gets a request that adds a file to a collection
@param fileId id of file to add to collection
@param collectionId id of collection to add the file to
@return request to add a file to a collection | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"file",
"to",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L545-L548 |
58,573 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getDeleteFromCollectionRequest | public BoxRequestsFile.DeleteFileFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsFile.DeleteFileFromCollection request = new BoxRequestsFile.DeleteFileFromCollection(id, getFileInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFile.DeleteFileFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsFile.DeleteFileFromCollection request = new BoxRequestsFile.DeleteFileFromCollection(id, getFileInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DeleteFileFromCollection",
"getDeleteFromCollectionRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFile",
".",
"DeleteFileFromCollection",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DeleteFileFromCollection",
"(",
"id",
",",
"g... | Gets a request that removes a file from a collection
@param id id of file to delete from the collection
@return request to delete a file from a collection | [
"Gets",
"a",
"request",
"that",
"removes",
"a",
"file",
"from",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L556-L559 |
58,574 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getFilePreviewedRequest | public BoxRequestsFile.FilePreviewed getFilePreviewedRequest(String fileId) {
return new BoxRequestsFile.FilePreviewed(fileId, getPreviewFileUrl(), mSession);
} | java | public BoxRequestsFile.FilePreviewed getFilePreviewedRequest(String fileId) {
return new BoxRequestsFile.FilePreviewed(fileId, getPreviewFileUrl(), mSession);
} | [
"public",
"BoxRequestsFile",
".",
"FilePreviewed",
"getFilePreviewedRequest",
"(",
"String",
"fileId",
")",
"{",
"return",
"new",
"BoxRequestsFile",
".",
"FilePreviewed",
"(",
"fileId",
",",
"getPreviewFileUrl",
"(",
")",
",",
"mSession",
")",
";",
"}"
] | Gets a request that inform the server that a file was previewed.
This makes the file to be included on the recents list.
@param fileId
@return request to inform the server that a file was previewed | [
"Gets",
"a",
"request",
"that",
"inform",
"the",
"server",
"that",
"a",
"file",
"was",
"previewed",
".",
"This",
"makes",
"the",
"file",
"to",
"be",
"included",
"on",
"the",
"recents",
"list",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L568-L570 |
58,575 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java | BoxApiFile.getUploadSession | public BoxRequestsFile.GetUploadSession getUploadSession(String uploadSessionId) {
return new BoxRequestsFile.GetUploadSession(uploadSessionId, getUploadSessionInfoUrl(uploadSessionId), mSession);
} | java | public BoxRequestsFile.GetUploadSession getUploadSession(String uploadSessionId) {
return new BoxRequestsFile.GetUploadSession(uploadSessionId, getUploadSessionInfoUrl(uploadSessionId), mSession);
} | [
"public",
"BoxRequestsFile",
".",
"GetUploadSession",
"getUploadSession",
"(",
"String",
"uploadSessionId",
")",
"{",
"return",
"new",
"BoxRequestsFile",
".",
"GetUploadSession",
"(",
"uploadSessionId",
",",
"getUploadSessionInfoUrl",
"(",
"uploadSessionId",
")",
",",
"... | Gets a request to fetch the upload session using the upload session id. It contains the number of parts that are processed so far,
the total number of parts required for the commit and expiration date and time of the upload session.
@return the status. | [
"Gets",
"a",
"request",
"to",
"fetch",
"the",
"upload",
"session",
"using",
"the",
"upload",
"session",
"id",
".",
"It",
"contains",
"the",
"number",
"of",
"parts",
"that",
"are",
"processed",
"so",
"far",
"the",
"total",
"number",
"of",
"parts",
"required... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFile.java#L688-L690 |
58,576 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java | BoxRequestEvent.setLimit | public R setLimit(final int limit){
mQueryMap.put(FIELD_LIMIT, Integer.toString(limit));
return (R)this;
} | java | public R setLimit(final int limit){
mQueryMap.put(FIELD_LIMIT, Integer.toString(limit));
return (R)this;
} | [
"public",
"R",
"setLimit",
"(",
"final",
"int",
"limit",
")",
"{",
"mQueryMap",
".",
"put",
"(",
"FIELD_LIMIT",
",",
"Integer",
".",
"toString",
"(",
"limit",
")",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the maximum number of events to return in the list of events.
@param limit max number of events to request.
@return the get events request | [
"Sets",
"the",
"maximum",
"number",
"of",
"events",
"to",
"return",
"in",
"the",
"list",
"of",
"events",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java#L102-L105 |
58,577 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java | BoxRequestEvent.setPreviousListEvents | public R setPreviousListEvents(E listEvents){
mListEvents = listEvents;
this.setStreamPosition(((IStreamPosition)mListEvents).getNextStreamPosition().toString());
return (R)this;
} | java | public R setPreviousListEvents(E listEvents){
mListEvents = listEvents;
this.setStreamPosition(((IStreamPosition)mListEvents).getNextStreamPosition().toString());
return (R)this;
} | [
"public",
"R",
"setPreviousListEvents",
"(",
"E",
"listEvents",
")",
"{",
"mListEvents",
"=",
"listEvents",
";",
"this",
".",
"setStreamPosition",
"(",
"(",
"(",
"IStreamPosition",
")",
"mListEvents",
")",
".",
"getNextStreamPosition",
"(",
")",
".",
"toString",... | Convenience method. When set the request will be set to the next stream position from the given event and will will aggregate the new results with the provided list.
@param listEvents A list of events to add to.
@return A BoxRequestEvent object. | [
"Convenience",
"method",
".",
"When",
"set",
"the",
"request",
"will",
"be",
"set",
"to",
"the",
"next",
"stream",
"position",
"from",
"the",
"given",
"event",
"and",
"will",
"will",
"aggregate",
"the",
"new",
"results",
"with",
"the",
"provided",
"list",
... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java#L112-L116 |
58,578 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java | BoxRequestEvent.writeObject | private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
// Write out capacity and any hidden stuff
s.defaultWriteObject();
} | java | private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
// Write out capacity and any hidden stuff
s.defaultWriteObject();
} | [
"private",
"void",
"writeObject",
"(",
"java",
".",
"io",
".",
"ObjectOutputStream",
"s",
")",
"throws",
"java",
".",
"io",
".",
"IOException",
"{",
"// Write out capacity and any hidden stuff",
"s",
".",
"defaultWriteObject",
"(",
")",
";",
"}"
] | Serialize object.
@serialData The capacity (int), followed by elements (each an {@code Object}) in the proper order, followed by a null
@param s
the stream | [
"Serialize",
"object",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestEvent.java#L135-L138 |
58,579 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxFolder.java | BoxFolder.createFromIdAndName | public static BoxFolder createFromIdAndName(String folderId, String name) {
JsonObject object = new JsonObject();
object.add(BoxItem.FIELD_ID, folderId);
object.add(BoxItem.FIELD_TYPE, BoxFolder.TYPE);
if (!TextUtils.isEmpty(name)) {
object.add(BoxItem.FIELD_NAME, name);
... | java | public static BoxFolder createFromIdAndName(String folderId, String name) {
JsonObject object = new JsonObject();
object.add(BoxItem.FIELD_ID, folderId);
object.add(BoxItem.FIELD_TYPE, BoxFolder.TYPE);
if (!TextUtils.isEmpty(name)) {
object.add(BoxItem.FIELD_NAME, name);
... | [
"public",
"static",
"BoxFolder",
"createFromIdAndName",
"(",
"String",
"folderId",
",",
"String",
"name",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"object",
".",
"add",
"(",
"BoxItem",
".",
"FIELD_ID",
",",
"folderId",
")",
... | A convenience method to create an empty folder with just the id and type fields set. This allows
the ability to interact with the content sdk in a more descriptive and type safe manner
@param folderId the id of folder to create
@param name the name of the folder to create
@return an empty BoxFolder object that only co... | [
"A",
"convenience",
"method",
"to",
"create",
"an",
"empty",
"folder",
"with",
"just",
"the",
"id",
"and",
"type",
"fields",
"set",
".",
"This",
"allows",
"the",
"ability",
"to",
"interact",
"with",
"the",
"content",
"sdk",
"in",
"a",
"more",
"descriptive"... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxFolder.java#L107-L115 |
58,580 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxBookmark.java | BoxBookmark.createFromId | public static BoxBookmark createFromId(String bookmarkId) {
JsonObject object = new JsonObject();
object.add(FIELD_ID, bookmarkId);
object.add(FIELD_TYPE, TYPE);
return new BoxBookmark(object);
} | java | public static BoxBookmark createFromId(String bookmarkId) {
JsonObject object = new JsonObject();
object.add(FIELD_ID, bookmarkId);
object.add(FIELD_TYPE, TYPE);
return new BoxBookmark(object);
} | [
"public",
"static",
"BoxBookmark",
"createFromId",
"(",
"String",
"bookmarkId",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"object",
".",
"add",
"(",
"FIELD_ID",
",",
"bookmarkId",
")",
";",
"object",
".",
"add",
"(",
"FIELD... | A convenience method to create an empty bookmark with just the id and type fields set. This allows
the ability to interact with the content sdk in a more descriptive and type safe manner
@param bookmarkId the id of folder to create
@return an empty BoxBookmark object that only contains id and type information | [
"A",
"convenience",
"method",
"to",
"create",
"an",
"empty",
"bookmark",
"with",
"just",
"the",
"id",
"and",
"type",
"fields",
"set",
".",
"This",
"allows",
"the",
"ability",
"to",
"interact",
"with",
"the",
"content",
"sdk",
"in",
"a",
"more",
"descriptiv... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxBookmark.java#L63-L68 |
58,581 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpRequest.java | BoxHttpRequest.addHeader | public BoxHttpRequest addHeader(String key, String value) {
mUrlConnection.addRequestProperty(key, value);
return this;
} | java | public BoxHttpRequest addHeader(String key, String value) {
mUrlConnection.addRequestProperty(key, value);
return this;
} | [
"public",
"BoxHttpRequest",
"addHeader",
"(",
"String",
"key",
",",
"String",
"value",
")",
"{",
"mUrlConnection",
".",
"addRequestProperty",
"(",
"key",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] | Adds an HTTP header to the request.
@param key the header key.
@param value the header value.
@return request with the updated header. | [
"Adds",
"an",
"HTTP",
"header",
"to",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpRequest.java#L49-L52 |
58,582 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpRequest.java | BoxHttpRequest.setBody | public BoxHttpRequest setBody(InputStream body) throws IOException {
mUrlConnection.setDoOutput(true);
OutputStream output = mUrlConnection.getOutputStream();
int b = body.read();
while (b != -1) {
output.write(b);
b = body.read();
}
output.close()... | java | public BoxHttpRequest setBody(InputStream body) throws IOException {
mUrlConnection.setDoOutput(true);
OutputStream output = mUrlConnection.getOutputStream();
int b = body.read();
while (b != -1) {
output.write(b);
b = body.read();
}
output.close()... | [
"public",
"BoxHttpRequest",
"setBody",
"(",
"InputStream",
"body",
")",
"throws",
"IOException",
"{",
"mUrlConnection",
".",
"setDoOutput",
"(",
"true",
")",
";",
"OutputStream",
"output",
"=",
"mUrlConnection",
".",
"getOutputStream",
"(",
")",
";",
"int",
"b",... | Sets the body for the HTTP request to the contents of an InputStream.
@param body InputStream to use for the contents of the body.
@return request with the updated body input stream.
@throws IOException | [
"Sets",
"the",
"body",
"for",
"the",
"HTTP",
"request",
"to",
"the",
"contents",
"of",
"an",
"InputStream",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxHttpRequest.java#L61-L71 |
58,583 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getCurrentUserInfoRequest | public BoxRequestsUser.GetUserInfo getCurrentUserInfoRequest() {
BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl("me"), mSession);
return request;
} | java | public BoxRequestsUser.GetUserInfo getCurrentUserInfoRequest() {
BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl("me"), mSession);
return request;
} | [
"public",
"BoxRequestsUser",
".",
"GetUserInfo",
"getCurrentUserInfoRequest",
"(",
")",
"{",
"BoxRequestsUser",
".",
"GetUserInfo",
"request",
"=",
"new",
"BoxRequestsUser",
".",
"GetUserInfo",
"(",
"getUserInformationUrl",
"(",
"\"me\"",
")",
",",
"mSession",
")",
... | Gets a request that gets information about the current user
@return request to get information about the current user | [
"Gets",
"a",
"request",
"that",
"gets",
"information",
"about",
"the",
"current",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L57-L60 |
58,584 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getUserInfoRequest | public BoxRequestsUser.GetUserInfo getUserInfoRequest(String id) {
BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl(id), mSession);
return request;
} | java | public BoxRequestsUser.GetUserInfo getUserInfoRequest(String id) {
BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsUser",
".",
"GetUserInfo",
"getUserInfoRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsUser",
".",
"GetUserInfo",
"request",
"=",
"new",
"BoxRequestsUser",
".",
"GetUserInfo",
"(",
"getUserInformationUrl",
"(",
"id",
")",
",",
"mSession",
... | Gets a request that gets information about a user
@param id id of the user to get information on
@return request to get information about a user | [
"Gets",
"a",
"request",
"that",
"gets",
"information",
"about",
"a",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L68-L71 |
58,585 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getEnterpriseUsersRequest | public BoxRequestsUser.GetEnterpriseUsers getEnterpriseUsersRequest() {
BoxRequestsUser.GetEnterpriseUsers request = new BoxRequestsUser.GetEnterpriseUsers(getUsersUrl(), mSession);
return request;
} | java | public BoxRequestsUser.GetEnterpriseUsers getEnterpriseUsersRequest() {
BoxRequestsUser.GetEnterpriseUsers request = new BoxRequestsUser.GetEnterpriseUsers(getUsersUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsUser",
".",
"GetEnterpriseUsers",
"getEnterpriseUsersRequest",
"(",
")",
"{",
"BoxRequestsUser",
".",
"GetEnterpriseUsers",
"request",
"=",
"new",
"BoxRequestsUser",
".",
"GetEnterpriseUsers",
"(",
"getUsersUrl",
"(",
")",
",",
"mSession",
")",
"... | Gets a request that gets all the users of an enterprise
The session provided must be associated with an enterprise admin user
@return request to get all users of an enterprise | [
"Gets",
"a",
"request",
"that",
"gets",
"all",
"the",
"users",
"of",
"an",
"enterprise",
"The",
"session",
"provided",
"must",
"be",
"associated",
"with",
"an",
"enterprise",
"admin",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L79-L82 |
58,586 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getCreateEnterpriseUserRequest | public BoxRequestsUser.CreateEnterpriseUser getCreateEnterpriseUserRequest(String login, String name) {
BoxRequestsUser.CreateEnterpriseUser request = new BoxRequestsUser.CreateEnterpriseUser(getUsersUrl(), mSession, login, name);
return request;
} | java | public BoxRequestsUser.CreateEnterpriseUser getCreateEnterpriseUserRequest(String login, String name) {
BoxRequestsUser.CreateEnterpriseUser request = new BoxRequestsUser.CreateEnterpriseUser(getUsersUrl(), mSession, login, name);
return request;
} | [
"public",
"BoxRequestsUser",
".",
"CreateEnterpriseUser",
"getCreateEnterpriseUserRequest",
"(",
"String",
"login",
",",
"String",
"name",
")",
"{",
"BoxRequestsUser",
".",
"CreateEnterpriseUser",
"request",
"=",
"new",
"BoxRequestsUser",
".",
"CreateEnterpriseUser",
"(",... | Gets a request that creates an enterprise user
The session provided must be associated with an enterprise admin user
@param login the login (email) of the user to create
@param name name of the user to create
@return request to create an enterprise user | [
"Gets",
"a",
"request",
"that",
"creates",
"an",
"enterprise",
"user",
"The",
"session",
"provided",
"must",
"be",
"associated",
"with",
"an",
"enterprise",
"admin",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L92-L95 |
58,587 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getDeleteEnterpriseUserRequest | public BoxRequestsUser.DeleteEnterpriseUser getDeleteEnterpriseUserRequest(String userId) {
BoxRequestsUser.DeleteEnterpriseUser request = new BoxRequestsUser.DeleteEnterpriseUser(getUserInformationUrl(userId), mSession, userId);
return request;
} | java | public BoxRequestsUser.DeleteEnterpriseUser getDeleteEnterpriseUserRequest(String userId) {
BoxRequestsUser.DeleteEnterpriseUser request = new BoxRequestsUser.DeleteEnterpriseUser(getUserInformationUrl(userId), mSession, userId);
return request;
} | [
"public",
"BoxRequestsUser",
".",
"DeleteEnterpriseUser",
"getDeleteEnterpriseUserRequest",
"(",
"String",
"userId",
")",
"{",
"BoxRequestsUser",
".",
"DeleteEnterpriseUser",
"request",
"=",
"new",
"BoxRequestsUser",
".",
"DeleteEnterpriseUser",
"(",
"getUserInformationUrl",
... | Gets a request that deletes an enterprise user
The session provided must be associated with an enterprise admin user
@param userId id of the user
@return request to delete an enterprise user | [
"Gets",
"a",
"request",
"that",
"deletes",
"an",
"enterprise",
"user",
"The",
"session",
"provided",
"must",
"be",
"associated",
"with",
"an",
"enterprise",
"admin",
"user"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L104-L107 |
58,588 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getDownloadAvatarRequest | public BoxRequestsFile.DownloadAvatar getDownloadAvatarRequest(File target, String userId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadAvatar request = new BoxRequestsFile.DownloadAvatar(userId, target, getAvatarDownloadUrl(... | java | public BoxRequestsFile.DownloadAvatar getDownloadAvatarRequest(File target, String userId) throws IOException{
if (!target.exists()){
throw new FileNotFoundException();
}
BoxRequestsFile.DownloadAvatar request = new BoxRequestsFile.DownloadAvatar(userId, target, getAvatarDownloadUrl(... | [
"public",
"BoxRequestsFile",
".",
"DownloadAvatar",
"getDownloadAvatarRequest",
"(",
"File",
"target",
",",
"String",
"userId",
")",
"throws",
"IOException",
"{",
"if",
"(",
"!",
"target",
".",
"exists",
"(",
")",
")",
"{",
"throw",
"new",
"FileNotFoundException... | Gets a request that downloads an avatar of the target user id.
@param target target file to download to, target can be either a directory or a file
@param userId id of user to download avatar of
@return request to download a thumbnail to a target file
@throws IOException throws FileNotFoundException if target f... | [
"Gets",
"a",
"request",
"that",
"downloads",
"an",
"avatar",
"of",
"the",
"target",
"user",
"id",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L117-L124 |
58,589 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java | BoxApiUser.getDownloadAvatarRequest | public BoxRequestsFile.DownloadFile getDownloadAvatarRequest(OutputStream outputStream, String userId) {
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(userId, outputStream, getAvatarDownloadUrl(userId), mSession);
return request;
} | java | public BoxRequestsFile.DownloadFile getDownloadAvatarRequest(OutputStream outputStream, String userId) {
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(userId, outputStream, getAvatarDownloadUrl(userId), mSession);
return request;
} | [
"public",
"BoxRequestsFile",
".",
"DownloadFile",
"getDownloadAvatarRequest",
"(",
"OutputStream",
"outputStream",
",",
"String",
"userId",
")",
"{",
"BoxRequestsFile",
".",
"DownloadFile",
"request",
"=",
"new",
"BoxRequestsFile",
".",
"DownloadFile",
"(",
"userId",
... | Gets a request that downloads the given avatar to the provided outputStream. Developer is responsible for closing the outputStream provided.
@param outputStream outputStream to write file contents to.
@param userId the file id to download.
@return request to download a file thumbnail | [
"Gets",
"a",
"request",
"that",
"downloads",
"the",
"given",
"avatar",
"to",
"the",
"provided",
"outputStream",
".",
"Developer",
"is",
"responsible",
"for",
"closing",
"the",
"outputStream",
"provided",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiUser.java#L133-L136 |
58,590 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setName | public R setName(String name) {
mBodyMap.put(BoxUser.FIELD_NAME, name);
return (R) this;
} | java | public R setName(String name) {
mBodyMap.put(BoxUser.FIELD_NAME, name);
return (R) this;
} | [
"public",
"R",
"setName",
"(",
"String",
"name",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_NAME",
",",
"name",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the new name for the user in the request.
@param name new name for the user.
@return request with the updated name. | [
"Sets",
"the",
"new",
"name",
"for",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L33-L36 |
58,591 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setRole | public R setRole(BoxUser.Role role) {
mBodyMap.put(BoxUser.FIELD_ROLE, role);
return (R) this;
} | java | public R setRole(BoxUser.Role role) {
mBodyMap.put(BoxUser.FIELD_ROLE, role);
return (R) this;
} | [
"public",
"R",
"setRole",
"(",
"BoxUser",
".",
"Role",
"role",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_ROLE",
",",
"role",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the new role for the user.
@param role new role for the user.
@return request with the updated role. | [
"Sets",
"the",
"new",
"role",
"for",
"the",
"user",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L53-L56 |
58,592 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setJobTitle | public R setJobTitle(String jobTitle) {
mBodyMap.put(BoxUser.FIELD_JOB_TITLE, jobTitle);
return (R) this;
} | java | public R setJobTitle(String jobTitle) {
mBodyMap.put(BoxUser.FIELD_JOB_TITLE, jobTitle);
return (R) this;
} | [
"public",
"R",
"setJobTitle",
"(",
"String",
"jobTitle",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_JOB_TITLE",
",",
"jobTitle",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the job title for the user in the request.
@param jobTitle new job title for the user.
@return request with the updated job title. | [
"Sets",
"the",
"job",
"title",
"for",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L93-L96 |
58,593 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setPhone | public R setPhone(String phone) {
mBodyMap.put(BoxUser.FIELD_PHONE, phone);
return (R) this;
} | java | public R setPhone(String phone) {
mBodyMap.put(BoxUser.FIELD_PHONE, phone);
return (R) this;
} | [
"public",
"R",
"setPhone",
"(",
"String",
"phone",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_PHONE",
",",
"phone",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the phone number of the user in the request.
@param phone new phone number for the user.
@return request with the updated phone number. | [
"Sets",
"the",
"phone",
"number",
"of",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L113-L116 |
58,594 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setAddress | public R setAddress(String address) {
mBodyMap.put(BoxUser.FIELD_ADDRESS, address);
return (R) this;
} | java | public R setAddress(String address) {
mBodyMap.put(BoxUser.FIELD_ADDRESS, address);
return (R) this;
} | [
"public",
"R",
"setAddress",
"(",
"String",
"address",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_ADDRESS",
",",
"address",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the address of the user in the request.
@param address new address for the user.
@return request with the updated address. | [
"Sets",
"the",
"address",
"of",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L133-L136 |
58,595 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setStatus | public R setStatus(BoxUser.Status status) {
mBodyMap.put(BoxUser.FIELD_STATUS, status);
return (R) this;
} | java | public R setStatus(BoxUser.Status status) {
mBodyMap.put(BoxUser.FIELD_STATUS, status);
return (R) this;
} | [
"public",
"R",
"setStatus",
"(",
"BoxUser",
".",
"Status",
"status",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_STATUS",
",",
"status",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the status for the user in the request.
@param status new {@link com.box.androidsdk.content.models.BoxUser.Status} for the user.
@return request with the updated status for the user. | [
"Sets",
"the",
"status",
"for",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L193-L196 |
58,596 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java | BoxRequestUserUpdate.setTimezone | public R setTimezone(String timezone) {
mBodyMap.put(BoxUser.FIELD_TIMEZONE, timezone);
return (R) this;
} | java | public R setTimezone(String timezone) {
mBodyMap.put(BoxUser.FIELD_TIMEZONE, timezone);
return (R) this;
} | [
"public",
"R",
"setTimezone",
"(",
"String",
"timezone",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxUser",
".",
"FIELD_TIMEZONE",
",",
"timezone",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the timezone for the user in the request.
@param timezone new timezone for the user.
@return request with the updated timezone. | [
"Sets",
"the",
"timezone",
"for",
"the",
"user",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUserUpdate.java#L213-L216 |
58,597 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiRecentItems.java | BoxApiRecentItems.getRecentItemsRequest | public BoxRequestRecentItems.GetRecentItems getRecentItemsRequest() {
BoxRequestRecentItems.GetRecentItems request = new BoxRequestRecentItems.GetRecentItems(getRecentItemsUrl(), mSession);
return request;
} | java | public BoxRequestRecentItems.GetRecentItems getRecentItemsRequest() {
BoxRequestRecentItems.GetRecentItems request = new BoxRequestRecentItems.GetRecentItems(getRecentItemsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestRecentItems",
".",
"GetRecentItems",
"getRecentItemsRequest",
"(",
")",
"{",
"BoxRequestRecentItems",
".",
"GetRecentItems",
"request",
"=",
"new",
"BoxRequestRecentItems",
".",
"GetRecentItems",
"(",
"getRecentItemsUrl",
"(",
")",
",",
"mSession",
... | Gets a request that gets users recent items
@return request to get users recent items | [
"Gets",
"a",
"request",
"that",
"gets",
"users",
"recent",
"items"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiRecentItems.java#L35-L38 |
58,598 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxExpiringEmbedLinkFile.java | BoxExpiringEmbedLinkFile.isEmbedLinkUrlExpired | public boolean isEmbedLinkUrlExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true;
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 1000);
} | java | public boolean isEmbedLinkUrlExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true;
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 1000);
} | [
"public",
"boolean",
"isEmbedLinkUrlExpired",
"(",
")",
"{",
"Long",
"urlCreationTime",
"=",
"getUrlCreationTime",
"(",
")",
";",
"if",
"(",
"urlCreationTime",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"return",
"(",
"System",
".",
"currentTimeMillis... | Convenience method to check if 60 seconds has passed since the time this link was created.
@return false if creation time is less than 60 seconds, true otherwise. | [
"Convenience",
"method",
"to",
"check",
"if",
"60",
"seconds",
"has",
"passed",
"since",
"the",
"time",
"this",
"link",
"was",
"created",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxExpiringEmbedLinkFile.java#L69-L75 |
58,599 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxExpiringEmbedLinkFile.java | BoxExpiringEmbedLinkFile.isPreviewSessionExpired | public boolean isPreviewSessionExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true;
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 60 * 1000);
} | java | public boolean isPreviewSessionExpired(){
Long urlCreationTime = getUrlCreationTime();
if (urlCreationTime == null){
return true;
}
return (System.currentTimeMillis() - urlCreationTime) < (60 * 60 * 1000);
} | [
"public",
"boolean",
"isPreviewSessionExpired",
"(",
")",
"{",
"Long",
"urlCreationTime",
"=",
"getUrlCreationTime",
"(",
")",
";",
"if",
"(",
"urlCreationTime",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"return",
"(",
"System",
".",
"currentTimeMill... | Convenience method to check if 60 minutes has passed since the time this link was created.
@return false if creation time is less than 60 minutes, true otherwise. | [
"Convenience",
"method",
"to",
"check",
"if",
"60",
"minutes",
"has",
"passed",
"since",
"the",
"time",
"this",
"link",
"was",
"created",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxExpiringEmbedLinkFile.java#L81-L87 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.