Gets a request that creates a shared link for a folder

@param id        id of folder to create shared link for
@return      request to create a shared link for a folder
500564
public BoxRequestsFolder.UpdateSharedFolder getCreateSharedLinkRequest(String id) {
        BoxRequestsFolder.UpdateSharedFolder request = new BoxRequestsFolder.UpdateSharedFolder(id, getFolderInfoUrl(id), mSession)
                .setAccess(null);
        return request;
    }
456248
public BoxRequestsMetadata.GetFileMetadata getFileMetadataRequest(String id) {
        BoxRequestsMetadata.GetFileMetadata request = new BoxRequestsMetadata.GetFileMetadata(getFileMetadataUrl(id), mSession);
        return request;
    }
36409
public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink, String password) {
        BoxSharedLinkSession session = null;
        if (mSession instanceof BoxSharedLinkSession) {
            session = (BoxSharedLinkSession)mSession;
        } else {
            session = new BoxSharedLinkSession(mSession);
        }

        session.setSharedLink(sharedLink);
        session.setPassword(password);
        BoxRequestsShare.GetSharedLink request = new BoxRequestsShare.GetSharedLink(getSharedItemsUrl(), session);
        return request;
    }
711605
public static Application get(final String id) throws Exception {
        assert(id != null);

        final BandwidthClient client = BandwidthClient.getInstance();
        return Application.get(client ,id);
    }
1313892
public String getInstanceUrl(String entityName, String groupId, String id) {
		return connec.getHost() + getInstanceEndpoint(entityName, groupId, id);
	}
154388
public synchronized SICoreConnection get(int id) {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "get", "" + id);
        SICoreConnection retValue = (SICoreConnection) map.get(id);
        if (tc.isEntryEnabled())
            SibTr.exit(tc, "get", retValue);
        return retValue;
    }
1323305
public BoxRequestsFolder.GetCollaborations getCollaborationsRequest(String id) {
        BoxRequestsFolder.GetCollaborations request = new BoxRequestsFolder.GetCollaborations(id, getFolderCollaborationsUrl(id), mSession);
        return request;
    }
361651
@RequestMapping(value = "/getThumbnail.action", method = RequestMethod.GET)
    public ResponseEntity<?> getThumbnail(@RequestParam Integer id) {

        final HttpHeaders responseHeaders = new HttpHeaders();
        Map<String, Object> responseMap;

        try {
            // try to get the image
            ImageFile image = service.findById(id);
            if (image == null) {
                throw new Exception("Could not find the image with id " + id);
            }

            byte[] imageBytes = null;

            imageBytes = image.getThumbnail();

            responseHeaders.setContentType(
                MediaType.parseMediaType(image.getFileType()));

            LOG.info("Successfully got the image thumbnail " +
                image.getFileName());

            return new ResponseEntity<byte[]>(
                imageBytes, responseHeaders, HttpStatus.OK);
        } catch (Exception e) {
            final String errorMessage = "Could not get the image thumbnail: "
                + e.getMessage();

            LOG.error(errorMessage);
            responseMap = ResultSet.error(errorMessage);

            responseHeaders.setContentType(MediaType.APPLICATION_JSON);

            return new ResponseEntity<Map<String, Object>>(
                responseMap, responseHeaders, HttpStatus.OK);
        }
    }
1319470
public BoxRequestsFolder.DeleteFolder getDeleteRequest(String id) {
        BoxRequestsFolder.DeleteFolder request = new BoxRequestsFolder.DeleteFolder(id, getFolderInfoUrl(id), mSession);
        return request;
    }
122455
public BoxRequestsFile.GetCollaborations getCollaborationsRequest(String id) {
        BoxRequestsFile.GetCollaborations request = new BoxRequestsFile.GetCollaborations(id, getFileCollaborationsUrl(id), mSession);
        return request;
    }
720426
public BoxRequestsBookmark.UpdateBookmark getDisableSharedLinkRequest(String id) {
        BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession)
                .setSharedLink(null);
        return request;
    }
1325340
public function get_file_share_info($id) {
        // Attempt to fetch any existing shared link first.
        $data = $this->fetch_dropbox_data('sharing/list_shared_links', [
                'path'      => $id,
            ]);

        if (isset($data->links)) {
            $link = reset($data->links);
            if (isset($link->{".tag"}) && $link->{".tag"} === "file") {
                return $this->normalize_file_share_info($link);
            }
        }

        // No existing link available.
        // Create a new one.
        $link = $this->fetch_dropbox_data('sharing/create_shared_link_with_settings', [
                'path'      => $id,
                'settings'  => [
                    'requested_visibility'  => 'public',
                ],
            ]);

        if (isset($link->{".tag"}) && $link->{".tag"} === "file") {
            return $this->normalize_file_share_info($link);
        }

        // Some kind of error we don't know how to handle at this stage.
        return null;
    }
916626
public static linkset get(nitro_service service, String id) throws Exception{
		linkset obj = new linkset();
		obj.set_id(id);
		linkset response = (linkset) obj.get_resource(service);
		return response;
	}
57665
public BoxRequestsFolder.DeleteTrashedFolder getDeleteTrashedFolderRequest(String id) {
        BoxRequestsFolder.DeleteTrashedFolder request = new BoxRequestsFolder.DeleteTrashedFolder(id, getTrashedFolderUrl(id), mSession);
        return request;
    }
165531
protected String getUploadSessionForNewFileVersionUrl(final String id) {
        return String.format(Locale.ENGLISH, "%s/files/%s/upload_sessions", getBaseUploadUri(), id);
    }
1342758
public static Bridge get(final BandwidthClient client, final String id) throws Exception {
        assert(client != null);
    	final String bridgesUri =  client.getUserResourceInstanceUri(BandwidthConstants.BRIDGES_URI_PATH, id);
        final JSONObject jsonObject = toJSONObject(client.get(bridgesUri, null));
        return new Bridge(client, jsonObject);
        
    }
100709
public BoxRequestsFolder.GetTrashedFolder getTrashedFolderRequest(String id) {
        BoxRequestsFolder.GetTrashedFolder request = new BoxRequestsFolder.GetTrashedFolder(id, getTrashedFolderUrl(id), mSession);
        return request;
    }