code stringlengths 73 34.1k | label stringclasses 1
value |
|---|---|
public void setExplodedAppDirectory(File explodedAppDirectory) {
this.explodedAppDirectory = explodedAppDirectory;
into(explodedAppDirectory);
preserve(
patternFilterable ->
patternFilterable.include("WEB-INF/appengine-generated/datastore-indexes-auto.xml"));
} | java |
@Optional
@InputFiles
public FileCollection getExtraFilesDirectoriesAsInputFiles() {
if (extraFilesDirectories == null) {
return null;
}
FileCollection files = project.files();
for (File directory : extraFilesDirectories) {
files = files.plus(project.fileTree(directory));
}
retur... | java |
public void configureCoreProperties(
Project project,
AppEngineCoreExtensionProperties appEngineCoreExtensionProperties,
String taskGroup,
boolean requiresAppEngineJava) {
project
.getLogger()
.warn(
"WARNING: You are a using release candidate "
+ ... | java |
public boolean isVm() {
try {
XPath xpath = XPathFactory.newInstance().newXPath();
String expression = "/appengine-web-app/vm/text()='true'";
return (Boolean) xpath.evaluate(expression, document, XPathConstants.BOOLEAN);
} catch (XPathExpressionException e) {
throw new GradleException("X... | java |
public ManagedCloudSdk newManagedSdk()
throws UnsupportedOsException, BadCloudSdkVersionException {
if (Strings.isNullOrEmpty(version)) {
return ManagedCloudSdk.newManagedSdk();
} else {
return ManagedCloudSdk.newManagedSdk(new Version(version));
}
} | java |
@SuppressWarnings("unchecked")
public <T> T get(String... path) {
ExtensionAware root = searchRoot;
for (String name : path) {
ExtensionContainer children = root.getExtensions();
root = (ExtensionAware) children.getByName(name);
}
return (T) root; // this is potentially unchecked.
} | java |
private void configureArchiveTask(AbstractArchiveTask archiveTask) {
if (archiveTask == null) {
return;
}
archiveTask.dependsOn("_createSourceContext");
archiveTask.from(extension.getOutputDirectory(), copySpec -> copySpec.into("WEB-INF/classes"));
} | java |
private void writeMetrics() throws IOException {
if (metrics.size() > 0) {
try {
byte[] payload = pickleMetrics(metrics);
byte[] header = ByteBuffer.allocate(4).putInt(payload.length).array();
OutputStream outputStream = socket.getOutputStream();
... | java |
@Override
public SystemState restore(long fromVersion, TxRepository repository) {
workflowContext.repository(repository);
final long snapshotTransactionId = repository.getO(SystemInfo.class, 0L).orElse(new SystemInfo(0L)).lastTransactionId;
final long[] transactionId = {snapshotTransactionId... | java |
public static void printStackTrace(SQLException e, PrintWriter pw) {
SQLException next = e;
while (next != null) {
next.printStackTrace(pw);
next = next.getNextException();
if (next != null) {
pw.println("Next SQLException:");
}
}
... | java |
public static void printWarnings(Connection conn, PrintWriter pw) {
if (conn != null) {
try {
printStackTrace(conn.getWarnings(), pw);
} catch (SQLException e) {
printStackTrace(e, pw);
}
}
} | java |
public XComponentContext connect(String host, int port) throws BootstrapException {
String unoConnectString = "uno:socket,host=" + host + ",port=" + port + ";urp;StarOffice.ComponentContext";
return connect(unoConnectString);
} | java |
public void addDependency(Area main, Area dependent) {
List<Area> set = areasDependency.get(main);
if (set == null) {
set = new ArrayList<Area>();
areasDependency.put(main, set);
}
set.add(dependent);
} | java |
public synchronized void kill() {
if (oooProcess != null) {
log.info("OOServer is killing office instance with port {}", port);
List<Long> pids = processManager.findPid(host, port);
processManager.kill(oooProcess, pids);
oooProcess = null;
}
} | java |
public XComponentContext connect(String oooConnectionString) throws BootstrapException {
this.oooConnectionString = oooConnectionString;
XComponentContext xContext = null;
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
oooSe... | java |
public void disconnect() {
if (oooConnectionString == null)
return;
// call office to terminate itself
try {
// get local context
XComponentContext xLocalContext = getLocalContext();
// create a URL resolver
XUnoUrlResolver xUrlResol... | java |
protected XComponentContext getLocalContext() throws BootstrapException, Exception {
XComponentContext xLocalContext = Bootstrap.createInitialComponentContext(null);
if (xLocalContext == null) {
throw new BootstrapException("no local component context!");
}
return xLocalCont... | java |
protected XComponentContext getRemoteContext(XUnoUrlResolver xUrlResolver) throws BootstrapException, ConnectionSetupException, IllegalArgumentException, NoConnectException {
Object context = xUrlResolver.resolve(oooConnectionString);
XComponentContext xContext = (XComponentContext) UnoRuntime.queryInt... | java |
@Override
public boolean next() throws JRException {
List<BandData> children = currentBand.getChildrenList();
if (children != null && !children.isEmpty() && !visitedBands.containsKey(currentBand)) {
currentIterator = children.iterator();
visitedBands.put(currentBand, current... | java |
public JRBandDataDataSource subDataSource(String bandName) {
if (containsVisitedBand(bandName))
return null;
BandData newParentBand = createNewBand(bandName);
currentBand = root;
currentIterator = root.getChildrenList().iterator();
visitedBands.put(root, currentIter... | java |
public <T> T query(Connection conn, String sql, Object param,
ResultSetHandler<T> rsh) throws SQLException {
return this.query(conn, sql, new Object[] { param }, rsh);
} | java |
public <T> T query(Connection conn, String sql, Object[] params,
ResultSetHandler<T> rsh) throws SQLException {
PreparedStatement stmt = null;
ResultSet rs = null;
T result = null;
try {
stmt = this.prepareStatement(conn, sql);
this.fillStatement(stm... | java |
public int update(Connection conn, String sql) throws SQLException {
return this.update(conn, sql, (Object[]) null);
} | java |
public int update(Connection conn, String sql, Object param)
throws SQLException {
return this.update(conn, sql, new Object[] { param });
} | java |
public int update(Connection conn, String sql, Object[] params, int[] paramTypes)
throws SQLException {
if ((paramTypes != null) && params.length != paramTypes.length) {
throw new IllegalArgumentException("Sizes of params and paramTypes must be equal!");
}
PreparedStatement... | java |
protected void copyMergeRegions(HSSFSheet resultSheet, String rangeName,
int firstTargetRangeRow, int firstTargetRangeColumn) {
int rangeNameIdx = templateWorkbook.getNameIndex(rangeName);
if (rangeNameIdx == -1) return;
HSSFName aNamedRange = templateWorkboo... | java |
private HSSFCell copyCellFromTemplate(HSSFCell templateCell, HSSFRow resultRow, int resultColumn, BandData band) {
checkThreadInterrupted();
if (templateCell == null) return null;
HSSFCell resultCell = resultRow.createCell(resultColumn);
HSSFCellStyle templateStyle = templateCell.getCe... | java |
protected void updateValueCell(BandData rootBand, BandData bandData, String templateCellValue, HSSFCell resultCell, HSSFPatriarch patriarch) {
String parameterName = templateCellValue;
parameterName = unwrapParameterName(parameterName);
String fullParameterName = bandData.getName() + "." + param... | java |
protected void addRangeBounds(BandData band, CellReference[] crefs) {
if (templateBounds.containsKey(band.getName()))
return;
Bounds bounds = new Bounds(crefs[0].getRow(), crefs[0].getCol(), crefs[crefs.length - 1].getRow(), crefs[crefs.length - 1].getCol());
templateBounds.put(band.... | java |
protected EscherAggregate getEscherAggregate(HSSFSheet sheet) {
EscherAggregate agg = sheetToEscherAggregate.get(sheet.getSheetName());
if (agg == null) {
agg = sheet.getDrawingEscherAggregate();
sheetToEscherAggregate.put(sheet.getSheetName(), agg);
}
return agg;... | java |
protected void copyPicturesFromTemplateToResult(HSSFSheet templateSheet, HSSFSheet resultSheet) {
List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet));
int i = 0;
if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without picture... | java |
protected void updateFormulas() {
CTCalcChain calculationChain = getCalculationChain();
int formulaCount = processInnerFormulas(calculationChain);
processOuterFormulas(formulaCount, calculationChain);
} | java |
protected void createFakeTemplateCellsForEmptyOnes(Range oneRowRange,
Map<CellReference, Cell> cellsForOneRowRange,
List<Cell> templateCells) {
if (oneRowRange.toCellReferences().size() != templateCells... | 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... | 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;
} | java |
public RunParams param(String key, Object value) {
params.put(key, value);
return this;
} | java |
public BoxRequestsCollections.GetCollections getCollectionsRequest() {
BoxRequestsCollections.GetCollections request = new BoxRequestsCollections.GetCollections(getCollectionsUrl(), mSession);
return request;
} | java |
public BoxRequestsCollections.GetCollectionItems getItemsRequest(String id) {
BoxRequestsCollections.GetCollectionItems request = new BoxRequestsCollections.GetCollectionItems(id, getCollectionItemsUrl(id), mSession);
return request;
} | 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;
} | java |
public BoxRequestsEvent.GetUserEvents getUserEventsRequest() {
BoxRequestsEvent.GetUserEvents request = new BoxRequestsEvent.GetUserEvents( getEventsUrl(), mSession);
return request;
} | java |
public BoxRequestsEvent.GetEnterpriseEvents getEnterpriseEventsRequest() {
BoxRequestsEvent.GetEnterpriseEvents request = new BoxRequestsEvent.GetEnterpriseEvents(getEventsUrl(), mSession);
return request;
} | java |
public RealTimeServerConnection getLongPollServerConnection(RealTimeServerConnection.OnChangeListener changeListener) {
BoxRequestsEvent.EventRealTimeServerRequest request = new BoxRequestsEvent.EventRealTimeServerRequest(getEventsUrl(), mSession);
return new RealTimeServerConnection(request,changeListe... | 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());
} | java |
public R setMessage(String message) {
mBodyMap.put(BoxComment.FIELD_MESSAGE, message);
return (R) this;
} | java |
public String getItemId() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_ID) :
null;
} | 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);
... | java |
public String getItemType() {
return mBodyMap.containsKey(BoxComment.FIELD_ITEM) ?
(String) mBodyMap.get(BoxItem.FIELD_TYPE) :
null;
} | 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)... | java |
public void open() throws IOException {
mConnection.connect();
mContentType = mConnection.getContentType();
mResponseCode = mConnection.getResponseCode();
mContentEncoding = mConnection.getContentEncoding();
} | java |
public R setLimit(int limit) {
mQueryMap.put(LIMIT, String.valueOf(limit));
return (R) this;
} | java |
public R setOffset(int offset) {
mQueryMap.put(OFFSET, String.valueOf(offset));
return (R) this;
} | 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;
} | 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;
} | java |
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 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 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 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.GetItemMetadata getFolderMetadataRequest(String id, String template) {
BoxRequestsMetadata.GetItemMetadata request = new BoxRequestsMetadata.GetItemMetadata(getFolderMetadataUrl(id, 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;
} | java |
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.DeleteFileMetadata getDeleteFileMetadataTemplateRequest(String id, String template) {
BoxRequestsMetadata.DeleteFileMetadata request = new BoxRequestsMetadata.DeleteFileMetadata(getFileMetadataUrl(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;
} | java |
public BoxRequestsMetadata.GetMetadataTemplates getMetadataTemplatesRequest() {
BoxRequestsMetadata.GetMetadataTemplates request = new BoxRequestsMetadata.GetMetadataTemplates(getMetadataTemplatesUrl(), mSession);
return request;
} | java |
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> refresh() {
if (mRefreshTask != null && mRefreshTask.get() != null){
BoxFutureTask<BoxSession> lastRefreshTask = mRefreshTask.get();
if (!(lastRefreshTask.isCancelled() || lastRefreshTask.isDone())){
return lastRefreshTask;
}
... | java |
@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 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 onAuthFailure(BoxAuthentication.BoxAuthenticationInfo info, Exception ex) {
if (sameUser(info) || (info == null && getUserId() == null)) {
if (sessionAuthListener != null) {
sessionAuthListener.onAuthFailure(info, ex);
}
if (ex instan... | java |
public String getName() {
return mBodyMap.containsKey(BoxItem.FIELD_NAME) ?
(String) mBodyMap.get(BoxItem.FIELD_NAME) :
null;
} | java |
public R setName(String name) {
mBodyMap.put(BoxItem.FIELD_NAME, name);
return (R) this;
} | java |
public String getParentId() {
return mBodyMap.containsKey(BoxItem.FIELD_PARENT) ?
((BoxFolder) mBodyMap.get(BoxItem.FIELD_PARENT)).getId() :
null;
} | java |
public R setParentId(String parentId) {
BoxFolder parentFolder = BoxFolder.createFromId(parentId);
mBodyMap.put(BoxItem.FIELD_PARENT, parentFolder);
return (R) this;
} | java |
public void setPartsSha1(List<String> sha1s) {
JsonArray jsonArray = new JsonArray();
for (String s : sha1s) {
jsonArray.add(s);
}
set(FIELD_PARTS_SHA1, jsonArray);
} | 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();
} | java |
public BoxIterator<BoxFolder> getPathCollection() {
return (BoxIterator<BoxFolder>)getPropertyAsJsonObject(BoxJsonObject.getBoxJsonObjectCreator(BoxIteratorBoxEntity.class),FIELD_PATH_COLLECTION);
} | 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... | java |
protected String getUploadSessionForNewFileVersionUrl(final String id) {
return String.format(Locale.ENGLISH, "%s/files/%s/upload_sessions", getBaseUploadUri(), id);
} | java |
public BoxRequestsFile.GetFileInfo getInfoRequest(final String id) {
BoxRequestsFile.GetFileInfo request = new BoxRequestsFile.GetFileInfo(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;
} | java |
public BoxRequestsFile.UpdateFile getUpdateRequest(String id) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(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;
} | java |
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 getMoveRequest(String id, String parentId) {
BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
request.setParentId(parentId);
return request;
} | java |
public BoxRequestsFile.UpdatedSharedFile getCreateSharedLinkRequest(String id) {
BoxRequestsFile.UpdatedSharedFile request = new BoxRequestsFile.UpdatedSharedFile(id, getFileInfoUrl(id), mSession)
.setAccess(null);
return request;
} | java |
public BoxRequestsFile.AddCommentToFile getAddCommentRequest(String fileId, String message) {
BoxRequestsFile.AddCommentToFile request = new BoxRequestsFile.AddCommentToFile(fileId, message, 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;
} | java |
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(File file, String destinationFolderId) {
BoxRequestsFile.UploadFile request = new BoxRequestsFile.UploadFile(file, destinationFolderId, getFileUploadUrl(), mSession);
return request;
} | java |
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(File file, String destinationFileId) {
try {
BoxRequestsFile.UploadNewVersion request = getUploadNewVersionRequest(new FileInputStream(file), destinationFileId);
request.setUploadSize(file.length());
request.s... | 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... | 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;
... | java |
public BoxRequestsFile.DownloadFile getDownloadRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadFile request = new BoxRequestsFile.DownloadFile(fileId, outputStream, getFileDownloadUrl(fileId),mSession);
return request;
} | 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... | java |
public BoxRequestsFile.DownloadThumbnail getDownloadThumbnailRequest(OutputStream outputStream, String fileId) {
BoxRequestsFile.DownloadThumbnail request = new BoxRequestsFile.DownloadThumbnail(fileId, outputStream, getThumbnailFileDownloadUrl(fileId), mSession);
return request;
} | java |
public BoxRequestsFile.DownloadRepresentation getDownloadRepresentationRequest(String id, File targetFile, BoxRepresentation representation) {
return new BoxRequestsFile.DownloadRepresentation(id, targetFile, representation, mSession);
} | java |
public BoxRequestsFile.GetTrashedFile getTrashedFileRequest(String id) {
BoxRequestsFile.GetTrashedFile request = new BoxRequestsFile.GetTrashedFile(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;
} | java |
public BoxRequestsFile.RestoreTrashedFile getRestoreTrashedFileRequest(String id) {
BoxRequestsFile.RestoreTrashedFile request = new BoxRequestsFile.RestoreTrashedFile(id, getFileInfoUrl(id), mSession);
return request;
} | java |
public BoxRequestsFile.GetFileComments getCommentsRequest(String id) {
BoxRequestsFile.GetFileComments request = new BoxRequestsFile.GetFileComments(id, getFileCommentsUrl(id), mSession);
return request;
} | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.