idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
149,800
public AT_Row setPaddingLeft ( int paddingLeft ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingLeft ( paddingLeft ) ; } } return this ; }
Sets the left padding for all cells in the row .
149,801
public AT_Row setPaddingLeftChar ( Character paddingLeftChar ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingLeftChar ( paddingLeftChar ) ; } } return this ; }
Sets the left padding character for all cells in the row .
149,802
public AT_Row setPaddingLeftRight ( int padding ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingLeftRight ( padding ) ; } } return this ; }
Sets left and right padding for all cells in the row .
149,803
public AT_Row setPaddingRight ( int paddingRight ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingRight ( paddingRight ) ; } } return this ; }
Sets the right padding for all cells in the row .
149,804
public AT_Row setPaddingRightChar ( Character paddingRightChar ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingRightChar ( paddingRightChar ) ; } } return this ; }
Sets the right padding character for all cells in the row .
149,805
public AT_Row setPaddingTop ( int paddingTop ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingTop ( paddingTop ) ; } } return this ; }
Sets the top padding for all cells in the row .
149,806
public AT_Row setPaddingTopBottom ( int padding ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingTopBottom ( padding ) ; } } return this ; }
Sets top and bottom padding for all cells in the row .
149,807
public AT_Row setPaddingTopChar ( Character paddingTopChar ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setPaddingTopChar ( paddingTopChar ) ; } } return this ; }
Sets the top padding character for all cells in the row .
149,808
public AT_Row setTextAlignment ( TextAlignment textAlignment ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setTextAlignment ( textAlignment ) ; } } return this ; }
Sets the text alignment for all cells in the row .
149,809
public AT_Row setTargetTranslator ( TargetTranslator targetTranslator ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setTargetTranslator ( targetTranslator ) ; } } return this ; }
Sets the target translator for all cells in the row . It will also remove any other translator set . Nothing will happen if the argument is null .
149,810
public AT_Row setHtmlElementTranslator ( HtmlElementTranslator htmlElementTranslator ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setHtmlElementTranslator ( htmlElementTranslator ) ; } } return this ; }
Sets the HTML entity translator for all cells in the row . It will also remove any other translator set . Nothing will happen if the argument is null .
149,811
public AT_Row setCharTranslator ( CharacterTranslator charTranslator ) { if ( this . hasCells ( ) ) { for ( AT_Cell cell : this . getCells ( ) ) { cell . getContext ( ) . setCharTranslator ( charTranslator ) ; } } return this ; }
Sets the character translator for all cells in the row . It will also remove any other translator set . Nothing will happen if the argument is null .
149,812
public AT_Context setFrameLeftRightMargin ( int frameLeft , int frameRight ) { if ( frameRight > - 1 && frameLeft > - 1 ) { this . frameLeftMargin = frameLeft ; this . frameRightMargin = frameRight ; } return this ; }
Sets the left and right frame margin .
149,813
public AT_Context setFrameTopBottomMargin ( int frameTop , int frameBottom ) { if ( frameTop > - 1 && frameBottom > - 1 ) { this . frameTopMargin = frameTop ; this . frameBottomMargin = frameBottom ; } return this ; }
Sets the top and bottom frame margin .
149,814
public final void addRule ( TableRowStyle style ) { Validate . notNull ( style ) ; Validate . validState ( style != TableRowStyle . UNKNOWN , "cannot add a rule of unknown style" ) ; this . rows . add ( AT_Row . createRule ( TableRowType . RULE , style ) ) ; }
Adds a rule row to the table with a given style .
149,815
public AsciiTable setPaddingBottom ( int paddingBottom ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingBottom ( paddingBottom ) ; } } return this ; }
Sets the bottom padding for all cells in the table .
149,816
public AsciiTable setPaddingBottomChar ( Character paddingBottomChar ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingBottomChar ( paddingBottomChar ) ; } } return this ; }
Sets the bottom padding character for all cells in the table .
149,817
public AsciiTable setPaddingLeft ( int paddingLeft ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingLeft ( paddingLeft ) ; } } return this ; }
Sets the left padding for all cells in the table .
149,818
public AsciiTable setPaddingLeftChar ( Character paddingLeftChar ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingLeftChar ( paddingLeftChar ) ; } } return this ; }
Sets the left padding character for all cells in the table .
149,819
public AsciiTable setPaddingLeftRight ( int padding ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingLeftRight ( padding ) ; } } return this ; }
Sets left and right padding for all cells in the table .
149,820
public AsciiTable setPaddingRight ( int paddingRight ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingRight ( paddingRight ) ; } } return this ; }
Sets the right padding for all cells in the table .
149,821
public AsciiTable setPaddingRightChar ( Character paddingRightChar ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingRightChar ( paddingRightChar ) ; } } return this ; }
Sets the right padding character for all cells in the table .
149,822
public AsciiTable setPaddingTop ( int paddingTop ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingTop ( paddingTop ) ; } } return this ; }
Sets the top padding for all cells in the table .
149,823
public AsciiTable setPaddingTopChar ( Character paddingTopChar ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setPaddingTopChar ( paddingTopChar ) ; } } return this ; }
Sets the top padding character for all cells in the table .
149,824
public AsciiTable setTextAlignment ( TextAlignment textAlignment ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setTextAlignment ( textAlignment ) ; } } return this ; }
Sets the text alignment for all cells in the table .
149,825
public AsciiTable setTargetTranslator ( TargetTranslator targetTranslator ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setTargetTranslator ( targetTranslator ) ; } } return this ; }
Sets the target translator for all cells in the table . It will also remove any other translator set . Nothing will happen if the argument is null .
149,826
public AsciiTable setHtmlElementTranslator ( HtmlElementTranslator htmlElementTranslator ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setHtmlElementTranslator ( htmlElementTranslator ) ; } } return this ; }
Sets the HTML entity translator for all cells in the table . It will also remove any other translator set . Nothing will happen if the argument is null .
149,827
public AsciiTable setCharTranslator ( CharacterTranslator charTranslator ) { for ( AT_Row row : this . rows ) { if ( row . getType ( ) == TableRowType . CONTENT ) { row . setCharTranslator ( charTranslator ) ; } } return this ; }
Sets the character translator for all cells in the table . It will also remove any other translator set . Nothing will happen if the argument is null .
149,828
public static String base64Encode ( byte [ ] bytes ) { if ( bytes == null ) { throw new IllegalArgumentException ( "Input bytes must not be null." ) ; } if ( bytes . length >= BASE64_UPPER_BOUND ) { throw new IllegalArgumentException ( "Input bytes length must not exceed " + BASE64_UPPER_BOUND ) ; } int triples = bytes...
Base64 encodes a byte array .
149,829
static String md5 ( String input ) { if ( input == null || input . length ( ) == 0 ) { throw new IllegalArgumentException ( "Input string must not be blank." ) ; } try { MessageDigest algorithm = MessageDigest . getInstance ( "MD5" ) ; algorithm . reset ( ) ; algorithm . update ( input . getBytes ( ) ) ; byte [ ] messa...
Create an MD5 hash of a string .
149,830
static byte [ ] hmacSha1 ( StringBuilder message , String key ) { try { Mac mac = Mac . getInstance ( "HmacSHA1" ) ; mac . init ( new SecretKeySpec ( key . getBytes ( ) , "HmacSHA1" ) ) ; return mac . doFinal ( message . toString ( ) . getBytes ( ) ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Encrypt a string with HMAC - SHA1 using the specified key .
149,831
@ SuppressWarnings ( "InsecureCryptoUsage" ) static byte [ ] aes128Encrypt ( StringBuilder message , String key ) { try { key = normalizeString ( key , 16 ) ; rightPadString ( message , '{' , 16 ) ; Cipher cipher = Cipher . getInstance ( "AES/ECB/NoPadding" ) ; cipher . init ( Cipher . ENCRYPT_MODE , new SecretKeySpec ...
Encrypt a string with AES - 128 using the specified key .
149,832
public static Thumbor create ( String host , String key ) { if ( key == null || key . length ( ) == 0 ) { throw new IllegalArgumentException ( "Key must not be blank." ) ; } return new Thumbor ( host , key ) ; }
Create a new instance for the specified host and encryption key .
149,833
public ThumborUrlBuilder buildImage ( String image ) { if ( image == null || image . length ( ) == 0 ) { throw new IllegalArgumentException ( "Image must not be blank." ) ; } return new ThumborUrlBuilder ( host , key , image ) ; }
Begin building a url for this host with the specified image .
149,834
public ThumborUrlBuilder resize ( int width , int height ) { if ( width < 0 && width != ORIGINAL_SIZE ) { throw new IllegalArgumentException ( "Width must be a positive number." ) ; } if ( height < 0 && height != ORIGINAL_SIZE ) { throw new IllegalArgumentException ( "Height must be a positive number." ) ; } if ( width...
Resize picture to desired size .
149,835
public ThumborUrlBuilder crop ( int top , int left , int bottom , int right ) { if ( top < 0 ) { throw new IllegalArgumentException ( "Top must be greater or equal to zero." ) ; } if ( left < 0 ) { throw new IllegalArgumentException ( "Left must be greater or equal to zero." ) ; } if ( bottom < 1 || bottom <= top ) { t...
Crop the image between two points .
149,836
public ThumborUrlBuilder align ( VerticalAlign valign , HorizontalAlign halign ) { return align ( valign ) . align ( halign ) ; }
Set the horizontal and vertical alignment for the image when image gets cropped by resizing .
149,837
public ThumborUrlBuilder trim ( TrimPixelColor value , int colorTolerance ) { if ( colorTolerance < 0 || colorTolerance > 442 ) { throw new IllegalArgumentException ( "Color tolerance must be between 0 and 442." ) ; } if ( colorTolerance > 0 && value == null ) { throw new IllegalArgumentException ( "Trim pixel color va...
Removing surrounding space in image . Get trim color from specified pixel .
149,838
StringBuilder assembleConfig ( boolean meta ) { StringBuilder builder = new StringBuilder ( ) ; if ( meta ) { builder . append ( PREFIX_META ) ; } if ( isTrim ) { builder . append ( PART_TRIM ) ; if ( trimPixelColor != null ) { builder . append ( ":" ) . append ( trimPixelColor . value ) ; if ( trimColorTolerance > 0 )...
Assemble the configuration section of the URL .
149,839
public static String rgb ( int r , int g , int b ) { if ( r < - 100 || r > 100 ) { throw new IllegalArgumentException ( "Red value must be between -100 and 100, inclusive." ) ; } if ( g < - 100 || g > 100 ) { throw new IllegalArgumentException ( "Green value must be between -100 and 100, inclusive." ) ; } if ( b < - 10...
This filter changes the amount of color in each of the three channels .
149,840
public static String roundCorner ( int radiusInner , int radiusOuter , int color ) { if ( radiusInner < 1 ) { throw new IllegalArgumentException ( "Radius must be greater than zero." ) ; } if ( radiusOuter < 0 ) { throw new IllegalArgumentException ( "Outer radius must be greater than or equal to zero." ) ; } StringBui...
This filter adds rounded corners to the image using the specified color as the background .
149,841
public static String fill ( int color ) { final String colorCode = Integer . toHexString ( color & 0xFFFFFF ) ; return FILTER_FILL + "(" + colorCode + ")" ; }
This filter permit to return an image sized exactly as requested wherever is its ratio by filling with chosen color the missing parts . Usually used with fit - in or adaptive - fit - in
149,842
public static String format ( ImageFormat format ) { if ( format == null ) { throw new IllegalArgumentException ( "You must specify an image format." ) ; } return FILTER_FORMAT + "(" + format . value + ")" ; }
Specify the output format of the image .
149,843
public static String frame ( String imageUrl ) { if ( imageUrl == null || imageUrl . length ( ) == 0 ) { throw new IllegalArgumentException ( "Image URL must not be blank." ) ; } return FILTER_FRAME + "(" + imageUrl + ")" ; }
This filter uses a 9 - patch to overlay the image .
149,844
public static String blur ( int radius , int sigma ) { if ( radius < 1 ) { throw new IllegalArgumentException ( "Radius must be greater than zero." ) ; } if ( radius > 150 ) { throw new IllegalArgumentException ( "Radius must be lower or equal than 150." ) ; } if ( sigma < 0 ) { throw new IllegalArgumentException ( "Si...
This filter adds a blur effect to the image using the specified radius and sigma .
149,845
public boolean start ( SensorManager sensorManager ) { if ( accelerometer != null ) { return true ; } accelerometer = sensorManager . getDefaultSensor ( Sensor . TYPE_ACCELEROMETER ) ; if ( accelerometer != null ) { this . sensorManager = sensorManager ; sensorManager . registerListener ( this , accelerometer , SensorM...
Starts listening for shakes on devices with appropriate hardware .
149,846
public void stop ( ) { if ( accelerometer != null ) { queue . clear ( ) ; sensorManager . unregisterListener ( this , accelerometer ) ; sensorManager = null ; accelerometer = null ; } }
Stops listening . Safe to call when already stopped . Ignored on devices without appropriate hardware .
149,847
public ItemRequest < Task > findById ( String task ) { String path = String . format ( "/tasks/%s" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the complete task record for a single task .
149,848
public ItemRequest < Task > update ( String task ) { String path = String . format ( "/tasks/%s" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "PUT" ) ; }
A specific existing task can be updated by making a PUT request on the URL for that task . Only the fields provided in the data block will be updated ; any unspecified fields will remain unchanged .
149,849
public ItemRequest < Task > delete ( String task ) { String path = String . format ( "/tasks/%s" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "DELETE" ) ; }
A specific existing task can be deleted by making a DELETE request on the URL for that task . Deleted tasks go into the trash of the user making the delete request . Tasks can be recovered from the trash within a period of 30 days ; afterward they are completely removed from the system .
149,850
public CollectionRequest < Task > findByProject ( String projectId ) { String path = String . format ( "/projects/%s/tasks" , projectId ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the compact task records for all tasks within the given project ordered by their priority within the project .
149,851
public CollectionRequest < Task > findByTag ( String tag ) { String path = String . format ( "/tags/%s/tasks" , tag ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the compact task records for all tasks with the given tag .
149,852
public CollectionRequest < Task > getTasksWithTag ( String tag ) { String path = String . format ( "/tags/%s/tasks" , tag ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the compact task records for all tasks with the given tag . Tasks can have more than one tag at a time .
149,853
public ItemRequest < Task > dependencies ( String task ) { String path = String . format ( "/tasks/%s/dependencies" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the compact representations of all of the dependencies of a task .
149,854
public ItemRequest < Task > dependents ( String task ) { String path = String . format ( "/tasks/%s/dependents" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns the compact representations of all of the dependents of a task .
149,855
public ItemRequest < Task > removeDependencies ( String task ) { String path = String . format ( "/tasks/%s/removeDependencies" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Unlinks a set of dependencies from this task .
149,856
public ItemRequest < Task > removeDependents ( String task ) { String path = String . format ( "/tasks/%s/removeDependents" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Unlinks a set of dependents from this task .
149,857
public ItemRequest < Task > addFollowers ( String task ) { String path = String . format ( "/tasks/%s/addFollowers" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Adds each of the specified followers to the task if they are not already following . Returns the complete updated record for the affected task .
149,858
public ItemRequest < Task > removeFollowers ( String task ) { String path = String . format ( "/tasks/%s/removeFollowers" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Removes each of the specified followers from the task if they are following . Returns the complete updated record for the affected task .
149,859
public CollectionRequest < Task > projects ( String task ) { String path = String . format ( "/tasks/%s/projects" , task ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns a compact representation of all of the projects the task is in .
149,860
public ItemRequest < Task > addProject ( String task ) { String path = String . format ( "/tasks/%s/addProject" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Adds the task to the specified project in the optional location specified . If no location arguments are given the task will be added to the end of the project .
149,861
public ItemRequest < Task > removeProject ( String task ) { String path = String . format ( "/tasks/%s/removeProject" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Removes the task from the specified project . The task will still exist in the system but it will not be in the project anymore .
149,862
public CollectionRequest < Task > tags ( String task ) { String path = String . format ( "/tasks/%s/tags" , task ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns a compact representation of all of the tags the task has .
149,863
public ItemRequest < Task > addTag ( String task ) { String path = String . format ( "/tasks/%s/addTag" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Adds a tag to a task . Returns an empty data block .
149,864
public ItemRequest < Task > removeTag ( String task ) { String path = String . format ( "/tasks/%s/removeTag" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Removes a tag from the task . Returns an empty data block .
149,865
public CollectionRequest < Task > subtasks ( String task ) { String path = String . format ( "/tasks/%s/subtasks" , task ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns a compact representation of all of the subtasks of a task .
149,866
public ItemRequest < Task > addSubtask ( String task ) { String path = String . format ( "/tasks/%s/subtasks" , task ) ; return new ItemRequest < Task > ( this , Task . class , path , "POST" ) ; }
Creates a new subtask and adds it to the parent task . Returns the full record for the newly created subtask .
149,867
public CollectionRequest < Task > stories ( String task ) { String path = String . format ( "/tasks/%s/stories" , task ) ; return new CollectionRequest < Task > ( this , Task . class , path , "GET" ) ; }
Returns a compact representation of all of the stories on the task .
149,868
public ItemRequest < Tag > createInWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/tags" , workspace ) ; return new ItemRequest < Tag > ( this , Tag . class , path , "POST" ) ; }
Creates a new tag in a workspace or organization .
149,869
public ItemRequest < Tag > findById ( String tag ) { String path = String . format ( "/tags/%s" , tag ) ; return new ItemRequest < Tag > ( this , Tag . class , path , "GET" ) ; }
Returns the complete tag record for a single tag .
149,870
public ItemRequest < Tag > update ( String tag ) { String path = String . format ( "/tags/%s" , tag ) ; return new ItemRequest < Tag > ( this , Tag . class , path , "PUT" ) ; }
Updates the properties of a tag . Only the fields provided in the data block will be updated ; any unspecified fields will remain unchanged .
149,871
public ItemRequest < Tag > delete ( String tag ) { String path = String . format ( "/tags/%s" , tag ) ; return new ItemRequest < Tag > ( this , Tag . class , path , "DELETE" ) ; }
A specific existing tag can be deleted by making a DELETE request on the URL for that tag .
149,872
public CollectionRequest < Tag > findByWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/tags" , workspace ) ; return new CollectionRequest < Tag > ( this , Tag . class , path , "GET" ) ; }
Returns the compact tag records for all tags in the workspace .
149,873
public ItemRequest < Project > createInWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/projects" , workspace ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
If the workspace for your project _is_ an organization you must also supply a team to share the project with .
149,874
public ItemRequest < Project > createInTeam ( String team ) { String path = String . format ( "/teams/%s/projects" , team ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Creates a project shared with the given team .
149,875
public ItemRequest < Project > findById ( String project ) { String path = String . format ( "/projects/%s" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "GET" ) ; }
Returns the complete project record for a single project .
149,876
public ItemRequest < Project > update ( String project ) { String path = String . format ( "/projects/%s" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "PUT" ) ; }
A specific existing project can be updated by making a PUT request on the URL for that project . Only the fields provided in the data block will be updated ; any unspecified fields will remain unchanged .
149,877
public ItemRequest < Project > delete ( String project ) { String path = String . format ( "/projects/%s" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "DELETE" ) ; }
A specific existing project can be deleted by making a DELETE request on the URL for that project .
149,878
public CollectionRequest < Project > findByWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/projects" , workspace ) ; return new CollectionRequest < Project > ( this , Project . class , path , "GET" ) ; }
Returns the compact project records for all projects in the workspace .
149,879
public CollectionRequest < Project > findByTeam ( String team ) { String path = String . format ( "/teams/%s/projects" , team ) ; return new CollectionRequest < Project > ( this , Project . class , path , "GET" ) ; }
Returns the compact project records for all projects in the team .
149,880
public CollectionRequest < Project > tasks ( String project ) { String path = String . format ( "/projects/%s/tasks" , project ) ; return new CollectionRequest < Project > ( this , Project . class , path , "GET" ) ; }
Returns the compact task records for all tasks within the given project ordered by their priority within the project . Tasks can exist in more than one project at a time .
149,881
public ItemRequest < Project > addFollowers ( String project ) { String path = String . format ( "/projects/%s/addFollowers" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Adds the specified list of users as followers to the project . Followers are a subset of members therefore if the users are not already members of the project they will also become members as a result of this operation . Returns the updated project record .
149,882
public ItemRequest < Project > removeFollowers ( String project ) { String path = String . format ( "/projects/%s/removeFollowers" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Removes the specified list of users from following the project this will not affect project membership status . Returns the updated project record .
149,883
public ItemRequest < Project > addMembers ( String project ) { String path = String . format ( "/projects/%s/addMembers" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Adds the specified list of users as members of the project . Returns the updated project record .
149,884
public ItemRequest < Project > removeMembers ( String project ) { String path = String . format ( "/projects/%s/removeMembers" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Removes the specified list of members from the project . Returns the updated project record .
149,885
public ItemRequest < Project > addCustomFieldSetting ( String project ) { String path = String . format ( "/projects/%s/addCustomFieldSetting" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Create a new custom field setting on the project .
149,886
public ItemRequest < Project > removeCustomFieldSetting ( String project ) { String path = String . format ( "/projects/%s/removeCustomFieldSetting" , project ) ; return new ItemRequest < Project > ( this , Project . class , path , "POST" ) ; }
Remove a custom field setting on the project .
149,887
private void retrieveNextPage ( ) { if ( this . pageSize < Long . MAX_VALUE || this . itemLimit < Long . MAX_VALUE ) { this . request . query ( "limit" , Math . min ( this . pageSize , this . itemLimit - this . count ) ) ; } else { this . request . query ( "limit" , null ) ; } ResultBodyCollection < T > page = null ; t...
Retrieve the next page and store the continuation token the new data and any IOException that may occur .
149,888
public ItemRequest < User > findById ( String user ) { String path = String . format ( "/users/%s" , user ) ; return new ItemRequest < User > ( this , User . class , path , "GET" ) ; }
Returns the full user record for the single user with the provided ID .
149,889
public CollectionRequest < User > findByWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/users" , workspace ) ; return new CollectionRequest < User > ( this , User . class , path , "GET" ) ; }
Returns the user records for all users in the specified workspace or organization .
149,890
public ItemRequest < CustomField > findById ( String customField ) { String path = String . format ( "/custom_fields/%s" , customField ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "GET" ) ; }
Returns the complete definition of a custom field s metadata .
149,891
public CollectionRequest < CustomField > findByWorkspace ( String workspace ) { String path = String . format ( "/workspaces/%s/custom_fields" , workspace ) ; return new CollectionRequest < CustomField > ( this , CustomField . class , path , "GET" ) ; }
Returns a list of the compact representation of all of the custom fields in a workspace .
149,892
public ItemRequest < CustomField > update ( String customField ) { String path = String . format ( "/custom_fields/%s" , customField ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "PUT" ) ; }
A specific existing custom field can be updated by making a PUT request on the URL for that custom field . Only the fields provided in the data block will be updated ; any unspecified fields will remain unchanged
149,893
public ItemRequest < CustomField > delete ( String customField ) { String path = String . format ( "/custom_fields/%s" , customField ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "DELETE" ) ; }
A specific existing custom field can be deleted by making a DELETE request on the URL for that custom field .
149,894
public ItemRequest < CustomField > updateEnumOption ( String enumOption ) { String path = String . format ( "/enum_options/%s" , enumOption ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "PUT" ) ; }
Updates an existing enum option . Enum custom fields require at least one enabled enum option .
149,895
public ItemRequest < CustomField > insertEnumOption ( String customField ) { String path = String . format ( "/custom_fields/%s/enum_options/insert" , customField ) ; return new ItemRequest < CustomField > ( this , CustomField . class , path , "POST" ) ; }
Moves a particular enum option to be either before or after another specified enum option in the custom field .
149,896
public ItemRequest < ProjectStatus > createInProject ( String project ) { String path = String . format ( "/projects/%s/project_statuses" , project ) ; return new ItemRequest < ProjectStatus > ( this , ProjectStatus . class , path , "POST" ) ; }
Creates a new status update on the project .
149,897
public CollectionRequest < ProjectStatus > findByProject ( String project ) { String path = String . format ( "/projects/%s/project_statuses" , project ) ; return new CollectionRequest < ProjectStatus > ( this , ProjectStatus . class , path , "GET" ) ; }
Returns the compact project status update records for all updates on the project .
149,898
public ItemRequest < ProjectStatus > findById ( String projectStatus ) { String path = String . format ( "/project_statuses/%s" , projectStatus ) ; return new ItemRequest < ProjectStatus > ( this , ProjectStatus . class , path , "GET" ) ; }
Returns the complete record for a single status update .
149,899
public ItemRequest < ProjectStatus > delete ( String projectStatus ) { String path = String . format ( "/project_statuses/%s" , projectStatus ) ; return new ItemRequest < ProjectStatus > ( this , ProjectStatus . class , path , "DELETE" ) ; }
Deletes a specific existing project status update .