id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
115,000 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.followPlaylist | public FollowPlaylistRequest.Builder followPlaylist(String owner_id, String playlist_id, boolean public_) {
return new FollowPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.owner_id(owner_id)
.playlist_id(playlist_id)
.public_(publi... | java | public FollowPlaylistRequest.Builder followPlaylist(String owner_id, String playlist_id, boolean public_) {
return new FollowPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.owner_id(owner_id)
.playlist_id(playlist_id)
.public_(publi... | [
"public",
"FollowPlaylistRequest",
".",
"Builder",
"followPlaylist",
"(",
"String",
"owner_id",
",",
"String",
"playlist_id",
",",
"boolean",
"public_",
")",
"{",
"return",
"new",
"FollowPlaylistRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
... | Add the current user as a follower of a playlist.
@param owner_id The Spotify user ID of the person who owns the playlist.
@param playlist_id The Spotify ID of the playlist. Any playlist can be followed, regardless of its
public/private status, as long as you know its playlist ID.
@param public_ Default: true. ... | [
"Add",
"the",
"current",
"user",
"as",
"a",
"follower",
"of",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L681-L687 |
115,001 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.unfollowArtistsOrUsers | public UnfollowArtistsOrUsersRequest.Builder unfollowArtistsOrUsers(ModelObjectType type, String[] ids) {
return new UnfollowArtistsOrUsersRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.type(type)
.ids(concat(ids, ','));
} | java | public UnfollowArtistsOrUsersRequest.Builder unfollowArtistsOrUsers(ModelObjectType type, String[] ids) {
return new UnfollowArtistsOrUsersRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.type(type)
.ids(concat(ids, ','));
} | [
"public",
"UnfollowArtistsOrUsersRequest",
".",
"Builder",
"unfollowArtistsOrUsers",
"(",
"ModelObjectType",
"type",
",",
"String",
"[",
"]",
"ids",
")",
"{",
"return",
"new",
"UnfollowArtistsOrUsersRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults"... | Remove the current user as a follower of one or more artists or other Spotify users.
@param type The ID type: either artist or user.
@param ids A list of the artist or the user Spotify IDs. Maximum: 50 IDs.
@return A {@link UnfollowArtistsOrUsersRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/us... | [
"Remove",
"the",
"current",
"user",
"as",
"a",
"follower",
"of",
"one",
"or",
"more",
"artists",
"or",
"other",
"Spotify",
"users",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L710-L715 |
115,002 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.unfollowPlaylist | public UnfollowPlaylistRequest.Builder unfollowPlaylist(String owner_id, String playlist_id) {
return new UnfollowPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.owner_id(owner_id)
.playlist_id(playlist_id);
} | java | public UnfollowPlaylistRequest.Builder unfollowPlaylist(String owner_id, String playlist_id) {
return new UnfollowPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.owner_id(owner_id)
.playlist_id(playlist_id);
} | [
"public",
"UnfollowPlaylistRequest",
".",
"Builder",
"unfollowPlaylist",
"(",
"String",
"owner_id",
",",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"UnfollowPlaylistRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
"... | Remove the current user as a follower of a playlist.
@param owner_id The owners username.
@param playlist_id The playlist's ID.
@return An {@link UnfollowPlaylistRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Remove",
"the",
"current",
"user",
"as",
"a",
"follower",
"of",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L725-L730 |
115,003 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersSavedTracks | public GetUsersSavedTracksRequest.Builder getUsersSavedTracks() {
return new GetUsersSavedTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetUsersSavedTracksRequest.Builder getUsersSavedTracks() {
return new GetUsersSavedTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetUsersSavedTracksRequest",
".",
"Builder",
"getUsersSavedTracks",
"(",
")",
"{",
"return",
"new",
"GetUsersSavedTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
"... | Get an users "Your Music" tracks.
@return A {@link GetUsersSavedTracksRequest.Builder}. | [
"Get",
"an",
"users",
"Your",
"Music",
"tracks",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L772-L775 |
115,004 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.removeAlbumsForCurrentUser | public RemoveAlbumsForCurrentUserRequest.Builder removeAlbumsForCurrentUser(String... ids) {
return new RemoveAlbumsForCurrentUserRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | java | public RemoveAlbumsForCurrentUserRequest.Builder removeAlbumsForCurrentUser(String... ids) {
return new RemoveAlbumsForCurrentUserRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | [
"public",
"RemoveAlbumsForCurrentUserRequest",
".",
"Builder",
"removeAlbumsForCurrentUser",
"(",
"String",
"...",
"ids",
")",
"{",
"return",
"new",
"RemoveAlbumsForCurrentUserRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
","... | Remove one or more albums from the current users "Your Music" library.
@param ids A list of the Spotify IDs. Maximum: 50 IDs.
@return A {@link RemoveAlbumsForCurrentUserRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Remove",
"one",
"or",
"more",
"albums",
"from",
"the",
"current",
"users",
"Your",
"Music",
"library",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L784-L788 |
115,005 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.removeUsersSavedTracks | public RemoveUsersSavedTracksRequest.Builder removeUsersSavedTracks(String... ids) {
return new RemoveUsersSavedTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | java | public RemoveUsersSavedTracksRequest.Builder removeUsersSavedTracks(String... ids) {
return new RemoveUsersSavedTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | [
"public",
"RemoveUsersSavedTracksRequest",
".",
"Builder",
"removeUsersSavedTracks",
"(",
"String",
"...",
"ids",
")",
"{",
"return",
"new",
"RemoveUsersSavedTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme"... | Remove a track if saved to the users "Your Music" library.
@param ids The track IDs to remove from the users Your Music library. Maximum: 50 IDs.
@return A {@link RemoveUsersSavedTracksRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Remove",
"a",
"track",
"if",
"saved",
"to",
"the",
"users",
"Your",
"Music",
"library",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L797-L801 |
115,006 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersTopArtists | public GetUsersTopArtistsRequest.Builder getUsersTopArtists() {
return new GetUsersTopArtistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetUsersTopArtistsRequest.Builder getUsersTopArtists() {
return new GetUsersTopArtistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetUsersTopArtistsRequest",
".",
"Builder",
"getUsersTopArtists",
"(",
")",
"{",
"return",
"new",
"GetUsersTopArtistsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")",... | Get the current users top artists based on calculated affinity.
@return A {@link GetUsersTopArtistsRequest.Builder}.
@see #getUsersTopArtistsAndTracks(ModelObjectType) | [
"Get",
"the",
"current",
"users",
"top",
"artists",
"based",
"on",
"calculated",
"affinity",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L880-L883 |
115,007 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersTopTracks | public GetUsersTopTracksRequest.Builder getUsersTopTracks() {
return new GetUsersTopTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetUsersTopTracksRequest.Builder getUsersTopTracks() {
return new GetUsersTopTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetUsersTopTracksRequest",
".",
"Builder",
"getUsersTopTracks",
"(",
")",
"{",
"return",
"new",
"GetUsersTopTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")",
... | Get the current users top tracks based on calculated affinity.
@return A {@link GetUsersTopTracksRequest.Builder}.
@see #getUsersTopArtistsAndTracks(ModelObjectType) | [
"Get",
"the",
"current",
"users",
"top",
"tracks",
"based",
"on",
"calculated",
"affinity",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L891-L894 |
115,008 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getInformationAboutUsersCurrentPlayback | public GetInformationAboutUsersCurrentPlaybackRequest.Builder getInformationAboutUsersCurrentPlayback() {
return new GetInformationAboutUsersCurrentPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetInformationAboutUsersCurrentPlaybackRequest.Builder getInformationAboutUsersCurrentPlayback() {
return new GetInformationAboutUsersCurrentPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetInformationAboutUsersCurrentPlaybackRequest",
".",
"Builder",
"getInformationAboutUsersCurrentPlayback",
"(",
")",
"{",
"return",
"new",
"GetInformationAboutUsersCurrentPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManage... | Get information about the users current playback state, including track, track progress, and active device.
@return A {@link GetInformationAboutUsersCurrentPlaybackRequest.Builder}. | [
"Get",
"information",
"about",
"the",
"users",
"current",
"playback",
"state",
"including",
"track",
"track",
"progress",
"and",
"active",
"device",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L901-L904 |
115,009 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersAvailableDevices | public GetUsersAvailableDevicesRequest.Builder getUsersAvailableDevices() {
return new GetUsersAvailableDevicesRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetUsersAvailableDevicesRequest.Builder getUsersAvailableDevices() {
return new GetUsersAvailableDevicesRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetUsersAvailableDevicesRequest",
".",
"Builder",
"getUsersAvailableDevices",
"(",
")",
"{",
"return",
"new",
"GetUsersAvailableDevicesRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
","... | Get information about an users available devices.
@return A {@link GetUsersAvailableDevicesRequest.Builder}. | [
"Get",
"information",
"about",
"an",
"users",
"available",
"devices",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L927-L930 |
115,010 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersCurrentlyPlayingTrack | public GetUsersCurrentlyPlayingTrackRequest.Builder getUsersCurrentlyPlayingTrack() {
return new GetUsersCurrentlyPlayingTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetUsersCurrentlyPlayingTrackRequest.Builder getUsersCurrentlyPlayingTrack() {
return new GetUsersCurrentlyPlayingTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetUsersCurrentlyPlayingTrackRequest",
".",
"Builder",
"getUsersCurrentlyPlayingTrack",
"(",
")",
"{",
"return",
"new",
"GetUsersCurrentlyPlayingTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
... | Get the object currently being played on the users Spotify account.
@return A {@link GetUsersCurrentlyPlayingTrackRequest.Builder}. | [
"Get",
"the",
"object",
"currently",
"being",
"played",
"on",
"the",
"users",
"Spotify",
"account",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L937-L940 |
115,011 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.pauseUsersPlayback | public PauseUsersPlaybackRequest.Builder pauseUsersPlayback() {
return new PauseUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public PauseUsersPlaybackRequest.Builder pauseUsersPlayback() {
return new PauseUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"PauseUsersPlaybackRequest",
".",
"Builder",
"pauseUsersPlayback",
"(",
")",
"{",
"return",
"new",
"PauseUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")",... | Pause playback on the users account.
@return A {@link PauseUsersPlaybackRequest.Builder}. | [
"Pause",
"playback",
"on",
"the",
"users",
"account",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L947-L950 |
115,012 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.seekToPositionInCurrentlyPlayingTrack | public SeekToPositionInCurrentlyPlayingTrackRequest.Builder seekToPositionInCurrentlyPlayingTrack(int position_ms) {
return new SeekToPositionInCurrentlyPlayingTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.position_ms(position_ms);
} | java | public SeekToPositionInCurrentlyPlayingTrackRequest.Builder seekToPositionInCurrentlyPlayingTrack(int position_ms) {
return new SeekToPositionInCurrentlyPlayingTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.position_ms(position_ms);
} | [
"public",
"SeekToPositionInCurrentlyPlayingTrackRequest",
".",
"Builder",
"seekToPositionInCurrentlyPlayingTrack",
"(",
"int",
"position_ms",
")",
"{",
"return",
"new",
"SeekToPositionInCurrentlyPlayingTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
... | Seeks to the given position in the users currently playing track.
@param position_ms The position in milliseconds to seek to. Must be a positive number. Passing in a position that
is greater than the length of the track will cause the player to start playing the next song.
@return A {@link SeekToPositionInCurrentlyPla... | [
"Seeks",
"to",
"the",
"given",
"position",
"in",
"the",
"users",
"currently",
"playing",
"track",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L959-L963 |
115,013 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.setRepeatModeOnUsersPlayback | public SetRepeatModeOnUsersPlaybackRequest.Builder setRepeatModeOnUsersPlayback(String state) {
return new SetRepeatModeOnUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.state(state);
} | java | public SetRepeatModeOnUsersPlaybackRequest.Builder setRepeatModeOnUsersPlayback(String state) {
return new SetRepeatModeOnUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.state(state);
} | [
"public",
"SetRepeatModeOnUsersPlaybackRequest",
".",
"Builder",
"setRepeatModeOnUsersPlayback",
"(",
"String",
"state",
")",
"{",
"return",
"new",
"SetRepeatModeOnUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",... | Set the repeat mode for the users playback. Options are repeat-track, repeat-context, and off.
@param state track, context or off. track will repeat the current track. context will repeat the current
context. off will turn repeat off.
@return A {@link SetRepeatModeOnUsersPlaybackRequest.Builder}. | [
"Set",
"the",
"repeat",
"mode",
"for",
"the",
"users",
"playback",
".",
"Options",
"are",
"repeat",
"-",
"track",
"repeat",
"-",
"context",
"and",
"off",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L972-L976 |
115,014 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.setVolumeForUsersPlayback | public SetVolumeForUsersPlaybackRequest.Builder setVolumeForUsersPlayback(int volume_percent) {
return new SetVolumeForUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.volume_percent(volume_percent);
} | java | public SetVolumeForUsersPlaybackRequest.Builder setVolumeForUsersPlayback(int volume_percent) {
return new SetVolumeForUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.volume_percent(volume_percent);
} | [
"public",
"SetVolumeForUsersPlaybackRequest",
".",
"Builder",
"setVolumeForUsersPlayback",
"(",
"int",
"volume_percent",
")",
"{",
"return",
"new",
"SetVolumeForUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
... | Set the volume for the users current playback device.
@param volume_percent Integer. The volume to set. Must be a value from 0 to 100 inclusive.
@return A {@link SetVolumeForUsersPlaybackRequest.Builder}. | [
"Set",
"the",
"volume",
"for",
"the",
"users",
"current",
"playback",
"device",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L984-L988 |
115,015 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.skipUsersPlaybackToNextTrack | public SkipUsersPlaybackToNextTrackRequest.Builder skipUsersPlaybackToNextTrack() {
return new SkipUsersPlaybackToNextTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public SkipUsersPlaybackToNextTrackRequest.Builder skipUsersPlaybackToNextTrack() {
return new SkipUsersPlaybackToNextTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"SkipUsersPlaybackToNextTrackRequest",
".",
"Builder",
"skipUsersPlaybackToNextTrack",
"(",
")",
"{",
"return",
"new",
"SkipUsersPlaybackToNextTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"... | Skips to next track in the users queue.
@return A {@link SkipUsersPlaybackToNextTrackRequest.Builder}. | [
"Skips",
"to",
"next",
"track",
"in",
"the",
"users",
"queue",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L995-L998 |
115,016 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.startResumeUsersPlayback | public StartResumeUsersPlaybackRequest.Builder startResumeUsersPlayback() {
return new StartResumeUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public StartResumeUsersPlaybackRequest.Builder startResumeUsersPlayback() {
return new StartResumeUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"StartResumeUsersPlaybackRequest",
".",
"Builder",
"startResumeUsersPlayback",
"(",
")",
"{",
"return",
"new",
"StartResumeUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
","... | Start a new context or resume current playback on the users active device.
@return A {@link StartResumeUsersPlaybackRequest.Builder}. | [
"Start",
"a",
"new",
"context",
"or",
"resume",
"current",
"playback",
"on",
"the",
"users",
"active",
"device",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1019-L1022 |
115,017 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.toggleShuffleForUsersPlayback | public ToggleShuffleForUsersPlaybackRequest.Builder toggleShuffleForUsersPlayback(boolean state) {
return new ToggleShuffleForUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.state(state);
} | java | public ToggleShuffleForUsersPlaybackRequest.Builder toggleShuffleForUsersPlayback(boolean state) {
return new ToggleShuffleForUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.state(state);
} | [
"public",
"ToggleShuffleForUsersPlaybackRequest",
".",
"Builder",
"toggleShuffleForUsersPlayback",
"(",
"boolean",
"state",
")",
"{",
"return",
"new",
"ToggleShuffleForUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
... | Toggle shuffle on or off for users playback.
@param state true: Shuffle user's playback. false: Do not shuffle user's playback.
@return A {@link ToggleShuffleForUsersPlaybackRequest.Builder}. | [
"Toggle",
"shuffle",
"on",
"or",
"off",
"for",
"users",
"playback",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1030-L1034 |
115,018 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.transferUsersPlayback | public TransferUsersPlaybackRequest.Builder transferUsersPlayback(JsonArray device_ids) {
return new TransferUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.device_ids(device_ids);
} | java | public TransferUsersPlaybackRequest.Builder transferUsersPlayback(JsonArray device_ids) {
return new TransferUsersPlaybackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.device_ids(device_ids);
} | [
"public",
"TransferUsersPlaybackRequest",
".",
"Builder",
"transferUsersPlayback",
"(",
"JsonArray",
"device_ids",
")",
"{",
"return",
"new",
"TransferUsersPlaybackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
... | Transfer playback to a new device and determine if it should start playing.
@param device_ids A JSON array containing the ID of the device on which playback should be started/transferred.
<br><b>Note:</b> Although an array is accepted, only a single device_id is currently supported.
@return A {@link TransferUsersPlayb... | [
"Transfer",
"playback",
"to",
"a",
"new",
"device",
"and",
"determine",
"if",
"it",
"should",
"start",
"playing",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1043-L1047 |
115,019 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.addTracksToPlaylist | @Deprecated
public AddTracksToPlaylistRequest.Builder addTracksToPlaylist(String user_id, String playlist_id, String[] uris) {
return new AddTracksToPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id)
... | java | @Deprecated
public AddTracksToPlaylistRequest.Builder addTracksToPlaylist(String user_id, String playlist_id, String[] uris) {
return new AddTracksToPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id)
... | [
"@",
"Deprecated",
"public",
"AddTracksToPlaylistRequest",
".",
"Builder",
"addTracksToPlaylist",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
",",
"String",
"[",
"]",
"uris",
")",
"{",
"return",
"new",
"AddTracksToPlaylistRequest",
".",
"Builder",
"(",
... | Add tracks to a playlist.
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The owners username.
@param playlist_id The playlists ID.
@param uris URIs of the tracks to ... | [
"Add",
"tracks",
"to",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1060-L1067 |
115,020 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.changePlaylistsDetails | @Deprecated
public ChangePlaylistsDetailsRequest.Builder changePlaylistsDetails(String user_id, String playlist_id) {
return new ChangePlaylistsDetailsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | java | @Deprecated
public ChangePlaylistsDetailsRequest.Builder changePlaylistsDetails(String user_id, String playlist_id) {
return new ChangePlaylistsDetailsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | [
"@",
"Deprecated",
"public",
"ChangePlaylistsDetailsRequest",
".",
"Builder",
"changePlaylistsDetails",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"ChangePlaylistsDetailsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"s... | Update a playlists properties.
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The owners username.
@param playlist_id The playlists ID.
@return A {@link ChangePlaylistsDeta... | [
"Update",
"a",
"playlists",
"properties",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1129-L1135 |
115,021 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.createPlaylist | public CreatePlaylistRequest.Builder createPlaylist(String user_id, String name) {
return new CreatePlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.name(name);
} | java | public CreatePlaylistRequest.Builder createPlaylist(String user_id, String name) {
return new CreatePlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.name(name);
} | [
"public",
"CreatePlaylistRequest",
".",
"Builder",
"createPlaylist",
"(",
"String",
"user_id",
",",
"String",
"name",
")",
"{",
"return",
"new",
"CreatePlaylistRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme"... | Create a playlist.
@param user_id The playlists owner.
@param name The name of the playlist.
@return A {@link CreatePlaylistRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Create",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1158-L1163 |
115,022 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getListOfCurrentUsersPlaylists | public GetListOfCurrentUsersPlaylistsRequest.Builder getListOfCurrentUsersPlaylists() {
return new GetListOfCurrentUsersPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | java | public GetListOfCurrentUsersPlaylistsRequest.Builder getListOfCurrentUsersPlaylists() {
return new GetListOfCurrentUsersPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port);
} | [
"public",
"GetListOfCurrentUsersPlaylistsRequest",
".",
"Builder",
"getListOfCurrentUsersPlaylists",
"(",
")",
"{",
"return",
"new",
"GetListOfCurrentUsersPlaylistsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",... | Get a list of the playlists owned or followed by the current Spotify user.
@return A {@link GetListOfCurrentUsersPlaylistsRequest.Builder}. | [
"Get",
"a",
"list",
"of",
"the",
"playlists",
"owned",
"or",
"followed",
"by",
"the",
"current",
"Spotify",
"user",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1170-L1173 |
115,023 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getListOfUsersPlaylists | public GetListOfUsersPlaylistsRequest.Builder getListOfUsersPlaylists(String user_id) {
return new GetListOfUsersPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id);
} | java | public GetListOfUsersPlaylistsRequest.Builder getListOfUsersPlaylists(String user_id) {
return new GetListOfUsersPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id);
} | [
"public",
"GetListOfUsersPlaylistsRequest",
".",
"Builder",
"getListOfUsersPlaylists",
"(",
"String",
"user_id",
")",
"{",
"return",
"new",
"GetListOfUsersPlaylistsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
... | Get an users playlists.
@param user_id A Spotify ID of the user.
@return A {@link GetListOfUsersPlaylistsRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"an",
"users",
"playlists",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1182-L1186 |
115,024 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getPlaylist | @Deprecated
public GetPlaylistRequest.Builder getPlaylist(String user_id, String playlist_id) {
return new GetPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | java | @Deprecated
public GetPlaylistRequest.Builder getPlaylist(String user_id, String playlist_id) {
return new GetPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | [
"@",
"Deprecated",
"public",
"GetPlaylistRequest",
".",
"Builder",
"getPlaylist",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"GetPlaylistRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManage... | Get a playlist.
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The playlists owners username.
@param playlist_id The playlists ID.
@return A {@link GetPlaylistRequest.Build... | [
"Get",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1198-L1204 |
115,025 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getPlaylistCoverImage | @Deprecated
public GetPlaylistCoverImageRequest.Builder getPlaylistCoverImage(String user_id, String playlist_id) {
return new GetPlaylistCoverImageRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | java | @Deprecated
public GetPlaylistCoverImageRequest.Builder getPlaylistCoverImage(String user_id, String playlist_id) {
return new GetPlaylistCoverImageRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_id(playlist_id);
} | [
"@",
"Deprecated",
"public",
"GetPlaylistCoverImageRequest",
".",
"Builder",
"getPlaylistCoverImage",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"GetPlaylistCoverImageRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setD... | Get the image used to represent a specific playlist.
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The users Spotify user ID.
@param playlist_id The Spotify ID for the pla... | [
"Get",
"the",
"image",
"used",
"to",
"represent",
"a",
"specific",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1229-L1235 |
115,026 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getPlaylistsTracks | public GetPlaylistsTracksRequest.Builder getPlaylistsTracks(String playlist_id) {
return new GetPlaylistsTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.playlist_id(playlist_id);
} | java | public GetPlaylistsTracksRequest.Builder getPlaylistsTracks(String playlist_id) {
return new GetPlaylistsTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.playlist_id(playlist_id);
} | [
"public",
"GetPlaylistsTracksRequest",
".",
"Builder",
"getPlaylistsTracks",
"(",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"GetPlaylistsTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"h... | Get a playlists tracks.
@param playlist_id The playlists ID.
@return A {@link GetPlaylistsTracksRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"a",
"playlists",
"tracks",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1275-L1279 |
115,027 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.removeTracksFromPlaylist | @Deprecated
public RemoveTracksFromPlaylistRequest.Builder removeTracksFromPlaylist(
String user_id, String playlist_id, JsonArray tracks) {
return new RemoveTracksFromPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
... | java | @Deprecated
public RemoveTracksFromPlaylistRequest.Builder removeTracksFromPlaylist(
String user_id, String playlist_id, JsonArray tracks) {
return new RemoveTracksFromPlaylistRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
... | [
"@",
"Deprecated",
"public",
"RemoveTracksFromPlaylistRequest",
".",
"Builder",
"removeTracksFromPlaylist",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
",",
"JsonArray",
"tracks",
")",
"{",
"return",
"new",
"RemoveTracksFromPlaylistRequest",
".",
"Builder",
... | Delete tracks from a playlist
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The owners username.
@param playlist_id The playlists ID.
@param tracks URIs of the tracks... | [
"Delete",
"tracks",
"from",
"a",
"playlist"
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1292-L1300 |
115,028 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.replacePlaylistsTracks | public ReplacePlaylistsTracksRequest.Builder replacePlaylistsTracks(String playlist_id, JsonArray uris) {
return new ReplacePlaylistsTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.playlist_id(playlist_id)
.uris(uris);
} | java | public ReplacePlaylistsTracksRequest.Builder replacePlaylistsTracks(String playlist_id, JsonArray uris) {
return new ReplacePlaylistsTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.playlist_id(playlist_id)
.uris(uris);
} | [
"public",
"ReplacePlaylistsTracksRequest",
".",
"Builder",
"replacePlaylistsTracks",
"(",
"String",
"playlist_id",
",",
"JsonArray",
"uris",
")",
"{",
"return",
"new",
"ReplacePlaylistsTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"... | Replace tracks in a playlist.
@param playlist_id The playlists ID.
@param uris URIs of the tracks to add. Maximum: 100 track URIs.
@return A {@link ReplacePlaylistsTracksRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Replace",
"tracks",
"in",
"a",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1430-L1435 |
115,029 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.uploadCustomPlaylistCoverImage | @Deprecated
public UploadCustomPlaylistCoverImageRequest.Builder uploadCustomPlaylistCoverImage(String user_id, String playlist_id) {
return new UploadCustomPlaylistCoverImageRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_... | java | @Deprecated
public UploadCustomPlaylistCoverImageRequest.Builder uploadCustomPlaylistCoverImage(String user_id, String playlist_id) {
return new UploadCustomPlaylistCoverImageRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id)
.playlist_... | [
"@",
"Deprecated",
"public",
"UploadCustomPlaylistCoverImageRequest",
".",
"Builder",
"uploadCustomPlaylistCoverImage",
"(",
"String",
"user_id",
",",
"String",
"playlist_id",
")",
"{",
"return",
"new",
"UploadCustomPlaylistCoverImageRequest",
".",
"Builder",
"(",
"accessTo... | Replace the image used to represent a specific playlist.
@deprecated Playlist IDs are unique for themselves. This parameter is thus no longer used.
(https://developer.spotify.com/community/news/2018/06/12/changes-to-playlist-uris/)
@param user_id The users Spotify user ID.
@param playlist_id The Spotify ID for the... | [
"Replace",
"the",
"image",
"used",
"to",
"represent",
"a",
"specific",
"playlist",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1447-L1453 |
115,030 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.searchItem | public SearchItemRequest.Builder searchItem(String q, String type) {
return new SearchItemRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q)
.type(type);
} | java | public SearchItemRequest.Builder searchItem(String q, String type) {
return new SearchItemRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q)
.type(type);
} | [
"public",
"SearchItemRequest",
".",
"Builder",
"searchItem",
"(",
"String",
"q",
",",
"String",
"type",
")",
"{",
"return",
"new",
"SearchItemRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",... | Get Spotify catalog information about artists, albums, tracks or playlists that match a keyword string.
@param q The search query's keywords (and optional field filters and operators).
@param type A comma-separated list of item types to search across. Valid types are: album, artist, playlist, and
track.
@return A {... | [
"Get",
"Spotify",
"catalog",
"information",
"about",
"artists",
"albums",
"tracks",
"or",
"playlists",
"that",
"match",
"a",
"keyword",
"string",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1476-L1481 |
115,031 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.searchAlbums | public SearchAlbumsRequest.Builder searchAlbums(String q) {
return new SearchAlbumsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | java | public SearchAlbumsRequest.Builder searchAlbums(String q) {
return new SearchAlbumsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | [
"public",
"SearchAlbumsRequest",
".",
"Builder",
"searchAlbums",
"(",
"String",
"q",
")",
"{",
"return",
"new",
"SearchAlbumsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")"... | Get Spotify catalog information about albums that match a keyword string.
@param q The search query's keywords (and optional field filters and operators).
@return A {@link SearchAlbumsRequest.Builder}. | [
"Get",
"Spotify",
"catalog",
"information",
"about",
"albums",
"that",
"match",
"a",
"keyword",
"string",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1489-L1493 |
115,032 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.searchArtists | public SearchArtistsRequest.Builder searchArtists(String q) {
return new SearchArtistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | java | public SearchArtistsRequest.Builder searchArtists(String q) {
return new SearchArtistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | [
"public",
"SearchArtistsRequest",
".",
"Builder",
"searchArtists",
"(",
"String",
"q",
")",
"{",
"return",
"new",
"SearchArtistsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
... | Get Spotify catalog information about artists that match a keyword string.
@param q The search query's keywords (and optional field filters and operators).
@return A {@link SearchArtistsRequest.Builder}. | [
"Get",
"Spotify",
"catalog",
"information",
"about",
"artists",
"that",
"match",
"a",
"keyword",
"string",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1501-L1505 |
115,033 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.searchPlaylists | public SearchPlaylistsRequest.Builder searchPlaylists(String q) {
return new SearchPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | java | public SearchPlaylistsRequest.Builder searchPlaylists(String q) {
return new SearchPlaylistsRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | [
"public",
"SearchPlaylistsRequest",
".",
"Builder",
"searchPlaylists",
"(",
"String",
"q",
")",
"{",
"return",
"new",
"SearchPlaylistsRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"por... | Get Spotify catalog information about playlists that match a keyword string.
@param q The search query's keywords (and optional field filters and operators).
@return A {@link SearchPlaylistsRequest.Builder}. | [
"Get",
"Spotify",
"catalog",
"information",
"about",
"playlists",
"that",
"match",
"a",
"keyword",
"string",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1513-L1517 |
115,034 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.searchTracks | public SearchTracksRequest.Builder searchTracks(String q) {
return new SearchTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | java | public SearchTracksRequest.Builder searchTracks(String q) {
return new SearchTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.q(q);
} | [
"public",
"SearchTracksRequest",
".",
"Builder",
"searchTracks",
"(",
"String",
"q",
")",
"{",
"return",
"new",
"SearchTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")"... | Get Spotify catalog information about tracks that match a keyword string.
@param q The search query's keywords (and optional field filters and operators).
@return A {@link SearchTracksRequest.Builder}. | [
"Get",
"Spotify",
"catalog",
"information",
"about",
"tracks",
"that",
"match",
"a",
"keyword",
"string",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1525-L1529 |
115,035 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getAudioAnalysisForTrack | public GetAudioAnalysisForTrackRequest.Builder getAudioAnalysisForTrack(String id) {
return new GetAudioAnalysisForTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | java | public GetAudioAnalysisForTrackRequest.Builder getAudioAnalysisForTrack(String id) {
return new GetAudioAnalysisForTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | [
"public",
"GetAudioAnalysisForTrackRequest",
".",
"Builder",
"getAudioAnalysisForTrack",
"(",
"String",
"id",
")",
"{",
"return",
"new",
"GetAudioAnalysisForTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
... | Get a detailed audio analysis for a single track identified by its unique Spotify ID.
@param id The Spotify ID for the track.
@return A {@link GetAudioAnalysisForTrackRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"a",
"detailed",
"audio",
"analysis",
"for",
"a",
"single",
"track",
"identified",
"by",
"its",
"unique",
"Spotify",
"ID",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1538-L1542 |
115,036 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getAudioFeaturesForTrack | public GetAudioFeaturesForTrackRequest.Builder getAudioFeaturesForTrack(String id) {
return new GetAudioFeaturesForTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | java | public GetAudioFeaturesForTrackRequest.Builder getAudioFeaturesForTrack(String id) {
return new GetAudioFeaturesForTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | [
"public",
"GetAudioFeaturesForTrackRequest",
".",
"Builder",
"getAudioFeaturesForTrack",
"(",
"String",
"id",
")",
"{",
"return",
"new",
"GetAudioFeaturesForTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
... | Get audio features for a track based on its Spotify ID.
@param id The Spotify ID of the track.
@return A {@link GetAudioFeaturesForTrackRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"audio",
"features",
"for",
"a",
"track",
"based",
"on",
"its",
"Spotify",
"ID",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1551-L1555 |
115,037 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getAudioFeaturesForSeveralTracks | public GetAudioFeaturesForSeveralTracksRequest.Builder getAudioFeaturesForSeveralTracks(String... ids) {
return new GetAudioFeaturesForSeveralTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | java | public GetAudioFeaturesForSeveralTracksRequest.Builder getAudioFeaturesForSeveralTracks(String... ids) {
return new GetAudioFeaturesForSeveralTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | [
"public",
"GetAudioFeaturesForSeveralTracksRequest",
".",
"Builder",
"getAudioFeaturesForSeveralTracks",
"(",
"String",
"...",
"ids",
")",
"{",
"return",
"new",
"GetAudioFeaturesForSeveralTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"h... | Get audio features for multiple tracks based on their Spotify IDs.
@param ids A comma-separated list of the Spotify IDs for the tracks. Maximum: 100 IDs.
@return A {@link GetAudioFeaturesForSeveralTracksRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URL... | [
"Get",
"audio",
"features",
"for",
"multiple",
"tracks",
"based",
"on",
"their",
"Spotify",
"IDs",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1564-L1568 |
115,038 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getSeveralTracks | public GetSeveralTracksRequest.Builder getSeveralTracks(String... ids) {
return new GetSeveralTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | java | public GetSeveralTracksRequest.Builder getSeveralTracks(String... ids) {
return new GetSeveralTracksRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.ids(concat(ids, ','));
} | [
"public",
"GetSeveralTracksRequest",
".",
"Builder",
"getSeveralTracks",
"(",
"String",
"...",
"ids",
")",
"{",
"return",
"new",
"GetSeveralTracksRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",... | Get multiple tracks.
@param ids The Spotify IDs of all tracks you're trying to retrieve. Maximum: 50 IDs.
@return A {@link GetSeveralTracksRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"multiple",
"tracks",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1577-L1581 |
115,039 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getTrack | public GetTrackRequest.Builder getTrack(String id) {
return new GetTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | java | public GetTrackRequest.Builder getTrack(String id) {
return new GetTrackRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.id(id);
} | [
"public",
"GetTrackRequest",
".",
"Builder",
"getTrack",
"(",
"String",
"id",
")",
"{",
"return",
"new",
"GetTrackRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
"port",
")",
".",
... | Get a track.
@param id The Spotify ID of the track.
@return A {@link GetTrackRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"a",
"track",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1590-L1594 |
115,040 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/SpotifyApi.java | SpotifyApi.getUsersProfile | public GetUsersProfileRequest.Builder getUsersProfile(String user_id) {
return new GetUsersProfileRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id);
} | java | public GetUsersProfileRequest.Builder getUsersProfile(String user_id) {
return new GetUsersProfileRequest.Builder(accessToken)
.setDefaults(httpManager, scheme, host, port)
.user_id(user_id);
} | [
"public",
"GetUsersProfileRequest",
".",
"Builder",
"getUsersProfile",
"(",
"String",
"user_id",
")",
"{",
"return",
"new",
"GetUsersProfileRequest",
".",
"Builder",
"(",
"accessToken",
")",
".",
"setDefaults",
"(",
"httpManager",
",",
"scheme",
",",
"host",
",",
... | Get public profile information about a Spotify user.
@param user_id The Spotify ID of the user.
@return A {@link GetUsersProfileRequest.Builder}.
@see <a href="https://developer.spotify.com/web-api/user-guide/#spotify-uris-and-ids">Spotify: URLs & IDs</a> | [
"Get",
"public",
"profile",
"information",
"about",
"a",
"Spotify",
"user",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/SpotifyApi.java#L1613-L1617 |
115,041 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/library/GetCurrentUsersSavedAlbumsRequest.java | GetCurrentUsersSavedAlbumsRequest.execute | @SuppressWarnings("unchecked")
public Paging<SavedAlbum> execute() throws
IOException,
SpotifyWebApiException {
return new SavedAlbum.JsonUtil().createModelObjectPaging(getJson());
} | java | @SuppressWarnings("unchecked")
public Paging<SavedAlbum> execute() throws
IOException,
SpotifyWebApiException {
return new SavedAlbum.JsonUtil().createModelObjectPaging(getJson());
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"SavedAlbum",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"SavedAlbum",
".",
"JsonUtil",
"(",
")",
".",
"createModelObjectPagin... | Get the saved albums of the current user.
@return A {@link SavedAlbum} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"the",
"saved",
"albums",
"of",
"the",
"current",
"user",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/library/GetCurrentUsersSavedAlbumsRequest.java#L32-L37 |
115,042 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/follow/GetUsersFollowedArtistsRequest.java | GetUsersFollowedArtistsRequest.execute | @SuppressWarnings("unchecked")
public PagingCursorbased<Artist> execute() throws
IOException,
SpotifyWebApiException {
return new Artist.JsonUtil().createModelObjectPagingCursorbased(getJson(), "artists");
} | java | @SuppressWarnings("unchecked")
public PagingCursorbased<Artist> execute() throws
IOException,
SpotifyWebApiException {
return new Artist.JsonUtil().createModelObjectPagingCursorbased(getJson(), "artists");
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"PagingCursorbased",
"<",
"Artist",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"Artist",
".",
"JsonUtil",
"(",
")",
".",
"createModelObjectPa... | Get a list of artists the user is following.
@return An {@link Artist} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"a",
"list",
"of",
"artists",
"the",
"user",
"is",
"following",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/follow/GetUsersFollowedArtistsRequest.java#L32-L37 |
115,043 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchPlaylistsRequest.java | SearchPlaylistsRequest.execute | @SuppressWarnings("unchecked")
public Paging<PlaylistSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new PlaylistSimplified.JsonUtil().createModelObjectPaging(getJson(), "playlists");
} | java | @SuppressWarnings("unchecked")
public Paging<PlaylistSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new PlaylistSimplified.JsonUtil().createModelObjectPaging(getJson(), "playlists");
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"PlaylistSimplified",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"PlaylistSimplified",
".",
"JsonUtil",
"(",
")",
".",
"create... | Search for playlists.
@return A {@link PlaylistSimplified} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Search",
"for",
"playlists",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchPlaylistsRequest.java#L32-L37 |
115,044 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/browse/miscellaneous/GetAvailableGenreSeedsRequest.java | GetAvailableGenreSeedsRequest.execute | public String[] execute() throws
IOException,
SpotifyWebApiException {
List<String> genres = new Gson().fromJson(
new JsonParser()
.parse(getJson())
.getAsJsonObject()
.get("genres")
.getAsJsonArray(),
... | java | public String[] execute() throws
IOException,
SpotifyWebApiException {
List<String> genres = new Gson().fromJson(
new JsonParser()
.parse(getJson())
.getAsJsonObject()
.get("genres")
.getAsJsonArray(),
... | [
"public",
"String",
"[",
"]",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"List",
"<",
"String",
">",
"genres",
"=",
"new",
"Gson",
"(",
")",
".",
"fromJson",
"(",
"new",
"JsonParser",
"(",
")",
".",
"parse",
"(",
... | Get all available genre seeds.
@return All available genre seeds.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"all",
"available",
"genre",
"seeds",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/browse/miscellaneous/GetAvailableGenreSeedsRequest.java#L33-L47 |
115,045 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/player/GetCurrentUsersRecentlyPlayedTracksRequest.java | GetCurrentUsersRecentlyPlayedTracksRequest.execute | @SuppressWarnings("unchecked")
public PagingCursorbased<PlayHistory> execute() throws
IOException,
SpotifyWebApiException {
return new PlayHistory.JsonUtil().createModelObjectPagingCursorbased(getJson());
} | java | @SuppressWarnings("unchecked")
public PagingCursorbased<PlayHistory> execute() throws
IOException,
SpotifyWebApiException {
return new PlayHistory.JsonUtil().createModelObjectPagingCursorbased(getJson());
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"PagingCursorbased",
"<",
"PlayHistory",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"PlayHistory",
".",
"JsonUtil",
"(",
")",
".",
"createMod... | Get an user's recently played tracks.
@return An user's recently played tracks.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"an",
"user",
"s",
"recently",
"played",
"tracks",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/player/GetCurrentUsersRecentlyPlayedTracksRequest.java#L44-L49 |
115,046 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/personalization/simplified/GetUsersTopTracksRequest.java | GetUsersTopTracksRequest.execute | @SuppressWarnings("unchecked")
public Paging<Track> execute() throws
IOException,
SpotifyWebApiException {
return new Track.JsonUtil().createModelObjectPaging(getJson());
} | java | @SuppressWarnings("unchecked")
public Paging<Track> execute() throws
IOException,
SpotifyWebApiException {
return new Track.JsonUtil().createModelObjectPaging(getJson());
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"Track",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"Track",
".",
"JsonUtil",
"(",
")",
".",
"createModelObjectPaging",
"(",... | Get an user's top tracks.
@return An user's top tracks.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"an",
"user",
"s",
"top",
"tracks",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/personalization/simplified/GetUsersTopTracksRequest.java#L41-L46 |
115,047 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchAlbumsRequest.java | SearchAlbumsRequest.execute | @SuppressWarnings("unchecked")
public Paging<AlbumSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new AlbumSimplified.JsonUtil().createModelObjectPaging(getJson(), "albums");
} | java | @SuppressWarnings("unchecked")
public Paging<AlbumSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new AlbumSimplified.JsonUtil().createModelObjectPaging(getJson(), "albums");
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"AlbumSimplified",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"AlbumSimplified",
".",
"JsonUtil",
"(",
")",
".",
"createModelO... | Search for albums.
@return An {@link AlbumSimplified} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Search",
"for",
"albums",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchAlbumsRequest.java#L32-L37 |
115,048 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/albums/GetAlbumsTracksRequest.java | GetAlbumsTracksRequest.execute | @SuppressWarnings("unchecked")
public Paging<TrackSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new TrackSimplified.JsonUtil().createModelObjectPaging(getJson());
} | java | @SuppressWarnings("unchecked")
public Paging<TrackSimplified> execute() throws
IOException,
SpotifyWebApiException {
return new TrackSimplified.JsonUtil().createModelObjectPaging(getJson());
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"TrackSimplified",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"TrackSimplified",
".",
"JsonUtil",
"(",
")",
".",
"createModelO... | Get the tracks from the album.
@return A track paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"the",
"tracks",
"from",
"the",
"album",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/albums/GetAlbumsTracksRequest.java#L33-L38 |
115,049 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/AbstractRequest.java | AbstractRequest.executeAsync | public <T> Future<T> executeAsync() {
return SpotifyApiThreading.executeAsync(
new Callable<T>() {
public T call() throws IOException, SpotifyWebApiException {
return execute();
}
});
} | java | public <T> Future<T> executeAsync() {
return SpotifyApiThreading.executeAsync(
new Callable<T>() {
public T call() throws IOException, SpotifyWebApiException {
return execute();
}
});
} | [
"public",
"<",
"T",
">",
"Future",
"<",
"T",
">",
"executeAsync",
"(",
")",
"{",
"return",
"SpotifyApiThreading",
".",
"executeAsync",
"(",
"new",
"Callable",
"<",
"T",
">",
"(",
")",
"{",
"public",
"T",
"call",
"(",
")",
"throws",
"IOException",
",",
... | Get something asynchronously.
@return A {@link Future} for a generic. | [
"Get",
"something",
"asynchronously",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/AbstractRequest.java#L73-L80 |
115,050 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/library/GetUsersSavedTracksRequest.java | GetUsersSavedTracksRequest.execute | @SuppressWarnings("unchecked")
public Paging<SavedTrack> execute() throws
IOException,
SpotifyWebApiException {
return new SavedTrack.JsonUtil().createModelObjectPaging(getJson());
} | java | @SuppressWarnings("unchecked")
public Paging<SavedTrack> execute() throws
IOException,
SpotifyWebApiException {
return new SavedTrack.JsonUtil().createModelObjectPaging(getJson());
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"SavedTrack",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"SavedTrack",
".",
"JsonUtil",
"(",
")",
".",
"createModelObjectPagin... | Get the songs from the current users "Your Music" library.
@return A {@link SavedTrack} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Get",
"the",
"songs",
"from",
"the",
"current",
"users",
"Your",
"Music",
"library",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/library/GetUsersSavedTracksRequest.java#L32-L37 |
115,051 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/follow/CheckUsersFollowPlaylistRequest.java | CheckUsersFollowPlaylistRequest.execute | public Boolean[] execute() throws
IOException,
SpotifyWebApiException {
return new Gson().fromJson(new JsonParser().parse(getJson()).getAsJsonArray(), Boolean[].class);
} | java | public Boolean[] execute() throws
IOException,
SpotifyWebApiException {
return new Gson().fromJson(new JsonParser().parse(getJson()).getAsJsonArray(), Boolean[].class);
} | [
"public",
"Boolean",
"[",
"]",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"Gson",
"(",
")",
".",
"fromJson",
"(",
"new",
"JsonParser",
"(",
")",
".",
"parse",
"(",
"getJson",
"(",
")",
")",
".",
"... | Check whether a user is following a playlist or not.
@return Whether a user is following a playlist or not.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Check",
"whether",
"a",
"user",
"is",
"following",
"a",
"playlist",
"or",
"not",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/follow/CheckUsersFollowPlaylistRequest.java#L31-L35 |
115,052 | thelinmichael/spotify-web-api-java | src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchArtistsRequest.java | SearchArtistsRequest.execute | @SuppressWarnings("unchecked")
public Paging<Artist> execute() throws
IOException,
SpotifyWebApiException {
return new Artist.JsonUtil().createModelObjectPaging(getJson(), "artists");
} | java | @SuppressWarnings("unchecked")
public Paging<Artist> execute() throws
IOException,
SpotifyWebApiException {
return new Artist.JsonUtil().createModelObjectPaging(getJson(), "artists");
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"Paging",
"<",
"Artist",
">",
"execute",
"(",
")",
"throws",
"IOException",
",",
"SpotifyWebApiException",
"{",
"return",
"new",
"Artist",
".",
"JsonUtil",
"(",
")",
".",
"createModelObjectPaging",
"(... | Search for artists.
@return An {@link Artist} paging.
@throws IOException In case of networking issues.
@throws SpotifyWebApiException The Web API returned an error further specified in this exception's root cause. | [
"Search",
"for",
"artists",
"."
] | c06b8512344c0310d0c1df362fa267879021da2e | https://github.com/thelinmichael/spotify-web-api-java/blob/c06b8512344c0310d0c1df362fa267879021da2e/src/main/java/com/wrapper/spotify/requests/data/search/simplified/SearchArtistsRequest.java#L32-L37 |
115,053 | spring-projects/spring-social | spring-social-security/src/main/java/org/springframework/social/security/SocialAuthenticationFilter.java | SocialAuthenticationFilter.setPostFailureUrl | public void setPostFailureUrl(String postFailureUrl) {
AuthenticationFailureHandler failureHandler = getFailureHandler();
if (failureHandler instanceof SocialAuthenticationFailureHandler) {
failureHandler = ((SocialAuthenticationFailureHandler)failureHandler).getDelegate();
}
if (failureHandler instanceof ... | java | public void setPostFailureUrl(String postFailureUrl) {
AuthenticationFailureHandler failureHandler = getFailureHandler();
if (failureHandler instanceof SocialAuthenticationFailureHandler) {
failureHandler = ((SocialAuthenticationFailureHandler)failureHandler).getDelegate();
}
if (failureHandler instanceof ... | [
"public",
"void",
"setPostFailureUrl",
"(",
"String",
"postFailureUrl",
")",
"{",
"AuthenticationFailureHandler",
"failureHandler",
"=",
"getFailureHandler",
"(",
")",
";",
"if",
"(",
"failureHandler",
"instanceof",
"SocialAuthenticationFailureHandler",
")",
"{",
"failure... | The URL to redirect to if authentication fails or if authorization is denied by the user.
@param postFailureUrl The failure URL. Defaults to "/signin" (relative to the servlet context). | [
"The",
"URL",
"to",
"redirect",
"to",
"if",
"authentication",
"fails",
"or",
"if",
"authorization",
"is",
"denied",
"by",
"the",
"user",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-security/src/main/java/org/springframework/social/security/SocialAuthenticationFilter.java#L140-L153 |
115,054 | spring-projects/spring-social | spring-social-web/src/main/java/org/springframework/social/connect/web/ProviderSignInAttempt.java | ProviderSignInAttempt.addConnection | void addConnection(String userId, ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository connectionRepository) {
connectionRepository.createConnectionRepository(userId).addConnection(getConnection(connectionFactoryLocator));
} | java | void addConnection(String userId, ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository connectionRepository) {
connectionRepository.createConnectionRepository(userId).addConnection(getConnection(connectionFactoryLocator));
} | [
"void",
"addConnection",
"(",
"String",
"userId",
",",
"ConnectionFactoryLocator",
"connectionFactoryLocator",
",",
"UsersConnectionRepository",
"connectionRepository",
")",
"{",
"connectionRepository",
".",
"createConnectionRepository",
"(",
"userId",
")",
".",
"addConnectio... | Connect the new local user to the provider.
@param userId the local user ID
@param connectionFactoryLocator A {@link ConnectionFactoryLocator} used to lookup the connection
@param connectionRepository a {@link UsersConnectionRepository}
@throws DuplicateConnectionException if the user already has this connection | [
"Connect",
"the",
"new",
"local",
"user",
"to",
"the",
"provider",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-web/src/main/java/org/springframework/social/connect/web/ProviderSignInAttempt.java#L66-L68 |
115,055 | spring-projects/spring-social | spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectSupport.java | ConnectSupport.completeConnection | public Connection<?> completeConnection(OAuth1ConnectionFactory<?> connectionFactory, NativeWebRequest request) {
String verifier = request.getParameter("oauth_verifier");
AuthorizedRequestToken requestToken = new AuthorizedRequestToken(extractCachedRequestToken(request), verifier);
OAuthToken accessToken = conn... | java | public Connection<?> completeConnection(OAuth1ConnectionFactory<?> connectionFactory, NativeWebRequest request) {
String verifier = request.getParameter("oauth_verifier");
AuthorizedRequestToken requestToken = new AuthorizedRequestToken(extractCachedRequestToken(request), verifier);
OAuthToken accessToken = conn... | [
"public",
"Connection",
"<",
"?",
">",
"completeConnection",
"(",
"OAuth1ConnectionFactory",
"<",
"?",
">",
"connectionFactory",
",",
"NativeWebRequest",
"request",
")",
"{",
"String",
"verifier",
"=",
"request",
".",
"getParameter",
"(",
"\"oauth_verifier\"",
")",
... | Complete the connection to the OAuth1 provider.
@param connectionFactory the service provider's connection factory e.g. FacebookConnectionFactory
@param request the current web request
@return a new connection to the service provider | [
"Complete",
"the",
"connection",
"to",
"the",
"OAuth1",
"provider",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectSupport.java#L140-L145 |
115,056 | spring-projects/spring-social | spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectSupport.java | ConnectSupport.completeConnection | public Connection<?> completeConnection(OAuth2ConnectionFactory<?> connectionFactory, NativeWebRequest request) {
if (connectionFactory.supportsStateParameter()) {
verifyStateParameter(request);
}
String code = request.getParameter("code");
try {
AccessGrant accessGrant = connectionFactory.getOAuthOper... | java | public Connection<?> completeConnection(OAuth2ConnectionFactory<?> connectionFactory, NativeWebRequest request) {
if (connectionFactory.supportsStateParameter()) {
verifyStateParameter(request);
}
String code = request.getParameter("code");
try {
AccessGrant accessGrant = connectionFactory.getOAuthOper... | [
"public",
"Connection",
"<",
"?",
">",
"completeConnection",
"(",
"OAuth2ConnectionFactory",
"<",
"?",
">",
"connectionFactory",
",",
"NativeWebRequest",
"request",
")",
"{",
"if",
"(",
"connectionFactory",
".",
"supportsStateParameter",
"(",
")",
")",
"{",
"verif... | Complete the connection to the OAuth2 provider.
@param connectionFactory the service provider's connection factory e.g. FacebookConnectionFactory
@param request the current web request
@return a new connection to the service provider | [
"Complete",
"the",
"connection",
"to",
"the",
"OAuth2",
"provider",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectSupport.java#L153-L167 |
115,057 | spring-projects/spring-social | spring-social-config/src/main/java/org/springframework/social/config/support/ProviderConfigurationSupport.java | ProviderConfigurationSupport.getConnectionFactoryBeanDefinition | protected BeanDefinition getConnectionFactoryBeanDefinition(String appId, String appSecret, Map<String, Object> allAttributes) {
return BeanDefinitionBuilder.genericBeanDefinition(connectionFactoryClass).addConstructorArgValue(appId).addConstructorArgValue(appSecret).getBeanDefinition();
} | java | protected BeanDefinition getConnectionFactoryBeanDefinition(String appId, String appSecret, Map<String, Object> allAttributes) {
return BeanDefinitionBuilder.genericBeanDefinition(connectionFactoryClass).addConstructorArgValue(appId).addConstructorArgValue(appSecret).getBeanDefinition();
} | [
"protected",
"BeanDefinition",
"getConnectionFactoryBeanDefinition",
"(",
"String",
"appId",
",",
"String",
"appSecret",
",",
"Map",
"<",
"String",
",",
"Object",
">",
"allAttributes",
")",
"{",
"return",
"BeanDefinitionBuilder",
".",
"genericBeanDefinition",
"(",
"co... | Creates a BeanDefinition for a provider connection factory.
Although most providers will not need to override this method, it does allow for overriding to address any provider-specific needs.
@param appId The application's App ID
@param appSecret The application's App Secret
@param allAttributes All attributes availabl... | [
"Creates",
"a",
"BeanDefinition",
"for",
"a",
"provider",
"connection",
"factory",
".",
"Although",
"most",
"providers",
"will",
"not",
"need",
"to",
"override",
"this",
"method",
"it",
"does",
"allow",
"for",
"overriding",
"to",
"address",
"any",
"provider",
... | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-config/src/main/java/org/springframework/social/config/support/ProviderConfigurationSupport.java#L71-L73 |
115,058 | spring-projects/spring-social | spring-social-config/src/main/java/org/springframework/social/config/support/ProviderConfigurationSupport.java | ProviderConfigurationSupport.getApiHelperBeanDefinitionBuilder | protected BeanDefinitionBuilder getApiHelperBeanDefinitionBuilder(Map<String, Object> allAttributes)
{
return BeanDefinitionBuilder.genericBeanDefinition(apiHelperClass)
.addConstructorArgReference("usersConnectionRepository")
.addConstructorArgReference("userIdSource");
} | java | protected BeanDefinitionBuilder getApiHelperBeanDefinitionBuilder(Map<String, Object> allAttributes)
{
return BeanDefinitionBuilder.genericBeanDefinition(apiHelperClass)
.addConstructorArgReference("usersConnectionRepository")
.addConstructorArgReference("userIdSource");
} | [
"protected",
"BeanDefinitionBuilder",
"getApiHelperBeanDefinitionBuilder",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"allAttributes",
")",
"{",
"return",
"BeanDefinitionBuilder",
".",
"genericBeanDefinition",
"(",
"apiHelperClass",
")",
".",
"addConstructorArgReference... | Subclassing hook to allow api helper bean to be configured with attributes from annotation
@param allAttributes additional attributes that may be used when creating the API helper bean.
@return a {@link BeanDefinitionBuilder} for the API Helper | [
"Subclassing",
"hook",
"to",
"allow",
"api",
"helper",
"bean",
"to",
"be",
"configured",
"with",
"attributes",
"from",
"annotation"
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-config/src/main/java/org/springframework/social/config/support/ProviderConfigurationSupport.java#L177-L182 |
115,059 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/connect/support/AbstractConnection.java | AbstractConnection.initKey | protected void initKey(String providerId, String providerUserId) {
if (providerUserId == null) {
providerUserId = setValues().providerUserId;
}
key = new ConnectionKey(providerId, providerUserId);
} | java | protected void initKey(String providerId, String providerUserId) {
if (providerUserId == null) {
providerUserId = setValues().providerUserId;
}
key = new ConnectionKey(providerId, providerUserId);
} | [
"protected",
"void",
"initKey",
"(",
"String",
"providerId",
",",
"String",
"providerUserId",
")",
"{",
"if",
"(",
"providerUserId",
"==",
"null",
")",
"{",
"providerUserId",
"=",
"setValues",
"(",
")",
".",
"providerUserId",
";",
"}",
"key",
"=",
"new",
"... | Hook that should be called by subclasses to initialize the key property when establishing a new connection.
@param providerId the providerId
@param providerUserId the providerUserId | [
"Hook",
"that",
"should",
"be",
"called",
"by",
"subclasses",
"to",
"initialize",
"the",
"key",
"property",
"when",
"establishing",
"a",
"new",
"connection",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/connect/support/AbstractConnection.java#L135-L140 |
115,060 | spring-projects/spring-social | spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java | ConnectController.addDisconnectInterceptor | public void addDisconnectInterceptor(DisconnectInterceptor<?> interceptor) {
Class<?> serviceApiType = GenericTypeResolver.resolveTypeArgument(interceptor.getClass(), DisconnectInterceptor.class);
disconnectInterceptors.add(serviceApiType, interceptor);
} | java | public void addDisconnectInterceptor(DisconnectInterceptor<?> interceptor) {
Class<?> serviceApiType = GenericTypeResolver.resolveTypeArgument(interceptor.getClass(), DisconnectInterceptor.class);
disconnectInterceptors.add(serviceApiType, interceptor);
} | [
"public",
"void",
"addDisconnectInterceptor",
"(",
"DisconnectInterceptor",
"<",
"?",
">",
"interceptor",
")",
"{",
"Class",
"<",
"?",
">",
"serviceApiType",
"=",
"GenericTypeResolver",
".",
"resolveTypeArgument",
"(",
"interceptor",
".",
"getClass",
"(",
")",
","... | Adds a DisconnectInterceptor to receive callbacks during the disconnection process.
Useful for programmatic configuration.
@param interceptor the connect interceptor to add | [
"Adds",
"a",
"DisconnectInterceptor",
"to",
"receive",
"callbacks",
"during",
"the",
"disconnection",
"process",
".",
"Useful",
"for",
"programmatic",
"configuration",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java#L194-L197 |
115,061 | spring-projects/spring-social | spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java | ConnectController.connectionStatus | @RequestMapping(method=RequestMethod.GET)
public String connectionStatus(NativeWebRequest request, Model model) {
setNoCache(request);
processFlash(request, model);
Map<String, List<Connection<?>>> connections = connectionRepository.findAllConnections();
model.addAttribute("providerIds", connectionFactoryLocat... | java | @RequestMapping(method=RequestMethod.GET)
public String connectionStatus(NativeWebRequest request, Model model) {
setNoCache(request);
processFlash(request, model);
Map<String, List<Connection<?>>> connections = connectionRepository.findAllConnections();
model.addAttribute("providerIds", connectionFactoryLocat... | [
"@",
"RequestMapping",
"(",
"method",
"=",
"RequestMethod",
".",
"GET",
")",
"public",
"String",
"connectionStatus",
"(",
"NativeWebRequest",
"request",
",",
"Model",
"model",
")",
"{",
"setNoCache",
"(",
"request",
")",
";",
"processFlash",
"(",
"request",
",... | Render the status of connections across all providers to the user as HTML in their web browser.
@param request the request
@param model the model
@return the view name of the connection status page for all providers | [
"Render",
"the",
"status",
"of",
"connections",
"across",
"all",
"providers",
"to",
"the",
"user",
"as",
"HTML",
"in",
"their",
"web",
"browser",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-web/src/main/java/org/springframework/social/connect/web/ConnectController.java#L205-L213 |
115,062 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/support/URIBuilder.java | URIBuilder.queryParam | public URIBuilder queryParam(String name, String value) {
parameters.add(name, value);
return this;
} | java | public URIBuilder queryParam(String name, String value) {
parameters.add(name, value);
return this;
} | [
"public",
"URIBuilder",
"queryParam",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"parameters",
".",
"add",
"(",
"name",
",",
"value",
")",
";",
"return",
"this",
";",
"}"
] | Adds a query parameter to the URI
@param name the parameter name
@param value the parameter value
@return the URIBuilder | [
"Adds",
"a",
"query",
"parameter",
"to",
"the",
"URI"
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/support/URIBuilder.java#L69-L72 |
115,063 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/support/URIBuilder.java | URIBuilder.build | public URI build() {
try {
StringBuilder builder = new StringBuilder();
Set<Entry<String, List<String>>> entrySet = parameters.entrySet();
for (Iterator<Entry<String, List<String>>> entryIt = entrySet.iterator(); entryIt.hasNext();) {
Entry<String, List<String>> entry = entryIt.next();
String name = ... | java | public URI build() {
try {
StringBuilder builder = new StringBuilder();
Set<Entry<String, List<String>>> entrySet = parameters.entrySet();
for (Iterator<Entry<String, List<String>>> entryIt = entrySet.iterator(); entryIt.hasNext();) {
Entry<String, List<String>> entry = entryIt.next();
String name = ... | [
"public",
"URI",
"build",
"(",
")",
"{",
"try",
"{",
"StringBuilder",
"builder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"Set",
"<",
"Entry",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
">",
"entrySet",
"=",
"parameters",
".",
"entrySet",
... | Builds the URI
@return the URI | [
"Builds",
"the",
"URI"
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/support/URIBuilder.java#L88-L119 |
115,064 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/oauth1/ProtectedResourceClientFactory.java | ProtectedResourceClientFactory.create | public static RestTemplate create(OAuth1Credentials credentials) {
RestTemplate client = new RestTemplate(ClientHttpRequestFactorySelector.getRequestFactory());
OAuth1RequestInterceptor interceptor = new OAuth1RequestInterceptor(credentials);
List<ClientHttpRequestInterceptor> interceptors = new LinkedList<Client... | java | public static RestTemplate create(OAuth1Credentials credentials) {
RestTemplate client = new RestTemplate(ClientHttpRequestFactorySelector.getRequestFactory());
OAuth1RequestInterceptor interceptor = new OAuth1RequestInterceptor(credentials);
List<ClientHttpRequestInterceptor> interceptors = new LinkedList<Client... | [
"public",
"static",
"RestTemplate",
"create",
"(",
"OAuth1Credentials",
"credentials",
")",
"{",
"RestTemplate",
"client",
"=",
"new",
"RestTemplate",
"(",
"ClientHttpRequestFactorySelector",
".",
"getRequestFactory",
"(",
")",
")",
";",
"OAuth1RequestInterceptor",
"int... | Constructs a RestTemplate that adds the OAuth1 Authorization header to each request before it is executed. | [
"Constructs",
"a",
"RestTemplate",
"that",
"adds",
"the",
"OAuth1",
"Authorization",
"header",
"to",
"each",
"request",
"before",
"it",
"is",
"executed",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/oauth1/ProtectedResourceClientFactory.java#L47-L54 |
115,065 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java | SigningSupport.buildAuthorizationHeaderValue | public String buildAuthorizationHeaderValue(HttpMethod method, URI targetUrl, Map<String, String> oauthParameters, MultiValueMap<String, String> additionalParameters, String consumerSecret, String tokenSecret) {
StringBuilder header = new StringBuilder();
header.append("OAuth ");
for (Entry<String, String> entry ... | java | public String buildAuthorizationHeaderValue(HttpMethod method, URI targetUrl, Map<String, String> oauthParameters, MultiValueMap<String, String> additionalParameters, String consumerSecret, String tokenSecret) {
StringBuilder header = new StringBuilder();
header.append("OAuth ");
for (Entry<String, String> entry ... | [
"public",
"String",
"buildAuthorizationHeaderValue",
"(",
"HttpMethod",
"method",
",",
"URI",
"targetUrl",
",",
"Map",
"<",
"String",
",",
"String",
">",
"oauthParameters",
",",
"MultiValueMap",
"<",
"String",
",",
"String",
">",
"additionalParameters",
",",
"Stri... | Builds the authorization header.
The elements in additionalParameters are expected to not be encoded. | [
"Builds",
"the",
"authorization",
"header",
".",
"The",
"elements",
"in",
"additionalParameters",
"are",
"expected",
"to",
"not",
"be",
"encoded",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java#L56-L69 |
115,066 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java | SigningSupport.buildAuthorizationHeaderValue | public String buildAuthorizationHeaderValue(HttpRequest request, byte[] body, OAuth1Credentials oauth1Credentials) {
Map<String, String> oauthParameters = commonOAuthParameters(oauth1Credentials.getConsumerKey());
oauthParameters.put("oauth_token", oauth1Credentials.getAccessToken());
MultiValueMap<String, String... | java | public String buildAuthorizationHeaderValue(HttpRequest request, byte[] body, OAuth1Credentials oauth1Credentials) {
Map<String, String> oauthParameters = commonOAuthParameters(oauth1Credentials.getConsumerKey());
oauthParameters.put("oauth_token", oauth1Credentials.getAccessToken());
MultiValueMap<String, String... | [
"public",
"String",
"buildAuthorizationHeaderValue",
"(",
"HttpRequest",
"request",
",",
"byte",
"[",
"]",
"body",
",",
"OAuth1Credentials",
"oauth1Credentials",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"oauthParameters",
"=",
"commonOAuthParameters",
"("... | Builds an authorization header from a request.
Expects that the request's query parameters are form-encoded. | [
"Builds",
"an",
"authorization",
"header",
"from",
"a",
"request",
".",
"Expects",
"that",
"the",
"request",
"s",
"query",
"parameters",
"are",
"form",
"-",
"encoded",
"."
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java#L75-L80 |
115,067 | spring-projects/spring-social | spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java | SigningSupport.union | private MultiValueMap<String, String> union(MultiValueMap<String, String> map1, MultiValueMap<String, String> map2) {
MultiValueMap<String, String> union = new LinkedMultiValueMap<String, String>(map1);
Set<Entry<String, List<String>>> map2Entries = map2.entrySet();
for (Iterator<Entry<String, List<String>>> entr... | java | private MultiValueMap<String, String> union(MultiValueMap<String, String> map1, MultiValueMap<String, String> map2) {
MultiValueMap<String, String> union = new LinkedMultiValueMap<String, String>(map1);
Set<Entry<String, List<String>>> map2Entries = map2.entrySet();
for (Iterator<Entry<String, List<String>>> entr... | [
"private",
"MultiValueMap",
"<",
"String",
",",
"String",
">",
"union",
"(",
"MultiValueMap",
"<",
"String",
",",
"String",
">",
"map1",
",",
"MultiValueMap",
"<",
"String",
",",
"String",
">",
"map2",
")",
"{",
"MultiValueMap",
"<",
"String",
",",
"String... | can't use putAll here because it will overwrite anything that has the same key in both maps | [
"can",
"t",
"use",
"putAll",
"here",
"because",
"it",
"will",
"overwrite",
"anything",
"that",
"has",
"the",
"same",
"key",
"in",
"both",
"maps"
] | e41cfecb288022b83c79413b58f52511c3c9d4fc | https://github.com/spring-projects/spring-social/blob/e41cfecb288022b83c79413b58f52511c3c9d4fc/spring-social-core/src/main/java/org/springframework/social/oauth1/SigningSupport.java#L234-L246 |
115,068 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java | StatisticsQueue.stop | public void stop() {
int notProcessed = worker.shutdownNow().size();
if (notProcessed != 0) {
LogFilter.log(LOGGER, LogLevel.INFO, "Worker exiting, {} execution events remaining, time: {}", notProcessed, System.currentTimeMillis());
}
} | java | public void stop() {
int notProcessed = worker.shutdownNow().size();
if (notProcessed != 0) {
LogFilter.log(LOGGER, LogLevel.INFO, "Worker exiting, {} execution events remaining, time: {}", notProcessed, System.currentTimeMillis());
}
} | [
"public",
"void",
"stop",
"(",
")",
"{",
"int",
"notProcessed",
"=",
"worker",
".",
"shutdownNow",
"(",
")",
".",
"size",
"(",
")",
";",
"if",
"(",
"notProcessed",
"!=",
"0",
")",
"{",
"LogFilter",
".",
"log",
"(",
"LOGGER",
",",
"LogLevel",
".",
"... | Shutdowns StatisticsQueue completely, new StatisticsQueue should be created to start gathering statistics again | [
"Shutdowns",
"StatisticsQueue",
"completely",
"new",
"StatisticsQueue",
"should",
"be",
"created",
"to",
"start",
"gathering",
"statistics",
"again"
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java#L74-L79 |
115,069 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java | StatisticsQueue.enqueue | public Future enqueue(final QueryExecutionEvent event) {
if (!paused) {
return worker.submit(new Runnable() {
@Override public void run() {
QueryStats queryStats = statsByQuery.get(event.getQuery());
if (queryStats == null) {
... | java | public Future enqueue(final QueryExecutionEvent event) {
if (!paused) {
return worker.submit(new Runnable() {
@Override public void run() {
QueryStats queryStats = statsByQuery.get(event.getQuery());
if (queryStats == null) {
... | [
"public",
"Future",
"enqueue",
"(",
"final",
"QueryExecutionEvent",
"event",
")",
"{",
"if",
"(",
"!",
"paused",
")",
"{",
"return",
"worker",
".",
"submit",
"(",
"new",
"Runnable",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"run",
"(",
")",
"{"... | Enqueues a query execution event for processing.
@param event instance of event.
@return instance of Future associated with processing of event. You can examine that object
to see if this event was processed. In case the queue is paused, an event is not processed,
and return value is <code>null</code>. | [
"Enqueues",
"a",
"query",
"execution",
"event",
"for",
"processing",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java#L98-L112 |
115,070 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java | StatisticsQueue.getReportSortedBy | public List<QueryStats> getReportSortedBy(String sortByVal) {
SortBy sortBy;
try {
sortBy = SortBy.valueOf(sortByVal);
} catch (Exception e) {
throw new IllegalArgumentException("allowed values are: " + Arrays.toString(SortBy.values()));
}
List<QueryStats... | java | public List<QueryStats> getReportSortedBy(String sortByVal) {
SortBy sortBy;
try {
sortBy = SortBy.valueOf(sortByVal);
} catch (Exception e) {
throw new IllegalArgumentException("allowed values are: " + Arrays.toString(SortBy.values()));
}
List<QueryStats... | [
"public",
"List",
"<",
"QueryStats",
">",
"getReportSortedBy",
"(",
"String",
"sortByVal",
")",
"{",
"SortBy",
"sortBy",
";",
"try",
"{",
"sortBy",
"=",
"SortBy",
".",
"valueOf",
"(",
"sortByVal",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
... | Produces a report sorted by one of the accepted value.
@param sortByVal - allowed values: "total", "avg", "min", "max", "count"
@return sorted list of query stats | [
"Produces",
"a",
"report",
"sorted",
"by",
"one",
"of",
"the",
"accepted",
"value",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/statistics/StatisticsQueue.java#L124-L135 |
115,071 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.findOrCreateIt | public static <T extends Model> T findOrCreateIt(Object... namesAndValues) {
return ModelDelegate.findOrCreateIt(modelClass(), namesAndValues);
} | java | public static <T extends Model> T findOrCreateIt(Object... namesAndValues) {
return ModelDelegate.findOrCreateIt(modelClass(), namesAndValues);
} | [
"public",
"static",
"<",
"T",
"extends",
"Model",
">",
"T",
"findOrCreateIt",
"(",
"Object",
"...",
"namesAndValues",
")",
"{",
"return",
"ModelDelegate",
".",
"findOrCreateIt",
"(",
"modelClass",
"(",
")",
",",
"namesAndValues",
")",
";",
"}"
] | A convenience method to fetch existing model from db or to create and insert new record with attribute values.
@param namesAndValues names and values. elements at indexes 0, 2, 4, 8... are attribute names, and elements at
indexes 1, 3, 5... are values. Element at index 1 is a value for attribute at index 0 and so on.
... | [
"A",
"convenience",
"method",
"to",
"fetch",
"existing",
"model",
"from",
"db",
"or",
"to",
"create",
"and",
"insert",
"new",
"record",
"with",
"attribute",
"values",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L210-L212 |
115,072 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.findOrInit | public static <T extends Model> T findOrInit(Object... namesAndValues) {
return ModelDelegate.findOrInit(modelClass(), namesAndValues);
} | java | public static <T extends Model> T findOrInit(Object... namesAndValues) {
return ModelDelegate.findOrInit(modelClass(), namesAndValues);
} | [
"public",
"static",
"<",
"T",
"extends",
"Model",
">",
"T",
"findOrInit",
"(",
"Object",
"...",
"namesAndValues",
")",
"{",
"return",
"ModelDelegate",
".",
"findOrInit",
"(",
"modelClass",
"(",
")",
",",
"namesAndValues",
")",
";",
"}"
] | A convenience method to fetch existing model from db or to create a new instance in memory initialized with
some attribute values.
@param namesAndValues names and values. elements at indexes 0, 2, 4, 8... are attribute names, and elements at
indexes 1, 3, 5... are values. Element at index 1 is a value for attribute at... | [
"A",
"convenience",
"method",
"to",
"fetch",
"existing",
"model",
"from",
"db",
"or",
"to",
"create",
"a",
"new",
"instance",
"in",
"memory",
"initialized",
"with",
"some",
"attribute",
"values",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L223-L225 |
115,073 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.hydrate | protected Set<String> hydrate(Map<String, Object> attributesMap, boolean fireAfterLoad) {
Set<String> changedAttributeNames = new HashSet<>();
Set<String> attributeNames = metaModelLocal.getAttributeNames();
for (Map.Entry<String, Object> entry : attributesMap.entrySet()) {
if (attr... | java | protected Set<String> hydrate(Map<String, Object> attributesMap, boolean fireAfterLoad) {
Set<String> changedAttributeNames = new HashSet<>();
Set<String> attributeNames = metaModelLocal.getAttributeNames();
for (Map.Entry<String, Object> entry : attributesMap.entrySet()) {
if (attr... | [
"protected",
"Set",
"<",
"String",
">",
"hydrate",
"(",
"Map",
"<",
"String",
",",
"Object",
">",
"attributesMap",
",",
"boolean",
"fireAfterLoad",
")",
"{",
"Set",
"<",
"String",
">",
"changedAttributeNames",
"=",
"new",
"HashSet",
"<>",
"(",
")",
";",
... | Hydrates a this instance of model from a map. Only picks values from a map that match
this instance's attribute names, while ignoring the others.
@param attributesMap
@param fireAfterLoad
@return the set of changed (i.e. dirty) attribute names | [
"Hydrates",
"a",
"this",
"instance",
"of",
"model",
"from",
"a",
"map",
".",
"Only",
"picks",
"values",
"from",
"a",
"map",
"that",
"match",
"this",
"instance",
"s",
"attribute",
"names",
"while",
"ignoring",
"the",
"others",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L235-L266 |
115,074 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.willAttributeModifyModel | private boolean willAttributeModifyModel(String attributeName, Object newValue) {
Object currentValue = get(attributeName);
return currentValue != null ? !currentValue.equals(newValue) : newValue != null;
} | java | private boolean willAttributeModifyModel(String attributeName, Object newValue) {
Object currentValue = get(attributeName);
return currentValue != null ? !currentValue.equals(newValue) : newValue != null;
} | [
"private",
"boolean",
"willAttributeModifyModel",
"(",
"String",
"attributeName",
",",
"Object",
"newValue",
")",
"{",
"Object",
"currentValue",
"=",
"get",
"(",
"attributeName",
")",
";",
"return",
"currentValue",
"!=",
"null",
"?",
"!",
"currentValue",
".",
"e... | Verifies if the passed value for attributeName will set this instance to modified state. | [
"Verifies",
"if",
"the",
"passed",
"value",
"for",
"attributeName",
"will",
"set",
"this",
"instance",
"to",
"modified",
"state",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L271-L275 |
115,075 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.set | public void set(String[] attributeNames, Object[] values) {
if (attributeNames == null || values == null || attributeNames.length != values.length) {
throw new IllegalArgumentException("must pass non-null arrays of equal length");
}
for (int i = 0; i < attributeNames.length; i++) {
... | java | public void set(String[] attributeNames, Object[] values) {
if (attributeNames == null || values == null || attributeNames.length != values.length) {
throw new IllegalArgumentException("must pass non-null arrays of equal length");
}
for (int i = 0; i < attributeNames.length; i++) {
... | [
"public",
"void",
"set",
"(",
"String",
"[",
"]",
"attributeNames",
",",
"Object",
"[",
"]",
"values",
")",
"{",
"if",
"(",
"attributeNames",
"==",
"null",
"||",
"values",
"==",
"null",
"||",
"attributeNames",
".",
"length",
"!=",
"values",
".",
"length"... | Sets values for this model instance. The sequence of values must correspond to sequence of names.
@param attributeNames names of attributes.
@param values values for this instance. | [
"Sets",
"values",
"for",
"this",
"model",
"instance",
".",
"The",
"sequence",
"of",
"values",
"must",
"correspond",
"to",
"sequence",
"of",
"names",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L343-L351 |
115,076 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.setRaw | private <T extends Model> T setRaw(String attributeName, Object value) {
if (manageTime && attributeName.equalsIgnoreCase("created_at")) {
throw new IllegalArgumentException("cannot set 'created_at'");
}
metaModelLocal.checkAttribute(attributeName);
if (willAttributeModifyMo... | java | private <T extends Model> T setRaw(String attributeName, Object value) {
if (manageTime && attributeName.equalsIgnoreCase("created_at")) {
throw new IllegalArgumentException("cannot set 'created_at'");
}
metaModelLocal.checkAttribute(attributeName);
if (willAttributeModifyMo... | [
"private",
"<",
"T",
"extends",
"Model",
">",
"T",
"setRaw",
"(",
"String",
"attributeName",
",",
"Object",
"value",
")",
"{",
"if",
"(",
"manageTime",
"&&",
"attributeName",
".",
"equalsIgnoreCase",
"(",
"\"created_at\"",
")",
")",
"{",
"throw",
"new",
"I... | Sets raw value of an attribute, without applying conversions. | [
"Sets",
"raw",
"value",
"of",
"an",
"attribute",
"without",
"applying",
"conversions",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L374-L385 |
115,077 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.deleteManyToManyLinks | private void deleteManyToManyLinks(Many2ManyAssociation association){
String join = association.getJoin();
String sourceFK = association.getSourceFkName();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + join + " WHERE " + sourceFK + " = ?", getId());
} | java | private void deleteManyToManyLinks(Many2ManyAssociation association){
String join = association.getJoin();
String sourceFK = association.getSourceFkName();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + join + " WHERE " + sourceFK + " = ?", getId());
} | [
"private",
"void",
"deleteManyToManyLinks",
"(",
"Many2ManyAssociation",
"association",
")",
"{",
"String",
"join",
"=",
"association",
".",
"getJoin",
"(",
")",
";",
"String",
"sourceFK",
"=",
"association",
".",
"getSourceFkName",
"(",
")",
";",
"new",
"DB",
... | Deletes all records from a join table related to this model.
@param association association to another table. | [
"Deletes",
"all",
"records",
"from",
"a",
"join",
"table",
"related",
"to",
"this",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L685-L689 |
115,078 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.deleteOne2ManyChildrenShallow | private void deleteOne2ManyChildrenShallow(OneToManyAssociation association){
String targetTable = metaModelOf(association.getTargetClass()).getTableName();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + targetTable + " WHERE " + association.getFkName() + " = ?", getId());
} | java | private void deleteOne2ManyChildrenShallow(OneToManyAssociation association){
String targetTable = metaModelOf(association.getTargetClass()).getTableName();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + targetTable + " WHERE " + association.getFkName() + " = ?", getId());
} | [
"private",
"void",
"deleteOne2ManyChildrenShallow",
"(",
"OneToManyAssociation",
"association",
")",
"{",
"String",
"targetTable",
"=",
"metaModelOf",
"(",
"association",
".",
"getTargetClass",
"(",
")",
")",
".",
"getTableName",
"(",
")",
";",
"new",
"DB",
"(",
... | Deletes immediate children. | [
"Deletes",
"immediate",
"children",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L702-L705 |
115,079 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.deletePolymorphicChildrenShallow | private void deletePolymorphicChildrenShallow(OneToManyPolymorphicAssociation association){
String targetTable = metaModelOf(association.getTargetClass()).getTableName();
String parentType = association.getTypeLabel();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + targetTable + " WHER... | java | private void deletePolymorphicChildrenShallow(OneToManyPolymorphicAssociation association){
String targetTable = metaModelOf(association.getTargetClass()).getTableName();
String parentType = association.getTypeLabel();
new DB(metaModelLocal.getDbName()).exec("DELETE FROM " + targetTable + " WHER... | [
"private",
"void",
"deletePolymorphicChildrenShallow",
"(",
"OneToManyPolymorphicAssociation",
"association",
")",
"{",
"String",
"targetTable",
"=",
"metaModelOf",
"(",
"association",
".",
"getTargetClass",
"(",
")",
")",
".",
"getTableName",
"(",
")",
";",
"String",... | Deletes immediate polymorphic children | [
"Deletes",
"immediate",
"polymorphic",
"children"
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L717-L721 |
115,080 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.exists | public boolean exists(){
return null != new DB(metaModelLocal.getDbName()).firstCell(metaModelLocal.getDialect().selectExists(metaModelLocal), getId());
} | java | public boolean exists(){
return null != new DB(metaModelLocal.getDbName()).firstCell(metaModelLocal.getDialect().selectExists(metaModelLocal), getId());
} | [
"public",
"boolean",
"exists",
"(",
")",
"{",
"return",
"null",
"!=",
"new",
"DB",
"(",
"metaModelLocal",
".",
"getDbName",
"(",
")",
")",
".",
"firstCell",
"(",
"metaModelLocal",
".",
"getDialect",
"(",
")",
".",
"selectExists",
"(",
"metaModelLocal",
")"... | Returns true if record corresponding to the id of this instance exists in the DB.
@return true if corresponding record exists in DB, false if it does not. | [
"Returns",
"true",
"if",
"record",
"corresponding",
"to",
"the",
"id",
"of",
"this",
"instance",
"exists",
"in",
"the",
"DB",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L800-L802 |
115,081 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.update | public static int update(String updates, String conditions, Object ... params) {
return ModelDelegate.update(modelClass(), updates, conditions, params);
} | java | public static int update(String updates, String conditions, Object ... params) {
return ModelDelegate.update(modelClass(), updates, conditions, params);
} | [
"public",
"static",
"int",
"update",
"(",
"String",
"updates",
",",
"String",
"conditions",
",",
"Object",
"...",
"params",
")",
"{",
"return",
"ModelDelegate",
".",
"update",
"(",
"modelClass",
"(",
")",
",",
"updates",
",",
"conditions",
",",
"params",
"... | Updates records associated with this model.
This example :
<pre>
Employee.update("bonus = ?", "years_at_company > ?", "5", "10");
</pre
In this example, employees who worked for more than 10 years, get a bonus of 5% (not so generous :)).
@param updates - what needs to be updated.
@param conditions specifies which re... | [
"Updates",
"records",
"associated",
"with",
"this",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L830-L832 |
115,082 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.updateAll | public static int updateAll(String updates, Object ... params) {
return ModelDelegate.updateAll(modelClass(), updates, params);
} | java | public static int updateAll(String updates, Object ... params) {
return ModelDelegate.updateAll(modelClass(), updates, params);
} | [
"public",
"static",
"int",
"updateAll",
"(",
"String",
"updates",
",",
"Object",
"...",
"params",
")",
"{",
"return",
"ModelDelegate",
".",
"updateAll",
"(",
"modelClass",
"(",
")",
",",
"updates",
",",
"params",
")",
";",
"}"
] | Updates all records associated with this model.
This example :
<pre>
Employee.updateAll("bonus = ?", "10");
</pre>
In this example, all employees get a bonus of 10%.
@param updates - what needs to be updated.
@param params list of parameters for both updates and conditions. Applied in the same order as in the argume... | [
"Updates",
"all",
"records",
"associated",
"with",
"this",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L849-L851 |
115,083 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.toMap | public Map<String, Object> toMap(){
Map<String, Object> retVal = new TreeMap<>();
for (Map.Entry<String, Object> entry : attributes.entrySet()) {
Object v = entry.getValue();
if (v != null) {
if (v instanceof Clob) {
retVal.put(entry.getKey().t... | java | public Map<String, Object> toMap(){
Map<String, Object> retVal = new TreeMap<>();
for (Map.Entry<String, Object> entry : attributes.entrySet()) {
Object v = entry.getValue();
if (v != null) {
if (v instanceof Clob) {
retVal.put(entry.getKey().t... | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"toMap",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"Object",
">",
"retVal",
"=",
"new",
"TreeMap",
"<>",
"(",
")",
";",
"for",
"(",
"Map",
".",
"Entry",
"<",
"String",
",",
"Object",
">",
"entry... | Returns all values of the model with all attribute names converted to lower case,
regardless how these names came from DB. This method is a convenience
method for displaying values on web pages.
<p></p>
If {@link LazyList#include(Class[])} method was used, and this
model belongs to a parent (as in many to one relation... | [
"Returns",
"all",
"values",
"of",
"the",
"model",
"with",
"all",
"attribute",
"names",
"converted",
"to",
"lower",
"case",
"regardless",
"how",
"these",
"names",
"came",
"from",
"DB",
".",
"This",
"method",
"is",
"a",
"convenience",
"method",
"for",
"display... | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L871-L898 |
115,084 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.beforeClosingTag | public void beforeClosingTag(StringBuilder sb, boolean pretty, String indent, String... attributeNames) {
StringWriter writer = new StringWriter();
beforeClosingTag(indent.length(), writer, attributeNames);
sb.append(writer.toString());
} | java | public void beforeClosingTag(StringBuilder sb, boolean pretty, String indent, String... attributeNames) {
StringWriter writer = new StringWriter();
beforeClosingTag(indent.length(), writer, attributeNames);
sb.append(writer.toString());
} | [
"public",
"void",
"beforeClosingTag",
"(",
"StringBuilder",
"sb",
",",
"boolean",
"pretty",
",",
"String",
"indent",
",",
"String",
"...",
"attributeNames",
")",
"{",
"StringWriter",
"writer",
"=",
"new",
"StringWriter",
"(",
")",
";",
"beforeClosingTag",
"(",
... | Override in a subclass to inject custom content onto XML just before the closing tag.
<p>To keep the formatting, it is recommended to implement this method as the example below.
<blockquote><pre>
if (pretty) { sb.append(ident); }
sb.append("<test>...</test>");
if (pretty) { sb.append('\n'); }
</pre></bloc... | [
"Override",
"in",
"a",
"subclass",
"to",
"inject",
"custom",
"content",
"onto",
"XML",
"just",
"before",
"the",
"closing",
"tag",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1042-L1046 |
115,085 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.toJson | public String toJson(boolean pretty, String... attributeNames) {
StringBuilder sb = new StringBuilder();
toJsonP(sb, pretty, "", attributeNames);
return sb.toString();
} | java | public String toJson(boolean pretty, String... attributeNames) {
StringBuilder sb = new StringBuilder();
toJsonP(sb, pretty, "", attributeNames);
return sb.toString();
} | [
"public",
"String",
"toJson",
"(",
"boolean",
"pretty",
",",
"String",
"...",
"attributeNames",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"toJsonP",
"(",
"sb",
",",
"pretty",
",",
"\"\"",
",",
"attributeNames",
")",
";",
... | Generates a JSON document from content of this model.
@param pretty pretty format (human readable), or one line text.
@param attributeNames list of attributes to include. No arguments == include all attributes.
@return generated JSON. | [
"Generates",
"a",
"JSON",
"document",
"from",
"content",
"of",
"this",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1069-L1073 |
115,086 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.beforeClosingBrace | public void beforeClosingBrace(StringBuilder sb, boolean pretty, String indent, String... attributeNames) {
StringWriter writer = new StringWriter();
beforeClosingBrace(pretty, indent, writer);
sb.append(writer.toString());
} | java | public void beforeClosingBrace(StringBuilder sb, boolean pretty, String indent, String... attributeNames) {
StringWriter writer = new StringWriter();
beforeClosingBrace(pretty, indent, writer);
sb.append(writer.toString());
} | [
"public",
"void",
"beforeClosingBrace",
"(",
"StringBuilder",
"sb",
",",
"boolean",
"pretty",
",",
"String",
"indent",
",",
"String",
"...",
"attributeNames",
")",
"{",
"StringWriter",
"writer",
"=",
"new",
"StringWriter",
"(",
")",
";",
"beforeClosingBrace",
"(... | Override in subclasses in order to inject custom content into Json just before the closing brace.
<p>To keep the formatting, it is recommended to implement this method as the example below.
<blockquote><pre>
sb.append(',');
if (pretty) { sb.append('\n').append(indent); }
sb.append("\"test\":\"...\"");
</pre></blockqu... | [
"Override",
"in",
"subclasses",
"in",
"order",
"to",
"inject",
"custom",
"content",
"into",
"Json",
"just",
"before",
"the",
"closing",
"brace",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1178-L1182 |
115,087 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.refresh | public void refresh() {
QueryCache.instance().purgeTableCache(metaModelLocal);
Model fresh = ModelDelegate.findById(this.getClass(), getId());
if (fresh == null) {
throw new StaleModelException("Failed to refresh self because probably record with " +
"this ID does... | java | public void refresh() {
QueryCache.instance().purgeTableCache(metaModelLocal);
Model fresh = ModelDelegate.findById(this.getClass(), getId());
if (fresh == null) {
throw new StaleModelException("Failed to refresh self because probably record with " +
"this ID does... | [
"public",
"void",
"refresh",
"(",
")",
"{",
"QueryCache",
".",
"instance",
"(",
")",
".",
"purgeTableCache",
"(",
"metaModelLocal",
")",
";",
"Model",
"fresh",
"=",
"ModelDelegate",
".",
"findById",
"(",
"this",
".",
"getClass",
"(",
")",
",",
"getId",
"... | Re-reads all attribute values from DB. Will invalidate cache and will force a trip to the database. | [
"Re",
"-",
"reads",
"all",
"attribute",
"values",
"from",
"DB",
".",
"Will",
"invalidate",
"cache",
"and",
"will",
"force",
"a",
"trip",
"to",
"the",
"database",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1365-L1374 |
115,088 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.getRaw | private Object getRaw(String attributeName) {
if(frozen){
throw new FrozenException(this);
}
if(attributeName == null) {
throw new IllegalArgumentException("attributeName cannot be null");
}
metaModelLocal.checkAttribute(attributeName);
return att... | java | private Object getRaw(String attributeName) {
if(frozen){
throw new FrozenException(this);
}
if(attributeName == null) {
throw new IllegalArgumentException("attributeName cannot be null");
}
metaModelLocal.checkAttribute(attributeName);
return att... | [
"private",
"Object",
"getRaw",
"(",
"String",
"attributeName",
")",
"{",
"if",
"(",
"frozen",
")",
"{",
"throw",
"new",
"FrozenException",
"(",
"this",
")",
";",
"}",
"if",
"(",
"attributeName",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentExcep... | Gets raw value of the attribute, without conversions applied. | [
"Gets",
"raw",
"value",
"of",
"the",
"attribute",
"without",
"conversions",
"applied",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1461-L1471 |
115,089 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.get | public <C extends Model> LazyList<C> get(Class<C> targetModelClass, String criteria, Object ... params){
OneToManyAssociation oneToManyAssociation = metaModelLocal.getAssociationForTarget(targetModelClass, OneToManyAssociation.class);
MetaModel mm = metaModelLocal;
Many2ManyAssociation manyToM... | java | public <C extends Model> LazyList<C> get(Class<C> targetModelClass, String criteria, Object ... params){
OneToManyAssociation oneToManyAssociation = metaModelLocal.getAssociationForTarget(targetModelClass, OneToManyAssociation.class);
MetaModel mm = metaModelLocal;
Many2ManyAssociation manyToM... | [
"public",
"<",
"C",
"extends",
"Model",
">",
"LazyList",
"<",
"C",
">",
"get",
"(",
"Class",
"<",
"C",
">",
"targetModelClass",
",",
"String",
"criteria",
",",
"Object",
"...",
"params",
")",
"{",
"OneToManyAssociation",
"oneToManyAssociation",
"=",
"metaMod... | Provides a list of child models in one to many, many to many and polymorphic associations, but in addition also allows to filter this list
by criteria.
<p></p>
<strong>1.</strong> For one to many, the criteria is against the child table.
<p></p>
<strong>2.</strong> For polymorphic association, the criteria is against... | [
"Provides",
"a",
"list",
"of",
"child",
"models",
"in",
"one",
"to",
"many",
"many",
"to",
"many",
"and",
"polymorphic",
"associations",
"but",
"in",
"addition",
"also",
"allows",
"to",
"filter",
"this",
"list",
"by",
"criteria",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1911-L1949 |
115,090 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.addScope | protected static void addScope(String name, String criteria) {
ModelDelegate.addScope(modelClass().getName(), name, criteria);
} | java | protected static void addScope(String name, String criteria) {
ModelDelegate.addScope(modelClass().getName(), name, criteria);
} | [
"protected",
"static",
"void",
"addScope",
"(",
"String",
"name",
",",
"String",
"criteria",
")",
"{",
"ModelDelegate",
".",
"addScope",
"(",
"modelClass",
"(",
")",
".",
"getName",
"(",
")",
",",
"name",
",",
"criteria",
")",
";",
"}"
] | Use in a static block of a model definotion to add a scope.
@param name name of scope
@param criteria SQL criteria for the scope filter | [
"Use",
"in",
"a",
"static",
"block",
"of",
"a",
"model",
"definotion",
"to",
"add",
"a",
"scope",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L1970-L1972 |
115,091 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.validateRegexpOf | protected static ValidationBuilder validateRegexpOf(String attributeName, String pattern) {
return ModelDelegate.validateRegexpOf(modelClass(), attributeName, pattern);
} | java | protected static ValidationBuilder validateRegexpOf(String attributeName, String pattern) {
return ModelDelegate.validateRegexpOf(modelClass(), attributeName, pattern);
} | [
"protected",
"static",
"ValidationBuilder",
"validateRegexpOf",
"(",
"String",
"attributeName",
",",
"String",
"pattern",
")",
"{",
"return",
"ModelDelegate",
".",
"validateRegexpOf",
"(",
"modelClass",
"(",
")",
",",
"attributeName",
",",
"pattern",
")",
";",
"}"... | Validates an attribite format with a ree hand regular expression.
@param attributeName attribute to validate.
@param pattern regexp pattern which must match the value. | [
"Validates",
"an",
"attribite",
"format",
"with",
"a",
"ree",
"hand",
"regular",
"expression",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2007-L2009 |
115,092 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.convertWith | @Deprecated
protected static ValidationBuilder convertWith(org.javalite.activejdbc.validation.Converter converter) {
return ModelDelegate.convertWith(modelClass(), converter);
} | java | @Deprecated
protected static ValidationBuilder convertWith(org.javalite.activejdbc.validation.Converter converter) {
return ModelDelegate.convertWith(modelClass(), converter);
} | [
"@",
"Deprecated",
"protected",
"static",
"ValidationBuilder",
"convertWith",
"(",
"org",
".",
"javalite",
".",
"activejdbc",
".",
"validation",
".",
"Converter",
"converter",
")",
"{",
"return",
"ModelDelegate",
".",
"convertWith",
"(",
"modelClass",
"(",
")",
... | Adds a custom converter to the model.
@param converter custom converter
@deprecated use {@link #convertWith(org.javalite.activejdbc.conversion.Converter, String...)} instead | [
"Adds",
"a",
"custom",
"converter",
"to",
"the",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2056-L2059 |
115,093 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.convertWith | protected static void convertWith(Converter converter, String... attributeNames) {
ModelDelegate.convertWith(modelClass(), converter, attributeNames);
} | java | protected static void convertWith(Converter converter, String... attributeNames) {
ModelDelegate.convertWith(modelClass(), converter, attributeNames);
} | [
"protected",
"static",
"void",
"convertWith",
"(",
"Converter",
"converter",
",",
"String",
"...",
"attributeNames",
")",
"{",
"ModelDelegate",
".",
"convertWith",
"(",
"modelClass",
"(",
")",
",",
"converter",
",",
"attributeNames",
")",
";",
"}"
] | Registers a custom converter for the specified attributes.
@param converter custom converter
@param attributeNames attribute names | [
"Registers",
"a",
"custom",
"converter",
"for",
"the",
"specified",
"attributes",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2067-L2069 |
115,094 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.validate | public void validate() {
fireBeforeValidation();
errors = new Errors();
List<Validator> validators = modelRegistryLocal.validators();
if (validators != null) {
for (Validator validator : validators) {
validator.validate(this);
}
}
f... | java | public void validate() {
fireBeforeValidation();
errors = new Errors();
List<Validator> validators = modelRegistryLocal.validators();
if (validators != null) {
for (Validator validator : validators) {
validator.validate(this);
}
}
f... | [
"public",
"void",
"validate",
"(",
")",
"{",
"fireBeforeValidation",
"(",
")",
";",
"errors",
"=",
"new",
"Errors",
"(",
")",
";",
"List",
"<",
"Validator",
">",
"validators",
"=",
"modelRegistryLocal",
".",
"validators",
"(",
")",
";",
"if",
"(",
"valid... | Executes all validators attached to this model. | [
"Executes",
"all",
"validators",
"attached",
"to",
"this",
"model",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2241-L2251 |
115,095 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.addValidator | public void addValidator(Validator validator, String errorKey) {
if(!errors.containsKey(errorKey))
errors.addValidator(errorKey, validator);
} | java | public void addValidator(Validator validator, String errorKey) {
if(!errors.containsKey(errorKey))
errors.addValidator(errorKey, validator);
} | [
"public",
"void",
"addValidator",
"(",
"Validator",
"validator",
",",
"String",
"errorKey",
")",
"{",
"if",
"(",
"!",
"errors",
".",
"containsKey",
"(",
"errorKey",
")",
")",
"errors",
".",
"addValidator",
"(",
"errorKey",
",",
"validator",
")",
";",
"}"
] | Binds a validator to an attribute if validation fails.
@param errorKey key of error in errors map. Usually this is a name of attribute,
but not limited to that, can be anything.
@param validator -validator that failed validation. | [
"Binds",
"a",
"validator",
"to",
"an",
"attribute",
"if",
"validation",
"fails",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2265-L2268 |
115,096 | javalite/activejdbc | activejdbc/src/main/java/org/javalite/activejdbc/Model.java | Model.count | public static Long count(String query, Object... params) {
return ModelDelegate.count(modelClass(), query, params);
} | java | public static Long count(String query, Object... params) {
return ModelDelegate.count(modelClass(), query, params);
} | [
"public",
"static",
"Long",
"count",
"(",
"String",
"query",
",",
"Object",
"...",
"params",
")",
"{",
"return",
"ModelDelegate",
".",
"count",
"(",
"modelClass",
"(",
")",
",",
"query",
",",
"params",
")",
";",
"}"
] | Returns count of records in table under a condition.
@param query query to select records to count.
@param params parameters (if any) for the query.
@return count of records in table under a condition. | [
"Returns",
"count",
"of",
"records",
"in",
"table",
"under",
"a",
"condition",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/activejdbc/src/main/java/org/javalite/activejdbc/Model.java#L2777-L2779 |
115,097 | javalite/activejdbc | app-config/src/main/java/org/javalite/app_config/AppConfig.java | AppConfig.setProperty | public static String setProperty(String name, String value) {
String val = null;
if(props.containsKey(name)){
val = props.get(name).getValue();
}
props.put(name, new Property(name, value, "dynamically added"));
LOGGER.warn("Temporary overriding property: " + name + ".... | java | public static String setProperty(String name, String value) {
String val = null;
if(props.containsKey(name)){
val = props.get(name).getValue();
}
props.put(name, new Property(name, value, "dynamically added"));
LOGGER.warn("Temporary overriding property: " + name + ".... | [
"public",
"static",
"String",
"setProperty",
"(",
"String",
"name",
",",
"String",
"value",
")",
"{",
"String",
"val",
"=",
"null",
";",
"if",
"(",
"props",
".",
"containsKey",
"(",
"name",
")",
")",
"{",
"val",
"=",
"props",
".",
"get",
"(",
"name",... | Sets a property in memory. If property exists, it will be overwritten, if not, a new one will be created.
@param name - name of property
@param value - value of property
@return old value | [
"Sets",
"a",
"property",
"in",
"memory",
".",
"If",
"property",
"exists",
"it",
"will",
"be",
"overwritten",
"if",
"not",
"a",
"new",
"one",
"will",
"be",
"created",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/app-config/src/main/java/org/javalite/app_config/AppConfig.java#L231-L239 |
115,098 | javalite/activejdbc | app-config/src/main/java/org/javalite/app_config/AppConfig.java | AppConfig.getProperty | public static String getProperty(String key) {
if (!isInited()) {
init();
}
Property p = props.get(key);
return p == null ? null : p.getValue();
} | java | public static String getProperty(String key) {
if (!isInited()) {
init();
}
Property p = props.get(key);
return p == null ? null : p.getValue();
} | [
"public",
"static",
"String",
"getProperty",
"(",
"String",
"key",
")",
"{",
"if",
"(",
"!",
"isInited",
"(",
")",
")",
"{",
"init",
"(",
")",
";",
"}",
"Property",
"p",
"=",
"props",
".",
"get",
"(",
"key",
")",
";",
"return",
"p",
"==",
"null",... | Returns property value for a key.
@param key key of property.
@return value for this key, <code>null</code> if not found. | [
"Returns",
"property",
"value",
"for",
"a",
"key",
"."
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/app-config/src/main/java/org/javalite/app_config/AppConfig.java#L260-L266 |
115,099 | javalite/activejdbc | app-config/src/main/java/org/javalite/app_config/AppConfig.java | AppConfig.getKeys | public static List<String> getKeys(String prefix) {
List<String> res = new ArrayList<>();
for(String key: props.keySet()){
if(key.startsWith(prefix)){
res.add(key);
}
}
return res;
} | java | public static List<String> getKeys(String prefix) {
List<String> res = new ArrayList<>();
for(String key: props.keySet()){
if(key.startsWith(prefix)){
res.add(key);
}
}
return res;
} | [
"public",
"static",
"List",
"<",
"String",
">",
"getKeys",
"(",
"String",
"prefix",
")",
"{",
"List",
"<",
"String",
">",
"res",
"=",
"new",
"ArrayList",
"<>",
"(",
")",
";",
"for",
"(",
"String",
"key",
":",
"props",
".",
"keySet",
"(",
")",
")",
... | Returns all keys that start with a prefix
@param prefix prefix for properties. | [
"Returns",
"all",
"keys",
"that",
"start",
"with",
"a",
"prefix"
] | ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc | https://github.com/javalite/activejdbc/blob/ffcf5457cace19622a8f71e856cbbbe9e7dd5fcc/app-config/src/main/java/org/javalite/app_config/AppConfig.java#L407-L415 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.