public Workspace getWorkspace ( long id , Boolean loadAll , EnumSet < SourceInclusion > includes ) throws SmartsheetException { String path = "workspaces/" + id ; // Add the parameters to a map and build the query string at the end HashMap < String , Object > parameters = new HashMap < String , Object > ( ) ; parameters . put ( "include" , QueryUtil . generateCommaSeparatedList ( includes ) ) ; if ( loadAll != null ) { parameters . put ( "loadAll" , Boolean . toString ( loadAll ) ) ; } path += QueryUtil . generateUrl ( null , parameters ) ; return this . getResource ( path , Workspace . class ) ; }
Get a workspace .