idx int64 0 41.2k | question stringlengths 83 4.15k | target stringlengths 5 715 |
|---|---|---|
28,600 | public SignalEventDefinitionBuilder signalEventDefinition ( String signalName ) { SignalEventDefinition signalEventDefinition = createSignalEventDefinition ( signalName ) ; element . getEventDefinitions ( ) . add ( signalEventDefinition ) ; return new SignalEventDefinitionBuilder ( modelInstance , signalEventDefinition ) ; } | Sets an event definition for the given Signal name . If a signal with this name already exists it will be used otherwise a new signal is created . It returns a builder for the Signal Event Definition . |
28,601 | public B from ( FlowNode source ) { element . setSource ( source ) ; source . getOutgoing ( ) . add ( element ) ; return myself ; } | Sets the source flow node of this sequence flow . |
28,602 | public B to ( FlowNode target ) { element . setTarget ( target ) ; target . getIncoming ( ) . add ( element ) ; return myself ; } | Sets the target flow node of this sequence flow . |
28,603 | @ SuppressWarnings ( { "rawtypes" , "unchecked" } ) public < T extends AbstractFlowNodeBuilder > T messageEventDefinitionDone ( ) { return ( T ) ( ( Event ) element . getParentElement ( ) ) . builder ( ) ; } | Finishes the building of a message event definition . |
28,604 | public B compensation ( ) { CompensateEventDefinition compensateEventDefinition = createCompensateEventDefinition ( ) ; element . getEventDefinitions ( ) . add ( compensateEventDefinition ) ; return myself ; } | Sets a catch compensation definition . |
28,605 | public static void setSessionTicketKeys ( long ctx , SessionTicketKey [ ] keys ) { if ( keys == null || keys . length == 0 ) { throw new IllegalArgumentException ( "Length of the keys should be longer than 0." ) ; } byte [ ] binaryKeys = new byte [ keys . length * SessionTicketKey . TICKET_KEY_SIZE ] ; for ( int i = 0 ; i < keys . length ; i ++ ) { SessionTicketKey key = keys [ i ] ; int dstCurPos = SessionTicketKey . TICKET_KEY_SIZE * i ; System . arraycopy ( key . name , 0 , binaryKeys , dstCurPos , SessionTicketKey . NAME_SIZE ) ; dstCurPos += SessionTicketKey . NAME_SIZE ; System . arraycopy ( key . hmacKey , 0 , binaryKeys , dstCurPos , SessionTicketKey . HMAC_KEY_SIZE ) ; dstCurPos += SessionTicketKey . HMAC_KEY_SIZE ; System . arraycopy ( key . aesKey , 0 , binaryKeys , dstCurPos , SessionTicketKey . AES_KEY_SIZE ) ; } setSessionTicketKeys0 ( ctx , binaryKeys ) ; } | Set TLS session ticket keys . |
28,606 | private static String calculatePackagePrefix ( ) { String maybeShaded = Library . class . getName ( ) ; String expected = "io!netty!internal!tcnative!Library" . replace ( '!' , '.' ) ; if ( ! maybeShaded . endsWith ( expected ) ) { throw new UnsatisfiedLinkError ( String . format ( "Could not find prefix added to %s to get %s. When shading, only adding a " + "package prefix is supported" , expected , maybeShaded ) ) ; } return maybeShaded . substring ( 0 , maybeShaded . length ( ) - expected . length ( ) ) ; } | The shading prefix added to this class s full name . |
28,607 | public static boolean initialize ( String libraryName , String engine ) throws Exception { if ( _instance == null ) { _instance = libraryName == null ? new Library ( ) : new Library ( libraryName ) ; if ( aprMajorVersion ( ) < 1 ) { throw new UnsatisfiedLinkError ( "Unsupported APR Version (" + aprVersionString ( ) + ")" ) ; } if ( ! aprHasThreads ( ) ) { throw new UnsatisfiedLinkError ( "Missing APR_HAS_THREADS" ) ; } } return initialize0 ( ) && SSL . initialize ( engine ) == 0 ; } | Setup native library . This is the first method that must be called! |
28,608 | public static < S , R > List < R > convert ( List < S > source , Function < S , R > converter ) { return ( source == null ) ? null : source . stream ( ) . filter ( Objects :: nonNull ) . map ( converter ) . filter ( Objects :: nonNull ) . collect ( Collectors . toList ( ) ) ; } | Convert a list of a given type using converter . |
28,609 | public static ProcessHandler getDefaultHandler ( Logger logger ) { return LegacyProcessHandler . builder ( ) . addStdErrLineListener ( logger :: lifecycle ) . addStdOutLineListener ( logger :: lifecycle ) . setExitListener ( new NonZeroExceptionExitListener ( ) ) . build ( ) ; } | Create a return a new default configured process handler . |
28,610 | public void setExplodedAppDirectory ( File explodedAppDirectory ) { this . explodedAppDirectory = explodedAppDirectory ; into ( explodedAppDirectory ) ; preserve ( patternFilterable -> patternFilterable . include ( "WEB-INF/appengine-generated/datastore-indexes-auto.xml" ) ) ; } | Sets the output directory of Sync Task and preserves the setting so it can be recovered later via getter . |
28,611 | public FileCollection getExtraFilesDirectoriesAsInputFiles ( ) { if ( extraFilesDirectories == null ) { return null ; } FileCollection files = project . files ( ) ; for ( File directory : extraFilesDirectories ) { files = files . plus ( project . fileTree ( directory ) ) ; } return files ; } | This method is purely for incremental build calculations . |
28,612 | public void configureCoreProperties ( Project project , AppEngineCoreExtensionProperties appEngineCoreExtensionProperties , String taskGroup , boolean requiresAppEngineJava ) { project . getLogger ( ) . warn ( "WARNING: You are a using release candidate " + getClass ( ) . getPackage ( ) . getImplementationVersion ( ) + ". Behavior of this plugin has changed since 1.3.5. Please see release notes at: " + "https://github.com/GoogleCloudPlatform/app-gradle-plugin." ) ; project . getLogger ( ) . warn ( "Missing a feature? Can't get it to work?, please file a bug at: " + "https://github.com/GoogleCloudPlatform/app-gradle-plugin/issues." ) ; checkGradleVersion ( ) ; this . project = project ; this . taskGroup = taskGroup ; this . toolsExtension = appEngineCoreExtensionProperties . getTools ( ) ; this . deployExtension = appEngineCoreExtensionProperties . getDeploy ( ) ; this . requiresAppEngineJava = requiresAppEngineJava ; configureFactories ( ) ; createDownloadCloudSdkTask ( ) ; createCheckCloudSdkTask ( ) ; createLoginTask ( ) ; createDeployTask ( ) ; createDeployCronTask ( ) ; createDeployDispatchTask ( ) ; createDeployDosTask ( ) ; createDeployIndexTask ( ) ; createDeployQueueTask ( ) ; createDeployAllTask ( ) ; createShowConfigurationTask ( ) ; } | Configure core tasks for appengine app . yaml and appengine - web . xml based project plugins . |
28,613 | 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 ( "XPath evaluation failed on appengine-web.xml" , e ) ; } } | Check if vm = true . |
28,614 | public ManagedCloudSdk newManagedSdk ( ) throws UnsupportedOsException , BadCloudSdkVersionException { if ( Strings . isNullOrEmpty ( version ) ) { return ManagedCloudSdk . newManagedSdk ( ) ; } else { return ManagedCloudSdk . newManagedSdk ( new Version ( version ) ) ; } } | Build a new ManagedCloudSdk from a given version . |
28,615 | @ 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 ; } | Get an extension by it s path potentially will throw all kinds of exceptions . Be very careful . |
28,616 | private void configureArchiveTask ( AbstractArchiveTask archiveTask ) { if ( archiveTask == null ) { return ; } archiveTask . dependsOn ( "_createSourceContext" ) ; archiveTask . from ( extension . getOutputDirectory ( ) , copySpec -> copySpec . into ( "WEB-INF/classes" ) ) ; } | inject source - context into the META - INF directory of a jar or war |
28,617 | 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 ( ) ; outputStream . write ( header ) ; outputStream . write ( payload ) ; outputStream . flush ( ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "Wrote {} metrics" , metrics . size ( ) ) ; } } catch ( IOException e ) { this . failures ++ ; throw e ; } finally { metrics . clear ( ) ; } } } | 1 . Run the pickler script to package all the pending metrics into a single message 2 . Send the message to graphite 3 . Clear out the list of metrics |
28,618 | 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 } ; try ( InputProcessor processor = new DefaultInputProcessor ( journalStorage ) ) { processor . process ( fromVersion , b -> { EventsCommitInfo e = eventsContext . serializer ( ) . deserialize ( eventsContext . eventsCommitBuilder ( ) , b ) ; eventBus . processNextEvent ( e ) ; } , JournalType . EVENTS ) ; processor . process ( fromVersion , b -> { TransactionCommitInfo tx = workflowContext . serializer ( ) . deserialize ( workflowContext . transactionCommitBuilder ( ) , b ) ; if ( tx . transactionId ( ) > transactionId [ 0 ] || tx . transactionId ( ) == snapshotTransactionId ) { transactionId [ 0 ] = tx . transactionId ( ) ; workflowEngine . getPipe ( ) . executeRestore ( eventBus , tx ) ; } else if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( "Transaction ID {} less than last Transaction ID {}" , tx . transactionId ( ) , transactionId [ 0 ] ) ; } } , JournalType . TRANSACTIONS ) ; } catch ( Throwable t ) { LOG . error ( "restore" , t ) ; throw new RuntimeException ( t ) ; } workflowEngine . getPipe ( ) . sync ( ) ; workflowContext . eventPublisher ( ) . getPipe ( ) . sync ( ) ; return new SystemState ( transactionId [ 0 ] ) ; } | Reads all journals and restores all previous system mode state from them into the given repository . Also re - publish all events that were not sent by the reason of failure abortion etc . |
28,619 | 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:" ) ; } } } | Print the stack trace for a SQLException to a specified PrintWriter . |
28,620 | public static void printWarnings ( Connection conn , PrintWriter pw ) { if ( conn != null ) { try { printStackTrace ( conn . getWarnings ( ) , pw ) ; } catch ( SQLException e ) { printStackTrace ( e , pw ) ; } } } | Print warnings on a Connection to a specified PrintWriter . |
28,621 | public XComponentContext connect ( String host , int port ) throws BootstrapException { String unoConnectString = "uno:socket,host=" + host + ",port=" + port + ";urp;StarOffice.ComponentContext" ; return connect ( unoConnectString ) ; } | Connects to an OOo server using the specified host and port for the socket and returns a component context for using the connection to the OOo server . |
28,622 | 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 ) ; } | Adds area dependency for formula calculations |
28,623 | 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 ; } } | Kills the OOo server process from the previous start . If there has been no previous start of the OOo server the kill does nothing . If there has been a previous start kill destroys the process . |
28,624 | public XComponentContext connect ( String oooConnectionString ) throws BootstrapException { this . oooConnectionString = oooConnectionString ; XComponentContext xContext = null ; try { XComponentContext xLocalContext = getLocalContext ( ) ; oooServer . start ( ) ; XMultiComponentFactory xLocalServiceManager = xLocalContext . getServiceManager ( ) ; if ( xLocalServiceManager == null ) throw new BootstrapException ( "no initial service manager!" ) ; XUnoUrlResolver xUrlResolver = UnoUrlResolver . create ( xLocalContext ) ; for ( int i = 0 ; ; ++ i ) { try { xContext = getRemoteContext ( xUrlResolver ) ; break ; } catch ( NoConnectException ex ) { if ( i == 10 ) { throw new BootstrapException ( ex ) ; } Thread . sleep ( 500 ) ; } } } catch ( RuntimeException e ) { throw e ; } catch ( Exception e ) { throw new BootstrapException ( e ) ; } return xContext ; } | Connects to an OOo server using the specified accept option and connection string and returns a component context for using the connection to the OOo server . |
28,625 | public void disconnect ( ) { if ( oooConnectionString == null ) return ; try { XComponentContext xLocalContext = getLocalContext ( ) ; XUnoUrlResolver xUrlResolver = UnoUrlResolver . create ( xLocalContext ) ; XComponentContext xRemoteContext = getRemoteContext ( xUrlResolver ) ; Object desktop = xRemoteContext . getServiceManager ( ) . createInstanceWithContext ( "com.sun.star.frame.Desktop" , xRemoteContext ) ; XDesktop xDesktop = ( XDesktop ) UnoRuntime . queryInterface ( XDesktop . class , desktop ) ; xDesktop . terminate ( ) ; } catch ( Exception e ) { } oooServer . kill ( ) ; oooConnectionString = null ; } | Disconnects from an OOo server using the connection string from the previous connect . |
28,626 | protected XComponentContext getLocalContext ( ) throws BootstrapException , Exception { XComponentContext xLocalContext = Bootstrap . createInitialComponentContext ( null ) ; if ( xLocalContext == null ) { throw new BootstrapException ( "no local component context!" ) ; } return xLocalContext ; } | Create default local component context . |
28,627 | protected XComponentContext getRemoteContext ( XUnoUrlResolver xUrlResolver ) throws BootstrapException , ConnectionSetupException , IllegalArgumentException , NoConnectException { Object context = xUrlResolver . resolve ( oooConnectionString ) ; XComponentContext xContext = ( XComponentContext ) UnoRuntime . queryInterface ( XComponentContext . class , context ) ; if ( xContext == null ) { throw new BootstrapException ( "no component context!" ) ; } return xContext ; } | Try to connect to office . |
28,628 | public boolean next ( ) throws JRException { List < BandData > children = currentBand . getChildrenList ( ) ; if ( children != null && ! children . isEmpty ( ) && ! visitedBands . containsKey ( currentBand ) ) { currentIterator = children . iterator ( ) ; visitedBands . put ( currentBand , currentIterator ) ; } else if ( currentIterator == null ) { currentIterator = Collections . singletonList ( currentBand ) . iterator ( ) ; } if ( currentIterator . hasNext ( ) ) { currentBand = currentIterator . next ( ) ; if ( readBands . contains ( currentBand ) || currentBand . getData ( ) . isEmpty ( ) ) return next ( ) ; return true ; } else { BandData parentBand = currentBand . getParentBand ( ) ; currentBand = parentBand ; currentIterator = visitedBands . get ( parentBand ) ; if ( parentBand == null || parentBand . equals ( root ) ) return false ; return next ( ) ; } } | Maintains visitedBands to continue bypass on the same level after return from deeper level of hierarchy . Creates iterator for each level . |
28,629 | public JRBandDataDataSource subDataSource ( String bandName ) { if ( containsVisitedBand ( bandName ) ) return null ; BandData newParentBand = createNewBand ( bandName ) ; currentBand = root ; currentIterator = root . getChildrenList ( ) . iterator ( ) ; visitedBands . put ( root , currentIterator ) ; return new JRBandDataDataSource ( newParentBand ) ; } | Search for first level children band with specified name and return new datasource with this band as root element . |
28,630 | public < T > T query ( Connection conn , String sql , Object param , ResultSetHandler < T > rsh ) throws SQLException { return this . query ( conn , sql , new Object [ ] { param } , rsh ) ; } | Execute an SQL SELECT query with a single replacement parameter . The caller is responsible for closing the connection . |
28,631 | 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 ( stmt , params ) ; rs = this . wrap ( stmt . executeQuery ( ) ) ; result = rsh . handle ( rs ) ; } catch ( SQLException e ) { this . rethrow ( e , sql , params ) ; } finally { try { close ( rs ) ; } finally { close ( stmt ) ; } } return result ; } | Execute an SQL SELECT query with replacement parameters . The caller is responsible for closing the connection . |
28,632 | public int update ( Connection conn , String sql ) throws SQLException { return this . update ( conn , sql , ( Object [ ] ) null ) ; } | Execute an SQL INSERT UPDATE or DELETE query without replacement parameters . |
28,633 | public int update ( Connection conn , String sql , Object param ) throws SQLException { return this . update ( conn , sql , new Object [ ] { param } ) ; } | Execute an SQL INSERT UPDATE or DELETE query with a single replacement parameter . |
28,634 | 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 stmt = null ; int rows = 0 ; try { stmt = this . prepareStatement ( conn , sql ) ; this . fillStatement ( stmt , params , paramTypes ) ; rows = stmt . executeUpdate ( ) ; } catch ( SQLException e ) { this . rethrow ( e , sql , params ) ; } finally { close ( stmt ) ; } return rows ; } | Execute an SQL INSERT UPDATE or DELETE query . |
28,635 | protected void copyMergeRegions ( HSSFSheet resultSheet , String rangeName , int firstTargetRangeRow , int firstTargetRangeColumn ) { int rangeNameIdx = templateWorkbook . getNameIndex ( rangeName ) ; if ( rangeNameIdx == - 1 ) return ; HSSFName aNamedRange = templateWorkbook . getNameAt ( rangeNameIdx ) ; AreaReference aref = new AreaReference ( aNamedRange . getRefersToFormula ( ) , SpreadsheetVersion . EXCEL97 ) ; int column = aref . getFirstCell ( ) . getCol ( ) ; int row = aref . getFirstCell ( ) . getRow ( ) ; List < SheetRange > regionsList = mergeRegionsForRangeNames . get ( rangeName ) ; if ( regionsList != null ) for ( SheetRange sheetRange : regionsList ) { if ( resultSheet . getSheetName ( ) . equals ( sheetRange . getSheetName ( ) ) ) { CellRangeAddress cra = sheetRange . getCellRangeAddress ( ) ; if ( cra != null ) { int regionHeight = cra . getLastRow ( ) - cra . getFirstRow ( ) + 1 ; int regionWidth = cra . getLastColumn ( ) - cra . getFirstColumn ( ) + 1 ; int regionVOffset = cra . getFirstRow ( ) - row ; int regionHOffset = cra . getFirstColumn ( ) - column ; CellRangeAddress newRegion = cra . copy ( ) ; newRegion . setFirstColumn ( regionHOffset + firstTargetRangeColumn ) ; newRegion . setLastColumn ( regionHOffset + regionWidth - 1 + firstTargetRangeColumn ) ; newRegion . setFirstRow ( regionVOffset + firstTargetRangeRow ) ; newRegion . setLastRow ( regionVOffset + regionHeight - 1 + firstTargetRangeRow ) ; boolean skipRegion = false ; for ( int mergedIndex = 0 ; mergedIndex < resultSheet . getNumMergedRegions ( ) ; mergedIndex ++ ) { CellRangeAddress mergedRegion = resultSheet . getMergedRegion ( mergedIndex ) ; if ( ! intersects ( newRegion , mergedRegion ) ) { continue ; } skipRegion = true ; } if ( ! skipRegion ) { resultSheet . addMergedRegion ( newRegion ) ; } } } } } | Create new merge regions in result sheet identically to range s merge regions from template . Not support copy of frames and rules |
28,636 | 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 . getCellStyle ( ) ; HSSFCellStyle resultStyle = copyCellStyle ( templateStyle ) ; resultCell . setCellStyle ( resultStyle ) ; String templateCellValue = "" ; int cellType = templateCell . getCellType ( ) ; if ( cellType != HSSFCell . CELL_TYPE_FORMULA && cellType != HSSFCell . CELL_TYPE_NUMERIC ) { HSSFRichTextString richStringCellValue = templateCell . getRichStringCellValue ( ) ; templateCellValue = richStringCellValue != null ? richStringCellValue . getString ( ) : "" ; templateCellValue = extractStyles ( templateCell , resultCell , templateCellValue , band ) ; } if ( cellType == HSSFCell . CELL_TYPE_STRING && containsJustOneAlias ( templateCellValue ) ) { updateValueCell ( rootBand , band , templateCellValue , resultCell , drawingPatriarchsMap . get ( resultCell . getSheet ( ) ) ) ; } else { String cellValue = inlineBandDataToCellString ( templateCell , templateCellValue , band ) ; setValueToCell ( resultCell , cellValue , cellType ) ; } return resultCell ; } | copies template cell to result row into result column . Fills this cell with data from band |
28,637 | protected void updateValueCell ( BandData rootBand , BandData bandData , String templateCellValue , HSSFCell resultCell , HSSFPatriarch patriarch ) { String parameterName = templateCellValue ; parameterName = unwrapParameterName ( parameterName ) ; String fullParameterName = bandData . getName ( ) + "." + parameterName ; if ( StringUtils . isEmpty ( parameterName ) ) return ; if ( ! bandData . getData ( ) . containsKey ( parameterName ) ) { resultCell . setCellValue ( ( String ) null ) ; return ; } Object value = bandData . getData ( ) . get ( parameterName ) ; if ( value == null ) { resultCell . setCellType ( HSSFCell . CELL_TYPE_BLANK ) ; return ; } String formatString = getFormatString ( parameterName , fullParameterName ) ; InlinerAndMatcher inlinerAndMatcher = getContentInlinerForFormat ( formatString ) ; if ( inlinerAndMatcher != null ) { inlinerAndMatcher . contentInliner . inlineToXls ( patriarch , resultCell , value , inlinerAndMatcher . matcher ) ; return ; } if ( formatString != null ) { resultCell . setCellValue ( new HSSFRichTextString ( formatValue ( value , parameterName , fullParameterName ) ) ) ; } else if ( value instanceof Number ) { resultCell . setCellValue ( ( ( Number ) value ) . doubleValue ( ) ) ; } else if ( value instanceof Boolean ) { resultCell . setCellValue ( ( Boolean ) value ) ; } else if ( value instanceof Date ) { resultCell . setCellValue ( ( Date ) value ) ; } else { resultCell . setCellValue ( new HSSFRichTextString ( formatValue ( value , parameterName , fullParameterName ) ) ) ; } } | Copies template cell to result cell and fills it with bandData data |
28,638 | 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 . getName ( ) , bounds ) ; } | This method adds range bounds to cache . Key is bandName |
28,639 | protected EscherAggregate getEscherAggregate ( HSSFSheet sheet ) { EscherAggregate agg = sheetToEscherAggregate . get ( sheet . getSheetName ( ) ) ; if ( agg == null ) { agg = sheet . getDrawingEscherAggregate ( ) ; sheetToEscherAggregate . put ( sheet . getSheetName ( ) , agg ) ; } return agg ; } | Returns EscherAggregate from sheet |
28,640 | protected void copyPicturesFromTemplateToResult ( HSSFSheet templateSheet , HSSFSheet resultSheet ) { List < HSSFClientAnchor > list = getAllAnchors ( getEscherAggregate ( templateSheet ) ) ; int i = 0 ; if ( CollectionUtils . isNotEmpty ( orderedPicturesId ) ) { for ( HSSFClientAnchor anchor : list ) { Cell topLeft = getCellFromTemplate ( new Cell ( anchor . getCol1 ( ) , anchor . getRow1 ( ) ) ) ; anchor . setCol1 ( topLeft . getCol ( ) ) ; anchor . setRow1 ( topLeft . getRow ( ) ) ; anchor . setCol2 ( topLeft . getCol ( ) + anchor . getCol2 ( ) - anchor . getCol1 ( ) ) ; anchor . setRow2 ( topLeft . getRow ( ) + anchor . getRow2 ( ) - anchor . getRow1 ( ) ) ; HSSFPatriarch sheetPatriarch = drawingPatriarchsMap . get ( resultSheet ) ; if ( sheetPatriarch != null ) { sheetPatriarch . createPicture ( anchor , orderedPicturesId . get ( i ++ ) ) ; } } } } | Copies all pictures from template sheet to result sheet shift picture depending on area dependencies |
28,641 | protected void updateFormulas ( ) { CTCalcChain calculationChain = getCalculationChain ( ) ; int formulaCount = processInnerFormulas ( calculationChain ) ; processOuterFormulas ( formulaCount , calculationChain ) ; } | todo support formulas without range but with list of cells |
28,642 | protected void createFakeTemplateCellsForEmptyOnes ( Range oneRowRange , Map < CellReference , Cell > cellsForOneRowRange , List < Cell > templateCells ) { if ( oneRowRange . toCellReferences ( ) . size ( ) != templateCells . size ( ) ) { final HashBiMap < CellReference , Cell > referencesToCells = HashBiMap . create ( cellsForOneRowRange ) ; for ( CellReference cellReference : oneRowRange . toCellReferences ( ) ) { if ( ! cellsForOneRowRange . containsKey ( cellReference ) ) { Cell newCell = Context . getsmlObjectFactory ( ) . createCell ( ) ; newCell . setV ( null ) ; newCell . setT ( STCellType . STR ) ; newCell . setR ( cellReference . toReference ( ) ) ; templateCells . add ( newCell ) ; referencesToCells . put ( cellReference , newCell ) ; } } templateCells . sort ( ( o1 , o2 ) -> { CellReference cellReference1 = referencesToCells . inverse ( ) . get ( o1 ) ; CellReference cellReference2 = referencesToCells . inverse ( ) . get ( o2 ) ; return cellReference1 . compareTo ( cellReference2 ) ; } ) ; } } | 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 . |
28,643 | 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 ) { throw new NullPointerException ( String . format ( "Report template not found for code [%s]" , templateCode ) ) ; } return this ; } | Setup necessary template by string code . Throws validation exception if code is null or template not found |
28,644 | 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 ; } | Adds parameters from map |
28,645 | public RunParams param ( String key , Object value ) { params . put ( key , value ) ; return this ; } | Add single parameter |
28,646 | public BoxRequestsCollections . GetCollections getCollectionsRequest ( ) { BoxRequestsCollections . GetCollections request = new BoxRequestsCollections . GetCollections ( getCollectionsUrl ( ) , mSession ) ; return request ; } | Gets a request that gets the collections belonging to the user |
28,647 | public BoxRequestsCollections . GetCollectionItems getItemsRequest ( String id ) { BoxRequestsCollections . GetCollectionItems request = new BoxRequestsCollections . GetCollectionItems ( id , getCollectionItemsUrl ( id ) , mSession ) ; return request ; } | Gets a request that gets the items of a collection |
28,648 | 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 ; } | 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 |
28,649 | public BoxRequestsEvent . GetUserEvents getUserEventsRequest ( ) { BoxRequestsEvent . GetUserEvents request = new BoxRequestsEvent . GetUserEvents ( getEventsUrl ( ) , mSession ) ; return request ; } | Gets a request that retrieves user events |
28,650 | public BoxRequestsEvent . GetEnterpriseEvents getEnterpriseEventsRequest ( ) { BoxRequestsEvent . GetEnterpriseEvents request = new BoxRequestsEvent . GetEnterpriseEvents ( getEventsUrl ( ) , mSession ) ; return request ; } | Gets a request that retrieves enterprise events |
28,651 | public RealTimeServerConnection getLongPollServerConnection ( RealTimeServerConnection . OnChangeListener changeListener ) { BoxRequestsEvent . EventRealTimeServerRequest request = new BoxRequestsEvent . EventRealTimeServerRequest ( getEventsUrl ( ) , mSession ) ; return new RealTimeServerConnection ( request , changeListener , mSession ) ; } | 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 . |
28,652 | public JsonValue getPropertyValue ( String name ) { JsonValue jsonValue = mCacheMap . getAsJsonValue ( name ) ; return jsonValue == null ? null : JsonValue . readFrom ( jsonValue . toString ( ) ) ; } | Gets the value associated with the key in the property map |
28,653 | 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 . |
28,654 | 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 . |
28,655 | 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 ) ; BoxEntity item = new BoxEntity ( object ) ; mBodyMap . put ( BoxComment . FIELD_ITEM , item ) ; return ( R ) this ; } | Sets the id of the item used in the request to add a comment to . |
28,656 | 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 . |
28,657 | 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 ) ; BoxEntity item = new BoxEntity ( object ) ; mBodyMap . put ( BoxComment . FIELD_ITEM , item ) ; return ( R ) this ; } | Sets the type of item used in the request to add a comment to . |
28,658 | public void open ( ) throws IOException { mConnection . connect ( ) ; mContentType = mConnection . getContentType ( ) ; mResponseCode = mConnection . getResponseCode ( ) ; mContentEncoding = mConnection . getContentEncoding ( ) ; } | Open connection to the resource . |
28,659 | public R setLimit ( int limit ) { mQueryMap . put ( LIMIT , String . valueOf ( limit ) ) ; return ( R ) this ; } | Sets the limit of items that should be returned |
28,660 | public R setOffset ( int offset ) { mQueryMap . put ( OFFSET , String . valueOf ( offset ) ) ; return ( R ) this ; } | Sets the offset of the items that should be returned |
28,661 | 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 ; } | Returns the base URI for the API . |
28,662 | 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 ; } | Returns the base URI for uploads for the API . |
28,663 | public ArrayList < BoxCollaboration . Role > getAllowedInviteeRoles ( ) { if ( mCachedAllowedInviteeRoles != null ) { return mCachedAllowedInviteeRoles ; } ArrayList < String > roles = getPropertyAsStringArray ( FIELD_ALLOWED_INVITEE_ROLES ) ; if ( roles == null ) { return null ; } mCachedAllowedInviteeRoles = new ArrayList < BoxCollaboration . Role > ( roles . size ( ) ) ; for ( String role : roles ) { mCachedAllowedInviteeRoles . add ( BoxCollaboration . Role . fromString ( role ) ) ; } return mCachedAllowedInviteeRoles ; } | Item collaboration settings allowed by the enterprise administrator . |
28,664 | 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 ; } | Get a map of all end points |
28,665 | 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 ) ; } | 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 |
28,666 | 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 ) ; return request ; } | Gets a request that adds metadata to a folder |
28,667 | public BoxRequestsMetadata . GetItemMetadata getFolderMetadataRequest ( String id , String template ) { BoxRequestsMetadata . GetItemMetadata request = new BoxRequestsMetadata . GetItemMetadata ( getFolderMetadataUrl ( id , template ) , mSession ) ; return request ; } | Gets a request that retrieves the metadata for a specific template on a folder |
28,668 | public BoxRequestsMetadata . UpdateFileMetadata getUpdateFileMetadataRequest ( String id , String scope , String template ) { BoxRequestsMetadata . UpdateFileMetadata request = new BoxRequestsMetadata . UpdateFileMetadata ( getFileMetadataUrl ( id , scope , template ) , mSession ) ; return request ; } | Gets a request that updates the metadata for a specific template on a file |
28,669 | public BoxRequestsMetadata . UpdateItemMetadata getUpdateFolderMetadataRequest ( String id , String scope , String template ) { BoxRequestsMetadata . UpdateItemMetadata request = new BoxRequestsMetadata . UpdateItemMetadata ( getFolderMetadataUrl ( id , scope , template ) , mSession ) ; return request ; } | Gets a request that updates the metadata for a specific template on a folder |
28,670 | public BoxRequestsMetadata . DeleteFileMetadata getDeleteFileMetadataTemplateRequest ( String id , String template ) { BoxRequestsMetadata . DeleteFileMetadata request = new BoxRequestsMetadata . DeleteFileMetadata ( getFileMetadataUrl ( id , template ) , mSession ) ; return request ; } | Gets a request that deletes the metadata for a specific template on a file |
28,671 | public BoxRequestsMetadata . DeleteItemMetadata getDeleteFolderMetadataTemplateRequest ( String id , String template ) { BoxRequestsMetadata . DeleteItemMetadata request = new BoxRequestsMetadata . DeleteItemMetadata ( getFolderMetadataUrl ( id , template ) , mSession ) ; return request ; } | Gets a request that deletes the metadata for a specific template on a folder |
28,672 | public BoxRequestsMetadata . GetMetadataTemplates getMetadataTemplatesRequest ( ) { BoxRequestsMetadata . GetMetadataTemplates request = new BoxRequestsMetadata . GetMetadataTemplates ( getMetadataTemplatesUrl ( ) , mSession ) ; return request ; } | Gets a request that retrieves available metadata templates under the enterprise scope |
28,673 | public BoxFutureTask < BoxSession > logout ( ) { final BoxFutureTask < BoxSession > task = ( new BoxSessionLogoutRequest ( this ) ) . toTask ( ) ; new Thread ( ) { public void run ( ) { task . run ( ) ; } } . start ( ) ; return task ; } | Logout the currently authenticated user . |
28,674 | public BoxFutureTask < BoxSession > refresh ( ) { if ( mRefreshTask != null && mRefreshTask . get ( ) != null ) { BoxFutureTask < BoxSession > lastRefreshTask = mRefreshTask . get ( ) ; if ( ! ( lastRefreshTask . isCancelled ( ) || lastRefreshTask . isDone ( ) ) ) { return lastRefreshTask ; } } final BoxFutureTask < BoxSession > task = ( new BoxSessionRefreshRequest ( this ) ) . toTask ( ) ; new Thread ( ) { public void run ( ) { task . run ( ) ; } } . start ( ) ; mRefreshTask = new WeakReference < BoxFutureTask < BoxSession > > ( task ) ; return task ; } | Refresh authentication information associated with this session . |
28,675 | public void onRefreshed ( BoxAuthentication . BoxAuthenticationInfo info ) { if ( sameUser ( info ) ) { BoxAuthentication . BoxAuthenticationInfo . cloneInfo ( mAuthInfo , info ) ; if ( sessionAuthListener != null ) { sessionAuthListener . onRefreshed ( info ) ; } } } | Called when this session has been refreshed with new authentication info . |
28,676 | public void onAuthCreated ( BoxAuthentication . BoxAuthenticationInfo info ) { if ( sameUser ( info ) || getUserId ( ) == null ) { BoxAuthentication . BoxAuthenticationInfo . cloneInfo ( mAuthInfo , info ) ; if ( info . getUser ( ) != null ) { setUserId ( info . getUser ( ) . getId ( ) ) ; } if ( sessionAuthListener != null ) { sessionAuthListener . onAuthCreated ( info ) ; } } } | Called when this user has logged in . |
28,677 | public void onAuthFailure ( BoxAuthentication . BoxAuthenticationInfo info , Exception ex ) { if ( sameUser ( info ) || ( info == null && getUserId ( ) == null ) ) { if ( sessionAuthListener != null ) { sessionAuthListener . onAuthFailure ( info , ex ) ; } if ( ex instanceof BoxException ) { BoxException . ErrorType errorType = ( ( BoxException ) ex ) . getErrorType ( ) ; switch ( errorType ) { case NETWORK_ERROR : toastString ( mApplicationContext , R . string . boxsdk_error_network_connection ) ; break ; case IP_BLOCKED : } } } } | Called when a failure occurs trying to authenticate or refresh . |
28,678 | 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 . |
28,679 | 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 . |
28,680 | public String getParentId ( ) { return mBodyMap . containsKey ( BoxItem . FIELD_PARENT ) ? ( ( BoxFolder ) mBodyMap . get ( BoxItem . FIELD_PARENT ) ) . getId ( ) : null ; } | Returns the parent id currently set for the item copy . |
28,681 | public R setParentId ( String parentId ) { BoxFolder parentFolder = BoxFolder . createFromId ( parentId ) ; mBodyMap . put ( BoxItem . FIELD_PARENT , parentFolder ) ; return ( R ) this ; } | Sets the parent id used in the request for the item copy . |
28,682 | public void setPartsSha1 ( List < String > sha1s ) { JsonArray jsonArray = new JsonArray ( ) ; for ( String s : sha1s ) { jsonArray . add ( s ) ; } set ( FIELD_PARTS_SHA1 , jsonArray ) ; } | Util method for storing sha1 for parts being uploaded |
28,683 | public static int getChunkSize ( BoxUploadSession uploadSession , int partNumber , long fileSize ) { if ( partNumber == uploadSession . getTotalParts ( ) - 1 ) { return ( int ) ( fileSize - partNumber * uploadSession . getPartSize ( ) ) ; } return uploadSession . getPartSize ( ) ; } | Computes the actual bytes to be sent in a part which equals the partsize for all parts except the last . |
28,684 | public BoxIterator < BoxFolder > getPathCollection ( ) { return ( BoxIterator < BoxFolder > ) getPropertyAsJsonObject ( BoxJsonObject . getBoxJsonObjectCreator ( BoxIteratorBoxEntity . class ) , FIELD_PATH_COLLECTION ) ; } | Gets the path of folders to the item starting at the root . |
28,685 | 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 ) ; return file ; } else if ( createdByEntity . getType ( ) . equals ( BoxBookmark . TYPE ) ) { BoxBookmark bookmark = new BoxBookmark ( ) ; bookmark . createFromJson ( json ) ; return bookmark ; } else if ( createdByEntity . getType ( ) . equals ( BoxFolder . TYPE ) ) { BoxFolder folder = new BoxFolder ( ) ; folder . createFromJson ( json ) ; return folder ; } return null ; } | Deprecated use BoxEntity . createEntityFromJson . FromCreates a BoxItem object from a JSON string . |
28,686 | 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 |
28,687 | public BoxRequestsFile . GetFileInfo getInfoRequest ( final String id ) { BoxRequestsFile . GetFileInfo request = new BoxRequestsFile . GetFileInfo ( id , getFileInfoUrl ( id ) , mSession ) ; return request ; } | Gets a request that retrieves information on a file |
28,688 | public BoxRequestsFile . GetEmbedLinkFileInfo getEmbedLinkRequest ( final String id ) { BoxRequestsFile . GetEmbedLinkFileInfo request = new BoxRequestsFile . GetEmbedLinkFileInfo ( id , getFileInfoUrl ( id ) , mSession ) ; return request ; } | Gets a request that retrieves an expiring embedded link which can be embedded in a webview for a preview . |
28,689 | public BoxRequestsFile . UpdateFile getUpdateRequest ( String id ) { BoxRequestsFile . UpdateFile request = new BoxRequestsFile . UpdateFile ( id , getFileInfoUrl ( id ) , mSession ) ; return request ; } | Gets a request that updates a file s information |
28,690 | public BoxRequestsFile . CopyFile getCopyRequest ( String id , String parentId ) { BoxRequestsFile . CopyFile request = new BoxRequestsFile . CopyFile ( id , parentId , getFileCopyUrl ( id ) , mSession ) ; return request ; } | Gets a request that copies a file |
28,691 | public BoxRequestsFile . UpdateFile getRenameRequest ( String id , String newName ) { BoxRequestsFile . UpdateFile request = new BoxRequestsFile . UpdateFile ( id , getFileInfoUrl ( id ) , mSession ) ; request . setName ( newName ) ; return request ; } | Gets a request that renames a file |
28,692 | public BoxRequestsFile . UpdateFile getMoveRequest ( String id , String parentId ) { BoxRequestsFile . UpdateFile request = new BoxRequestsFile . UpdateFile ( id , getFileInfoUrl ( id ) , mSession ) ; request . setParentId ( parentId ) ; return request ; } | Gets a request that moves a file to another folder |
28,693 | public BoxRequestsFile . UpdatedSharedFile getCreateSharedLinkRequest ( String id ) { BoxRequestsFile . UpdatedSharedFile request = new BoxRequestsFile . UpdatedSharedFile ( id , getFileInfoUrl ( id ) , mSession ) . setAccess ( null ) ; return request ; } | Gets a request that creates a shared link for a file |
28,694 | public BoxRequestsFile . AddCommentToFile getAddCommentRequest ( String fileId , String message ) { BoxRequestsFile . AddCommentToFile request = new BoxRequestsFile . AddCommentToFile ( fileId , message , getCommentUrl ( ) , mSession ) ; return request ; } | Gets a request that adds a comment to a file |
28,695 | public BoxRequestsFile . AddTaggedCommentToFile getAddTaggedCommentRequest ( String fileId , String taggedMessage ) { BoxRequestsFile . AddTaggedCommentToFile request = new BoxRequestsFile . AddTaggedCommentToFile ( fileId , taggedMessage , getCommentUrl ( ) , mSession ) ; return request ; } | Gets a request for adding a comment with tags that mention users . The server will notify mentioned users of the comment . |
28,696 | public BoxRequestsFile . UploadFile getUploadRequest ( InputStream fileInputStream , String fileName , String destinationFolderId ) { BoxRequestsFile . UploadFile request = new BoxRequestsFile . UploadFile ( fileInputStream , fileName , destinationFolderId , getFileUploadUrl ( ) , mSession ) ; return request ; } | Gets a request that uploads a file from an input stream |
28,697 | public BoxRequestsFile . UploadFile getUploadRequest ( File file , String destinationFolderId ) { BoxRequestsFile . UploadFile request = new BoxRequestsFile . UploadFile ( file , destinationFolderId , getFileUploadUrl ( ) , mSession ) ; return request ; } | Gets a request that uploads a file from an existing file |
28,698 | public BoxRequestsFile . UploadNewVersion getUploadNewVersionRequest ( InputStream fileInputStream , String destinationFileId ) { BoxRequestsFile . UploadNewVersion request = new BoxRequestsFile . UploadNewVersion ( fileInputStream , getFileUploadNewVersionUrl ( destinationFileId ) , mSession ) ; return request ; } | Gets a request that uploads a new file version from an input stream |
28,699 | public BoxRequestsFile . UploadNewVersion getUploadNewVersionRequest ( File file , String destinationFileId ) { try { BoxRequestsFile . UploadNewVersion request = getUploadNewVersionRequest ( new FileInputStream ( file ) , destinationFileId ) ; request . setUploadSize ( file . length ( ) ) ; request . setModifiedDate ( new Date ( file . lastModified ( ) ) ) ; return request ; } catch ( FileNotFoundException e ) { throw new IllegalArgumentException ( e ) ; } } | Gets a request that uploads a new file version from an existing file |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.