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
107,300
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/config/loader/AbstractLoader.java
AbstractLoader.loadConfig
public Observable<Tuple2<LoaderType, BucketConfig>> loadConfig(final NetworkAddress seedNode, final String bucket, final String password) { LOGGER.debug("Loading Config for bucket {}", bucket); return loadConfig(seedNode, bucket, bucket,...
java
public Observable<Tuple2<LoaderType, BucketConfig>> loadConfig(final NetworkAddress seedNode, final String bucket, final String password) { LOGGER.debug("Loading Config for bucket {}", bucket); return loadConfig(seedNode, bucket, bucket,...
[ "public", "Observable", "<", "Tuple2", "<", "LoaderType", ",", "BucketConfig", ">", ">", "loadConfig", "(", "final", "NetworkAddress", "seedNode", ",", "final", "String", "bucket", ",", "final", "String", "password", ")", "{", "LOGGER", ".", "debug", "(", "\...
Initiate the config loading process. @param seedNode the seed node. @param bucket the name of the bucket. @param password the password of the bucket. @return a valid {@link BucketConfig}.
[ "Initiate", "the", "config", "loading", "process", "." ]
97f0427112c2168fee1d6499904f5fa0e24c6797
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/config/loader/AbstractLoader.java#L121-L125
107,301
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/config/loader/AbstractLoader.java
AbstractLoader.replaceHostWildcard
protected String replaceHostWildcard(String input, NetworkAddress hostname) { return input.replace("$HOST", hostname.address()); }
java
protected String replaceHostWildcard(String input, NetworkAddress hostname) { return input.replace("$HOST", hostname.address()); }
[ "protected", "String", "replaceHostWildcard", "(", "String", "input", ",", "NetworkAddress", "hostname", ")", "{", "return", "input", ".", "replace", "(", "\"$HOST\"", ",", "hostname", ".", "address", "(", ")", ")", ";", "}" ]
Replaces the host wildcard from an incoming config with a proper hostname. @param input the input config. @param hostname the hostname to replace it with. @return a replaced configuration.
[ "Replaces", "the", "host", "wildcard", "from", "an", "incoming", "config", "with", "a", "proper", "hostname", "." ]
97f0427112c2168fee1d6499904f5fa0e24c6797
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/config/loader/AbstractLoader.java#L237-L239
107,302
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/event/system/NodeConnectedEvent.java
NodeConnectedEvent.host
public InetAddress host() { try { return InetAddress.getByName(host.address()); } catch (UnknownHostException e) { throw new IllegalStateException(e); } }
java
public InetAddress host() { try { return InetAddress.getByName(host.address()); } catch (UnknownHostException e) { throw new IllegalStateException(e); } }
[ "public", "InetAddress", "host", "(", ")", "{", "try", "{", "return", "InetAddress", ".", "getByName", "(", "host", ".", "address", "(", ")", ")", ";", "}", "catch", "(", "UnknownHostException", "e", ")", "{", "throw", "new", "IllegalStateException", "(", ...
The host address of the connected node. @return the inet address of the connected node.
[ "The", "host", "address", "of", "the", "connected", "node", "." ]
97f0427112c2168fee1d6499904f5fa0e24c6797
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/event/system/NodeConnectedEvent.java#L51-L57
107,303
couchbase/couchbase-jvm-core
src/main/java/com/couchbase/client/core/endpoint/kv/KeyValueErrorMapHandler.java
KeyValueErrorMapHandler.errorMapRequest
private FullBinaryMemcacheRequest errorMapRequest() { LOGGER.debug("Requesting error map in version {}", MAP_VERSION); ByteBuf content = Unpooled.buffer(2).writeShort(MAP_VERSION); FullBinaryMemcacheRequest request = new DefaultFullBinaryMemcacheRequest( new byte[] {}, Unpooled.EMPTY...
java
private FullBinaryMemcacheRequest errorMapRequest() { LOGGER.debug("Requesting error map in version {}", MAP_VERSION); ByteBuf content = Unpooled.buffer(2).writeShort(MAP_VERSION); FullBinaryMemcacheRequest request = new DefaultFullBinaryMemcacheRequest( new byte[] {}, Unpooled.EMPTY...
[ "private", "FullBinaryMemcacheRequest", "errorMapRequest", "(", ")", "{", "LOGGER", ".", "debug", "(", "\"Requesting error map in version {}\"", ",", "MAP_VERSION", ")", ";", "ByteBuf", "content", "=", "Unpooled", ".", "buffer", "(", "2", ")", ".", "writeShort", "...
Creates the request to load the error map.
[ "Creates", "the", "request", "to", "load", "the", "error", "map", "." ]
97f0427112c2168fee1d6499904f5fa0e24c6797
https://github.com/couchbase/couchbase-jvm-core/blob/97f0427112c2168fee1d6499904f5fa0e24c6797/src/main/java/com/couchbase/client/core/endpoint/kv/KeyValueErrorMapHandler.java#L94-L103
107,304
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.getStreamingProfile
public ApiResponse getStreamingProfile(String name, Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Arrays.asList("streaming_profiles", name); return callApi(HttpMethod.GET, uri, ObjectUtils.emptyMap(), options); }
java
public ApiResponse getStreamingProfile(String name, Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Arrays.asList("streaming_profiles", name); return callApi(HttpMethod.GET, uri, ObjectUtils.emptyMap(), options); }
[ "public", "ApiResponse", "getStreamingProfile", "(", "String", "name", ",", "Map", "options", ")", "throws", "Exception", "{", "if", "(", "options", "==", "null", ")", "options", "=", "ObjectUtils", ".", "emptyMap", "(", ")", ";", "List", "<", "String", ">...
Get a streaming profile information @param name the name of the profile to fetch @param options additional options @return a streaming profile @throws Exception an exception
[ "Get", "a", "streaming", "profile", "information" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L380-L387
107,305
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.listStreamingProfiles
public ApiResponse listStreamingProfiles(Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Collections.singletonList("streaming_profiles"); return callApi(HttpMethod.GET, uri, ObjectUtils.emptyMap(), options); }
java
public ApiResponse listStreamingProfiles(Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Collections.singletonList("streaming_profiles"); return callApi(HttpMethod.GET, uri, ObjectUtils.emptyMap(), options); }
[ "public", "ApiResponse", "listStreamingProfiles", "(", "Map", "options", ")", "throws", "Exception", "{", "if", "(", "options", "==", "null", ")", "options", "=", "ObjectUtils", ".", "emptyMap", "(", ")", ";", "List", "<", "String", ">", "uri", "=", "Colle...
List Streaming profiles @param options additional options @return a list of all streaming profiles defined for the current cloud @throws Exception an exception
[ "List", "Streaming", "profiles" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L402-L408
107,306
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.deleteStreamingProfile
public ApiResponse deleteStreamingProfile(String name, Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Arrays.asList("streaming_profiles", name); return callApi(HttpMethod.DELETE, uri, ObjectUtils.emptyMap(), options); }
java
public ApiResponse deleteStreamingProfile(String name, Map options) throws Exception { if (options == null) options = ObjectUtils.emptyMap(); List<String> uri = Arrays.asList("streaming_profiles", name); return callApi(HttpMethod.DELETE, uri, ObjectUtils.emptyMap(), options); }
[ "public", "ApiResponse", "deleteStreamingProfile", "(", "String", "name", ",", "Map", "options", ")", "throws", "Exception", "{", "if", "(", "options", "==", "null", ")", "options", "=", "ObjectUtils", ".", "emptyMap", "(", ")", ";", "List", "<", "String", ...
Delete a streaming profile information. Predefined profiles are restored to the default setting. @param name the name of the profile to delete @param options additional options @return a streaming profile @throws Exception an exception
[ "Delete", "a", "streaming", "profile", "information", ".", "Predefined", "profiles", "are", "restored", "to", "the", "default", "setting", "." ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L424-L431
107,307
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.updateResourcesAccessModeByPrefix
public ApiResponse updateResourcesAccessModeByPrefix(String accessMode, String prefix, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "prefix", prefix, options); }
java
public ApiResponse updateResourcesAccessModeByPrefix(String accessMode, String prefix, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "prefix", prefix, options); }
[ "public", "ApiResponse", "updateResourcesAccessModeByPrefix", "(", "String", "accessMode", ",", "String", "prefix", ",", "Map", "options", ")", "throws", "Exception", "{", "return", "updateResourcesAccessMode", "(", "accessMode", ",", "\"prefix\"", ",", "prefix", ",",...
Update access mode of one or more resources by prefix @param accessMode The new access mode, "public" or "authenticated" @param prefix The prefix by which to filter applicable resources @param options additional options <ul> <li>resource_type - (default "image") - the type of resources to modify</li> <li>max_r...
[ "Update", "access", "mode", "of", "one", "or", "more", "resources", "by", "prefix" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L496-L498
107,308
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.updateResourcesAccessModeByTag
public ApiResponse updateResourcesAccessModeByTag(String accessMode, String tag, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "tag", tag, options); }
java
public ApiResponse updateResourcesAccessModeByTag(String accessMode, String tag, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "tag", tag, options); }
[ "public", "ApiResponse", "updateResourcesAccessModeByTag", "(", "String", "accessMode", ",", "String", "tag", ",", "Map", "options", ")", "throws", "Exception", "{", "return", "updateResourcesAccessMode", "(", "accessMode", ",", "\"tag\"", ",", "tag", ",", "options"...
Update access mode of one or more resources by tag @param accessMode The new access mode, "public" or "authenticated" @param tag The tag by which to filter applicable resources @param options additional options <ul> <li>resource_type - (default "image") - the type of resources to modify</li> <li>max_results...
[ "Update", "access", "mode", "of", "one", "or", "more", "resources", "by", "tag" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L518-L520
107,309
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Api.java
Api.updateResourcesAccessModeByIds
public ApiResponse updateResourcesAccessModeByIds(String accessMode, Iterable<String> publicIds, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "public_ids", publicIds, options); }
java
public ApiResponse updateResourcesAccessModeByIds(String accessMode, Iterable<String> publicIds, Map options) throws Exception { return updateResourcesAccessMode(accessMode, "public_ids", publicIds, options); }
[ "public", "ApiResponse", "updateResourcesAccessModeByIds", "(", "String", "accessMode", ",", "Iterable", "<", "String", ">", "publicIds", ",", "Map", "options", ")", "throws", "Exception", "{", "return", "updateResourcesAccessMode", "(", "accessMode", ",", "\"public_i...
Update access mode of one or more resources by publicIds @param accessMode The new access mode, "public" or "authenticated" @param publicIds A list of public ids of resources to be updated @param options additional options <ul> <li>resource_type - (default "image") - the type of resources to modify</li> <li>max_r...
[ "Update", "access", "mode", "of", "one", "or", "more", "resources", "by", "publicIds" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Api.java#L540-L542
107,310
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/AuthToken.java
AuthToken.generate
public String generate(String url) { long expiration = this.expiration; if (expiration == 0) { if (duration > 0) { final long start = startTime > 0 ? startTime : Calendar.getInstance(TimeZone.getTimeZone("UTC")).getTimeInMillis() / 1000L; expiration = start + ...
java
public String generate(String url) { long expiration = this.expiration; if (expiration == 0) { if (duration > 0) { final long start = startTime > 0 ? startTime : Calendar.getInstance(TimeZone.getTimeZone("UTC")).getTimeInMillis() / 1000L; expiration = start + ...
[ "public", "String", "generate", "(", "String", "url", ")", "{", "long", "expiration", "=", "this", ".", "expiration", ";", "if", "(", "expiration", "==", "0", ")", "{", "if", "(", "duration", ">", "0", ")", "{", "final", "long", "start", "=", "startT...
Generate a URL token for the given URL. @param url the URL to be authorized @return a URL token
[ "Generate", "a", "URL", "token", "for", "the", "given", "URL", "." ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/AuthToken.java#L144-L173
107,311
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/AuthToken.java
AuthToken.escapeToLower
private String escapeToLower(String url) { String encodedUrl = StringUtils.urlEncode(url, UNSAFE_URL_CHARS_PATTERN, Charset.forName("UTF-8")); return encodedUrl; }
java
private String escapeToLower(String url) { String encodedUrl = StringUtils.urlEncode(url, UNSAFE_URL_CHARS_PATTERN, Charset.forName("UTF-8")); return encodedUrl; }
[ "private", "String", "escapeToLower", "(", "String", "url", ")", "{", "String", "encodedUrl", "=", "StringUtils", ".", "urlEncode", "(", "url", ",", "UNSAFE_URL_CHARS_PATTERN", ",", "Charset", ".", "forName", "(", "\"UTF-8\"", ")", ")", ";", "return", "encoded...
Escape url using lowercase hex code @param url a url string @return escaped url
[ "Escape", "url", "using", "lowercase", "hex", "code" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/AuthToken.java#L181-L184
107,312
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/AuthToken.java
AuthToken.copy
public AuthToken copy() { final AuthToken authToken = new AuthToken(key); authToken.tokenName = tokenName; authToken.startTime = startTime; authToken.expiration = expiration; authToken.ip = ip; authToken.acl = acl; authToken.duration = duration; return aut...
java
public AuthToken copy() { final AuthToken authToken = new AuthToken(key); authToken.tokenName = tokenName; authToken.startTime = startTime; authToken.expiration = expiration; authToken.ip = ip; authToken.acl = acl; authToken.duration = duration; return aut...
[ "public", "AuthToken", "copy", "(", ")", "{", "final", "AuthToken", "authToken", "=", "new", "AuthToken", "(", "key", ")", ";", "authToken", ".", "tokenName", "=", "tokenName", ";", "authToken", ".", "startTime", "=", "startTime", ";", "authToken", ".", "e...
Create a copy of this AuthToken @return a new AuthToken object
[ "Create", "a", "copy", "of", "this", "AuthToken" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/AuthToken.java#L191-L200
107,313
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/transformation/BaseExpression.java
BaseExpression.normalize
public static String normalize(Object expression) { if (expression == null) { return null; } // If it's a number it's not an expression if (expression instanceof Number){ return String.valueOf(expression); } String replacement; String con...
java
public static String normalize(Object expression) { if (expression == null) { return null; } // If it's a number it's not an expression if (expression instanceof Number){ return String.valueOf(expression); } String replacement; String con...
[ "public", "static", "String", "normalize", "(", "Object", "expression", ")", "{", "if", "(", "expression", "==", "null", ")", "{", "return", "null", ";", "}", "// If it's a number it's not an expression", "if", "(", "expression", "instanceof", "Number", ")", "{"...
Normalize an expression string, replace "nice names" with their coded values and spaces with "_". @param expression an expression @return a parsed expression
[ "Normalize", "an", "expression", "string", "replace", "nice", "names", "with", "their", "coded", "values", "and", "spaces", "with", "_", "." ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/transformation/BaseExpression.java#L66-L92
107,314
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.join
public static String join(List<String> list, String separator) { if (list == null) { return null; } return join(list.toArray(), separator, 0, list.size()); }
java
public static String join(List<String> list, String separator) { if (list == null) { return null; } return join(list.toArray(), separator, 0, list.size()); }
[ "public", "static", "String", "join", "(", "List", "<", "String", ">", "list", ",", "String", "separator", ")", "{", "if", "(", "list", "==", "null", ")", "{", "return", "null", ";", "}", "return", "join", "(", "list", ".", "toArray", "(", ")", ","...
Join a list of Strings @param list strings to join @param separator the separator to insert between the strings @return a string made of the strings in list separated by separator
[ "Join", "a", "list", "of", "Strings" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L22-L28
107,315
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.join
public static String join(Collection<String> collection, String separator) { if (collection == null) { return null; } return join(collection.toArray(new String[collection.size()]), separator, 0, collection.size()); }
java
public static String join(Collection<String> collection, String separator) { if (collection == null) { return null; } return join(collection.toArray(new String[collection.size()]), separator, 0, collection.size()); }
[ "public", "static", "String", "join", "(", "Collection", "<", "String", ">", "collection", ",", "String", "separator", ")", "{", "if", "(", "collection", "==", "null", ")", "{", "return", "null", ";", "}", "return", "join", "(", "collection", ".", "toArr...
Join a collection of Strings @param collection strings to join @param separator the separator to insert between the strings @return a string made of the strings in collection separated by separator
[ "Join", "a", "collection", "of", "Strings" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L51-L56
107,316
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.encodeHexString
public static String encodeHexString(byte[] bytes) { char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; hexChars[j * 2 + 1] = hexArray[v & 0x0F]; } return...
java
public static String encodeHexString(byte[] bytes) { char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; hexChars[j * 2 + 1] = hexArray[v & 0x0F]; } return...
[ "public", "static", "String", "encodeHexString", "(", "byte", "[", "]", "bytes", ")", "{", "char", "[", "]", "hexChars", "=", "new", "char", "[", "bytes", ".", "length", "*", "2", "]", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "bytes"...
Convert an array of bytes to a string of hex values @param bytes bytes to convert @return a string of hex values.
[ "Convert", "an", "array", "of", "bytes", "to", "a", "string", "of", "hex", "values" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L101-L109
107,317
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.read
public static String read(InputStream in) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int length = 0; while ((length = in.read(buffer)) != -1) { baos.write(buffer, 0, length); } return new Stri...
java
public static String read(InputStream in) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int length = 0; while ((length = in.read(buffer)) != -1) { baos.write(buffer, 0, length); } return new Stri...
[ "public", "static", "String", "read", "(", "InputStream", "in", ")", "throws", "IOException", "{", "ByteArrayOutputStream", "baos", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "1024", "]", ";", "...
Read the entire input stream in 1KB chunks @param in input stream to read from @return a String generated from the input stream @throws IOException thrown by the input stream
[ "Read", "the", "entire", "input", "stream", "in", "1KB", "chunks" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L201-L209
107,318
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.replaceIfFirstChar
public static String replaceIfFirstChar(String s, char c, String replacement) { return s.charAt(0) == c ? replacement + s.substring(1) : s; }
java
public static String replaceIfFirstChar(String s, char c, String replacement) { return s.charAt(0) == c ? replacement + s.substring(1) : s; }
[ "public", "static", "String", "replaceIfFirstChar", "(", "String", "s", ",", "char", "c", ",", "String", "replacement", ")", "{", "return", "s", ".", "charAt", "(", "0", ")", "==", "c", "?", "replacement", "+", "s", ".", "substring", "(", "1", ")", "...
Replaces the char c in the string S, if it's the first character in the string. @param s The string to search @param c The character to replace @param replacement The string to replace the character in S @return The string with the character replaced (or the original string if the char is not found)
[ "Replaces", "the", "char", "c", "in", "the", "string", "S", "if", "it", "s", "the", "first", "character", "in", "the", "string", "." ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L305-L307
107,319
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java
StringUtils.removeStartingChars
public static String removeStartingChars(String s, char c) { int lastToRemove = -1; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == c) { lastToRemove = i; continue; } if (s.charAt(i) != c) { break; ...
java
public static String removeStartingChars(String s, char c) { int lastToRemove = -1; for (int i = 0; i < s.length(); i++) { if (s.charAt(i) == c) { lastToRemove = i; continue; } if (s.charAt(i) != c) { break; ...
[ "public", "static", "String", "removeStartingChars", "(", "String", "s", ",", "char", "c", ")", "{", "int", "lastToRemove", "=", "-", "1", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "s", ".", "length", "(", ")", ";", "i", "++", ")", ...
Remove all consecutive chars c from the beginning of the string @param s String to process @param c Char to search for @return The string stripped from the starting chars.
[ "Remove", "all", "consecutive", "chars", "c", "from", "the", "beginning", "of", "the", "string" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/StringUtils.java#L325-L340
107,320
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/utils/ObjectUtils.java
ObjectUtils.toISO8601
public static String toISO8601(Date date){ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.US); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); return dateFormat.format(date); }
java
public static String toISO8601(Date date){ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.US); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); return dateFormat.format(date); }
[ "public", "static", "String", "toISO8601", "(", "Date", "date", ")", "{", "DateFormat", "dateFormat", "=", "new", "SimpleDateFormat", "(", "\"yyyy-MM-dd'T'HH:mm:ssXXX\"", ",", "Locale", ".", "US", ")", ";", "dateFormat", ".", "setTimeZone", "(", "TimeZone", ".",...
Formats a Date as an ISO-8601 string representation. @param date Date to format @return The date formatted as ISO-8601 string
[ "Formats", "a", "Date", "as", "an", "ISO", "-", "8601", "string", "representation", "." ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/utils/ObjectUtils.java#L19-L23
107,321
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/Transformation.java
Transformation.isValidAttrValue
private boolean isValidAttrValue(String value) { final float parseFloat; try { parseFloat = Float.parseFloat(value); } catch (NumberFormatException e) { return false; } return parseFloat >= 1; }
java
private boolean isValidAttrValue(String value) { final float parseFloat; try { parseFloat = Float.parseFloat(value); } catch (NumberFormatException e) { return false; } return parseFloat >= 1; }
[ "private", "boolean", "isValidAttrValue", "(", "String", "value", ")", "{", "final", "float", "parseFloat", ";", "try", "{", "parseFloat", "=", "Float", ".", "parseFloat", "(", "value", ")", ";", "}", "catch", "(", "NumberFormatException", "e", ")", "{", "...
Check if the value is a float >= 1 @param value @return true if the value is a float >= 1
[ "Check", "if", "the", "value", "is", "a", "float", ">", "=", "1" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/Transformation.java#L762-L770
107,322
cloudinary/cloudinary_java
cloudinary-core/src/main/java/com/cloudinary/AccessControlRule.java
AccessControlRule.anonymous
public static AccessControlRule anonymous(Date start, Date end){ return new AccessControlRule(AccessType.anonymous, start, end); }
java
public static AccessControlRule anonymous(Date start, Date end){ return new AccessControlRule(AccessType.anonymous, start, end); }
[ "public", "static", "AccessControlRule", "anonymous", "(", "Date", "start", ",", "Date", "end", ")", "{", "return", "new", "AccessControlRule", "(", "AccessType", ".", "anonymous", ",", "start", ",", "end", ")", ";", "}" ]
Construct a new anonymous access rule @param start The start date for the rule @param end The end date for the rule @return The access rule instance
[ "Construct", "a", "new", "anonymous", "access", "rule" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-core/src/main/java/com/cloudinary/AccessControlRule.java#L45-L47
107,323
cloudinary/cloudinary_java
cloudinary-http43/src/main/java/com/cloudinary/http43/ApiStrategy.java
ApiStrategy.prepareRequest
private HttpUriRequest prepareRequest(HttpMethod method, String apiUrl, Map<String, ?> params, Map options) throws URISyntaxException, UnsupportedEncodingException { URI apiUri; HttpRequestBase request; String contentType = ObjectUtils.asString(options.get("content_type"), "urlencoded"); ...
java
private HttpUriRequest prepareRequest(HttpMethod method, String apiUrl, Map<String, ?> params, Map options) throws URISyntaxException, UnsupportedEncodingException { URI apiUri; HttpRequestBase request; String contentType = ObjectUtils.asString(options.get("content_type"), "urlencoded"); ...
[ "private", "HttpUriRequest", "prepareRequest", "(", "HttpMethod", "method", ",", "String", "apiUrl", ",", "Map", "<", "String", ",", "?", ">", "params", ",", "Map", "options", ")", "throws", "URISyntaxException", ",", "UnsupportedEncodingException", "{", "URI", ...
Prepare a request with the URL and parameters based on the HTTP method used @param method the HTTP method: GET, PUT, POST, DELETE @param apiUrl the cloudinary API URI @param params the parameters to pass to the server @return an HTTP request @throws URISyntaxException @throws UnsupportedEncodingException
[ "Prepare", "a", "request", "with", "the", "URL", "and", "parameters", "based", "on", "the", "HTTP", "method", "used" ]
58ee1823180da2dea6a2eb7e5cf00d5a760f8aef
https://github.com/cloudinary/cloudinary_java/blob/58ee1823180da2dea6a2eb7e5cf00d5a760f8aef/cloudinary-http43/src/main/java/com/cloudinary/http43/ApiStrategy.java#L141-L179
107,324
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestClient.java
RestClient.isStatusCodeOK
private boolean isStatusCodeOK(Response response, String uri) { if (response.getStatus() == Status.OK.getStatusCode() || response.getStatus() == Status.CREATED.getStatusCode()) { return true; } else if (response.getStatus() == Status.UNAUTHORIZED.getStatusCode()) { throw new NotAuthorizedException("UNAUTH...
java
private boolean isStatusCodeOK(Response response, String uri) { if (response.getStatus() == Status.OK.getStatusCode() || response.getStatus() == Status.CREATED.getStatusCode()) { return true; } else if (response.getStatus() == Status.UNAUTHORIZED.getStatusCode()) { throw new NotAuthorizedException("UNAUTH...
[ "private", "boolean", "isStatusCodeOK", "(", "Response", "response", ",", "String", "uri", ")", "{", "if", "(", "response", ".", "getStatus", "(", ")", "==", "Status", ".", "OK", ".", "getStatusCode", "(", ")", "||", "response", ".", "getStatus", "(", ")...
Checks if is status code ok. @param response the response @param uri the uri @return true, if is status code ok
[ "Checks", "if", "is", "status", "code", "ok", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestClient.java#L180-L196
107,325
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestClient.java
RestClient.createWebTarget
private WebTarget createWebTarget(String restPath, Map<String, String> queryParams) { WebTarget webTarget; try { URI u = new URI(this.baseURI + "/plugins/restapi/v1/" + restPath); Client client = createRestClient(); webTarget = client.target(u); if (queryParams != null && !queryParams.isEmpty()) { ...
java
private WebTarget createWebTarget(String restPath, Map<String, String> queryParams) { WebTarget webTarget; try { URI u = new URI(this.baseURI + "/plugins/restapi/v1/" + restPath); Client client = createRestClient(); webTarget = client.target(u); if (queryParams != null && !queryParams.isEmpty()) { ...
[ "private", "WebTarget", "createWebTarget", "(", "String", "restPath", ",", "Map", "<", "String", ",", "String", ">", "queryParams", ")", "{", "WebTarget", "webTarget", ";", "try", "{", "URI", "u", "=", "new", "URI", "(", "this", ".", "baseURI", "+", "\"/...
Creates the web target. @param restPath the rest path @param queryParams the query params @return the web target
[ "Creates", "the", "web", "target", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestClient.java#L207-L228
107,326
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestClient.java
RestClient.createRestClient
private Client createRestClient() throws KeyManagementException, NoSuchAlgorithmException { ClientConfig clientConfig = new ClientConfig(); // Set connection timeout if (this.connectionTimeout != 0) { clientConfig.property(ClientProperties.CONNECT_TIMEOUT, this.connectionTimeout); clientConfig.property(Clie...
java
private Client createRestClient() throws KeyManagementException, NoSuchAlgorithmException { ClientConfig clientConfig = new ClientConfig(); // Set connection timeout if (this.connectionTimeout != 0) { clientConfig.property(ClientProperties.CONNECT_TIMEOUT, this.connectionTimeout); clientConfig.property(Clie...
[ "private", "Client", "createRestClient", "(", ")", "throws", "KeyManagementException", ",", "NoSuchAlgorithmException", "{", "ClientConfig", "clientConfig", "=", "new", "ClientConfig", "(", ")", ";", "// Set connection timeout", "if", "(", "this", ".", "connectionTimeou...
Creater rest client. @return the client @throws KeyManagementException the key management exception @throws NoSuchAlgorithmException the no such algorithm exception
[ "Creater", "rest", "client", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestClient.java#L253-L272
107,327
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestClient.java
RestClient.createSLLClient
private Client createSLLClient(ClientConfig clientConfig) throws KeyManagementException, NoSuchAlgorithmException { TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted(X509Certificat...
java
private Client createSLLClient(ClientConfig clientConfig) throws KeyManagementException, NoSuchAlgorithmException { TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() { public X509Certificate[] getAcceptedIssuers() { return null; } public void checkClientTrusted(X509Certificat...
[ "private", "Client", "createSLLClient", "(", "ClientConfig", "clientConfig", ")", "throws", "KeyManagementException", ",", "NoSuchAlgorithmException", "{", "TrustManager", "[", "]", "trustAllCerts", "=", "new", "TrustManager", "[", "]", "{", "new", "X509TrustManager", ...
Creates the sll client. @param clientConfig the client config @return the client config @throws KeyManagementException the key management exception @throws NoSuchAlgorithmException the no such algorithm exception
[ "Creates", "the", "sll", "client", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestClient.java#L292-L322
107,328
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getUser
public UserEntity getUser(String username) { UserEntity userEntity = restClient.get("users/" + username, UserEntity.class, new HashMap<String, String>()); return userEntity; }
java
public UserEntity getUser(String username) { UserEntity userEntity = restClient.get("users/" + username, UserEntity.class, new HashMap<String, String>()); return userEntity; }
[ "public", "UserEntity", "getUser", "(", "String", "username", ")", "{", "UserEntity", "userEntity", "=", "restClient", ".", "get", "(", "\"users/\"", "+", "username", ",", "UserEntity", ".", "class", ",", "new", "HashMap", "<", "String", ",", "String", ">", ...
Gets the user. @param username the username @return the user
[ "Gets", "the", "user", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L125-L128
107,329
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.createUser
public Response createUser(UserEntity userEntity) { return restClient.post("users", userEntity, new HashMap<String, String>()); }
java
public Response createUser(UserEntity userEntity) { return restClient.post("users", userEntity, new HashMap<String, String>()); }
[ "public", "Response", "createUser", "(", "UserEntity", "userEntity", ")", "{", "return", "restClient", ".", "post", "(", "\"users\"", ",", "userEntity", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Creates the user. @param userEntity the user entity @return the response
[ "Creates", "the", "user", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L137-L139
107,330
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteUser
public Response deleteUser(String username) { return restClient.delete("users/" + username, new HashMap<String, String>()); }
java
public Response deleteUser(String username) { return restClient.delete("users/" + username, new HashMap<String, String>()); }
[ "public", "Response", "deleteUser", "(", "String", "username", ")", "{", "return", "restClient", ".", "delete", "(", "\"users/\"", "+", "username", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Delete user. @param username the username @return the response
[ "Delete", "user", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L159-L161
107,331
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getChatRooms
public MUCRoomEntities getChatRooms(Map<String, String> queryParams) { return restClient.get("chatrooms", MUCRoomEntities.class, queryParams); }
java
public MUCRoomEntities getChatRooms(Map<String, String> queryParams) { return restClient.get("chatrooms", MUCRoomEntities.class, queryParams); }
[ "public", "MUCRoomEntities", "getChatRooms", "(", "Map", "<", "String", ",", "String", ">", "queryParams", ")", "{", "return", "restClient", ".", "get", "(", "\"chatrooms\"", ",", "MUCRoomEntities", ".", "class", ",", "queryParams", ")", ";", "}" ]
Gets the chat rooms. @param queryParams the query params @return the chat rooms
[ "Gets", "the", "chat", "rooms", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L179-L181
107,332
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getChatRoom
public MUCRoomEntity getChatRoom(String roomName) { return restClient.get("chatrooms/" + roomName, MUCRoomEntity.class, new HashMap<String, String>()); }
java
public MUCRoomEntity getChatRoom(String roomName) { return restClient.get("chatrooms/" + roomName, MUCRoomEntity.class, new HashMap<String, String>()); }
[ "public", "MUCRoomEntity", "getChatRoom", "(", "String", "roomName", ")", "{", "return", "restClient", ".", "get", "(", "\"chatrooms/\"", "+", "roomName", ",", "MUCRoomEntity", ".", "class", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")",...
Gets the chat room. @param roomName the room name @return the chat room
[ "Gets", "the", "chat", "room", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L190-L192
107,333
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.createChatRoom
public Response createChatRoom(MUCRoomEntity chatRoom) { return restClient.post("chatrooms", chatRoom, new HashMap<String, String>()); }
java
public Response createChatRoom(MUCRoomEntity chatRoom) { return restClient.post("chatrooms", chatRoom, new HashMap<String, String>()); }
[ "public", "Response", "createChatRoom", "(", "MUCRoomEntity", "chatRoom", ")", "{", "return", "restClient", ".", "post", "(", "\"chatrooms\"", ",", "chatRoom", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Creates the chat room. @param chatRoom the chat room @return the response
[ "Creates", "the", "chat", "room", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L201-L203
107,334
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.updateChatRoom
public Response updateChatRoom(MUCRoomEntity chatRoom) { return restClient.put("chatrooms/" + chatRoom.getRoomName(), chatRoom, new HashMap<String, String>()); }
java
public Response updateChatRoom(MUCRoomEntity chatRoom) { return restClient.put("chatrooms/" + chatRoom.getRoomName(), chatRoom, new HashMap<String, String>()); }
[ "public", "Response", "updateChatRoom", "(", "MUCRoomEntity", "chatRoom", ")", "{", "return", "restClient", ".", "put", "(", "\"chatrooms/\"", "+", "chatRoom", ".", "getRoomName", "(", ")", ",", "chatRoom", ",", "new", "HashMap", "<", "String", ",", "String", ...
Update chat room. @param chatRoom the chat room @return the response
[ "Update", "chat", "room", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L212-L214
107,335
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteChatRoom
public Response deleteChatRoom(String roomName) { return restClient.delete("chatrooms/" + roomName, new HashMap<String, String>()); }
java
public Response deleteChatRoom(String roomName) { return restClient.delete("chatrooms/" + roomName, new HashMap<String, String>()); }
[ "public", "Response", "deleteChatRoom", "(", "String", "roomName", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Delete chat room. @param roomName the room name @return the response
[ "Delete", "chat", "room", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L223-L225
107,336
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getChatRoomParticipants
public ParticipantEntities getChatRoomParticipants(String roomName) { return restClient.get("chatrooms/" + roomName + "/participants", ParticipantEntities.class, new HashMap<String, String>()); }
java
public ParticipantEntities getChatRoomParticipants(String roomName) { return restClient.get("chatrooms/" + roomName + "/participants", ParticipantEntities.class, new HashMap<String, String>()); }
[ "public", "ParticipantEntities", "getChatRoomParticipants", "(", "String", "roomName", ")", "{", "return", "restClient", ".", "get", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/participants\"", ",", "ParticipantEntities", ".", "class", ",", "new", "HashMap", "<...
Gets the chat room participants. @param roomName the room name @return the chat room participants
[ "Gets", "the", "chat", "room", "participants", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L234-L237
107,337
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteOwner
public Response deleteOwner(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/owners/" + jid, new HashMap<String, String>()); }
java
public Response deleteOwner(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/owners/" + jid, new HashMap<String, String>()); }
[ "public", "Response", "deleteOwner", "(", "String", "roomName", ",", "String", "jid", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/owners/\"", "+", "jid", ",", "new", "HashMap", "<", "String", ",", "String...
Delete owner from chatroom. @param roomName the room name @param jid the jid @return the response
[ "Delete", "owner", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L261-L264
107,338
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteAdmin
public Response deleteAdmin(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/admins/" + jid, new HashMap<String, String>()); }
java
public Response deleteAdmin(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/admins/" + jid, new HashMap<String, String>()); }
[ "public", "Response", "deleteAdmin", "(", "String", "roomName", ",", "String", "jid", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/admins/\"", "+", "jid", ",", "new", "HashMap", "<", "String", ",", "String...
Delete admin from chatroom. @param roomName the room name @param jid the jid @return the response
[ "Delete", "admin", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L288-L291
107,339
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteMember
public Response deleteMember(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/members/" + jid, new HashMap<String, String>()); }
java
public Response deleteMember(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/members/" + jid, new HashMap<String, String>()); }
[ "public", "Response", "deleteMember", "(", "String", "roomName", ",", "String", "jid", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/members/\"", "+", "jid", ",", "new", "HashMap", "<", "String", ",", "Stri...
Delete member from chatroom. @param roomName the room name @param jid the jid @return the response
[ "Delete", "member", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L315-L318
107,340
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.addOutcast
public Response addOutcast(String roomName, String jid) { return restClient.post("chatrooms/" + roomName + "/outcasts/" + jid, null, new HashMap<String, String>()); }
java
public Response addOutcast(String roomName, String jid) { return restClient.post("chatrooms/" + roomName + "/outcasts/" + jid, null, new HashMap<String, String>()); }
[ "public", "Response", "addOutcast", "(", "String", "roomName", ",", "String", "jid", ")", "{", "return", "restClient", ".", "post", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/outcasts/\"", "+", "jid", ",", "null", ",", "new", "HashMap", "<", "String", ...
Adds the outcast. @param roomName the room name @param jid the jid @return the response
[ "Adds", "the", "outcast", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L329-L331
107,341
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteOutcast
public Response deleteOutcast(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/outcasts/" + jid, new HashMap<String, String>()); }
java
public Response deleteOutcast(String roomName, String jid) { return restClient.delete("chatrooms/" + roomName + "/outcasts/" + jid, new HashMap<String, String>()); }
[ "public", "Response", "deleteOutcast", "(", "String", "roomName", ",", "String", "jid", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/outcasts/\"", "+", "jid", ",", "new", "HashMap", "<", "String", ",", "St...
Delete outcast from chatroom. @param roomName the room name @param jid the jid @return the response
[ "Delete", "outcast", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L342-L345
107,342
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteOwnerGroup
public Response deleteOwnerGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/owners/group/" + groupName, new HashMap<String, String>()); }
java
public Response deleteOwnerGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/owners/group/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteOwnerGroup", "(", "String", "roomName", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/owners/group/\"", "+", "groupName", ",", "new", "HashMap", "<", "St...
Delete owner group from chatroom. @param roomName the room name @param groupName the groupName @return the response
[ "Delete", "owner", "group", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L369-L372
107,343
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteAdminGroup
public Response deleteAdminGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/admins/group/" + groupName, new HashMap<String, String>()); }
java
public Response deleteAdminGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/admins/group/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteAdminGroup", "(", "String", "roomName", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/admins/group/\"", "+", "groupName", ",", "new", "HashMap", "<", "St...
Delete admin group from chatroom. @param roomName the room name @param groupName the groupName @return the response
[ "Delete", "admin", "group", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L396-L399
107,344
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteMemberGroup
public Response deleteMemberGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/members/group/" + groupName, new HashMap<String, String>()); }
java
public Response deleteMemberGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/members/group/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteMemberGroup", "(", "String", "roomName", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/members/group/\"", "+", "groupName", ",", "new", "HashMap", "<", "...
Delete member group from chatroom. @param roomName the room name @param groupName the groupName @return the response
[ "Delete", "member", "group", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L423-L426
107,345
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.addOutcastGroup
public Response addOutcastGroup(String roomName, String groupName) { return restClient.post("chatrooms/" + roomName + "/outcasts/group/" + groupName, null, new HashMap<String, String>()); }
java
public Response addOutcastGroup(String roomName, String groupName) { return restClient.post("chatrooms/" + roomName + "/outcasts/group/" + groupName, null, new HashMap<String, String>()); }
[ "public", "Response", "addOutcastGroup", "(", "String", "roomName", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "post", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/outcasts/group/\"", "+", "groupName", ",", "null", ",", "new", "HashMa...
Adds the group outcast. @param roomName the room name @param groupName the groupName @return the response
[ "Adds", "the", "group", "outcast", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L437-L439
107,346
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteOutcastGroup
public Response deleteOutcastGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/outcasts/group/" + groupName, new HashMap<String, String>()); }
java
public Response deleteOutcastGroup(String roomName, String groupName) { return restClient.delete("chatrooms/" + roomName + "/outcasts/group/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteOutcastGroup", "(", "String", "roomName", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"chatrooms/\"", "+", "roomName", "+", "\"/outcasts/group/\"", "+", "groupName", ",", "new", "HashMap", "<", ...
Delete outcast group from chatroom. @param roomName the room name @param groupName the groupName @return the response
[ "Delete", "outcast", "group", "from", "chatroom", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L450-L453
107,347
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getSessions
public SessionEntities getSessions() { SessionEntities sessionEntities = restClient.get("sessions", SessionEntities.class, new HashMap<String, String>()); return sessionEntities; }
java
public SessionEntities getSessions() { SessionEntities sessionEntities = restClient.get("sessions", SessionEntities.class, new HashMap<String, String>()); return sessionEntities; }
[ "public", "SessionEntities", "getSessions", "(", ")", "{", "SessionEntities", "sessionEntities", "=", "restClient", ".", "get", "(", "\"sessions\"", ",", "SessionEntities", ".", "class", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ...
Gets the sessions. @return the sessions
[ "Gets", "the", "sessions", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L461-L465
107,348
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteSessions
public Response deleteSessions(String username) { return restClient.delete("sessions/" + username, new HashMap<String, String>()); }
java
public Response deleteSessions(String username) { return restClient.delete("sessions/" + username, new HashMap<String, String>()); }
[ "public", "Response", "deleteSessions", "(", "String", "username", ")", "{", "return", "restClient", ".", "delete", "(", "\"sessions/\"", "+", "username", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Close all user sessions. @param username the username @return the response
[ "Close", "all", "user", "sessions", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L486-L488
107,349
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getUserGroups
public UserGroupsEntity getUserGroups(String username) { return restClient.get("users/" + username + "/groups", UserGroupsEntity.class, new HashMap<String, String>()); }
java
public UserGroupsEntity getUserGroups(String username) { return restClient.get("users/" + username + "/groups", UserGroupsEntity.class, new HashMap<String, String>()); }
[ "public", "UserGroupsEntity", "getUserGroups", "(", "String", "username", ")", "{", "return", "restClient", ".", "get", "(", "\"users/\"", "+", "username", "+", "\"/groups\"", ",", "UserGroupsEntity", ".", "class", ",", "new", "HashMap", "<", "String", ",", "S...
Gets the user groups. @param username the username @return the user groups
[ "Gets", "the", "user", "groups", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L497-L500
107,350
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.addUserToGroups
public Response addUserToGroups(String username, UserGroupsEntity userGroupsEntity) { return restClient.post("users/" + username + "/groups/", userGroupsEntity, new HashMap<String, String>()); }
java
public Response addUserToGroups(String username, UserGroupsEntity userGroupsEntity) { return restClient.post("users/" + username + "/groups/", userGroupsEntity, new HashMap<String, String>()); }
[ "public", "Response", "addUserToGroups", "(", "String", "username", ",", "UserGroupsEntity", "userGroupsEntity", ")", "{", "return", "restClient", ".", "post", "(", "\"users/\"", "+", "username", "+", "\"/groups/\"", ",", "userGroupsEntity", ",", "new", "HashMap", ...
Adds the user to groups. @param username the username @param userGroupsEntity the user groups entity @return the response
[ "Adds", "the", "user", "to", "groups", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L511-L514
107,351
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.addUserToGroup
public Response addUserToGroup(String username, String groupName) { return restClient.post("users/" + username + "/groups/"+ groupName, null, new HashMap<String, String>()); }
java
public Response addUserToGroup(String username, String groupName) { return restClient.post("users/" + username + "/groups/"+ groupName, null, new HashMap<String, String>()); }
[ "public", "Response", "addUserToGroup", "(", "String", "username", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "post", "(", "\"users/\"", "+", "username", "+", "\"/groups/\"", "+", "groupName", ",", "null", ",", "new", "HashMap", "<", ...
Adds the user to group. @param username the username @param groupName the group name @return the response
[ "Adds", "the", "user", "to", "group", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L523-L526
107,352
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteUserFromGroup
public Response deleteUserFromGroup(String username, String groupName) { return restClient.delete("users/" + username + "/groups/" + groupName, new HashMap<String, String>()); }
java
public Response deleteUserFromGroup(String username, String groupName) { return restClient.delete("users/" + username + "/groups/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteUserFromGroup", "(", "String", "username", ",", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"users/\"", "+", "username", "+", "\"/groups/\"", "+", "groupName", ",", "new", "HashMap", "<", "String", ...
Delete user from group. @param username the username @param groupName the group name @return the response
[ "Delete", "user", "from", "group", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L535-L538
107,353
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.lockoutUser
public Response lockoutUser(String username) { return restClient.post("lockouts/" + username, null, new HashMap<String, String>()); }
java
public Response lockoutUser(String username) { return restClient.post("lockouts/" + username, null, new HashMap<String, String>()); }
[ "public", "Response", "lockoutUser", "(", "String", "username", ")", "{", "return", "restClient", ".", "post", "(", "\"lockouts/\"", "+", "username", ",", "null", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Lockout user. @param username the username @return the response
[ "Lockout", "user", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L548-L550
107,354
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.unlockUser
public Response unlockUser(String username) { return restClient.delete("lockouts/" + username, new HashMap<String, String>()); }
java
public Response unlockUser(String username) { return restClient.delete("lockouts/" + username, new HashMap<String, String>()); }
[ "public", "Response", "unlockUser", "(", "String", "username", ")", "{", "return", "restClient", ".", "delete", "(", "\"lockouts/\"", "+", "username", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Unlock user. @param username the username @return the response
[ "Unlock", "user", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L559-L561
107,355
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getSystemProperty
public SystemProperty getSystemProperty(String propertyName) { return restClient.get("system/properties/" + propertyName, SystemProperty.class, new HashMap<String, String>()); }
java
public SystemProperty getSystemProperty(String propertyName) { return restClient.get("system/properties/" + propertyName, SystemProperty.class, new HashMap<String, String>()); }
[ "public", "SystemProperty", "getSystemProperty", "(", "String", "propertyName", ")", "{", "return", "restClient", ".", "get", "(", "\"system/properties/\"", "+", "propertyName", ",", "SystemProperty", ".", "class", ",", "new", "HashMap", "<", "String", ",", "Strin...
Gets the system property. @param propertyName the property name @return the system property
[ "Gets", "the", "system", "property", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L580-L583
107,356
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.createSystemProperty
public Response createSystemProperty(SystemProperty property) { return restClient.post("system/properties", property, new HashMap<String, String>()); }
java
public Response createSystemProperty(SystemProperty property) { return restClient.post("system/properties", property, new HashMap<String, String>()); }
[ "public", "Response", "createSystemProperty", "(", "SystemProperty", "property", ")", "{", "return", "restClient", ".", "post", "(", "\"system/properties\"", ",", "property", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Creates the system property. @param property the property @return the response
[ "Creates", "the", "system", "property", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L592-L594
107,357
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.updateSystemProperty
public Response updateSystemProperty(SystemProperty property) { return restClient.put("system/properties/" + property.getKey(), property, new HashMap<String, String>()); }
java
public Response updateSystemProperty(SystemProperty property) { return restClient.put("system/properties/" + property.getKey(), property, new HashMap<String, String>()); }
[ "public", "Response", "updateSystemProperty", "(", "SystemProperty", "property", ")", "{", "return", "restClient", ".", "put", "(", "\"system/properties/\"", "+", "property", ".", "getKey", "(", ")", ",", "property", ",", "new", "HashMap", "<", "String", ",", ...
Update system property. @param property the property @return the response
[ "Update", "system", "property", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L603-L605
107,358
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteSystemProperty
public Response deleteSystemProperty(String propertyName) { return restClient.delete("system/properties/" + propertyName, new HashMap<String, String>()); }
java
public Response deleteSystemProperty(String propertyName) { return restClient.delete("system/properties/" + propertyName, new HashMap<String, String>()); }
[ "public", "Response", "deleteSystemProperty", "(", "String", "propertyName", ")", "{", "return", "restClient", ".", "delete", "(", "\"system/properties/\"", "+", "propertyName", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ...
Delete system property. @param propertyName the property name @return the response
[ "Delete", "system", "property", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L614-L616
107,359
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getGroup
public GroupEntity getGroup(String groupName) { return restClient.get("groups/" + groupName, GroupEntity.class, new HashMap<String, String>()); }
java
public GroupEntity getGroup(String groupName) { return restClient.get("groups/" + groupName, GroupEntity.class, new HashMap<String, String>()); }
[ "public", "GroupEntity", "getGroup", "(", "String", "groupName", ")", "{", "return", "restClient", ".", "get", "(", "\"groups/\"", "+", "groupName", ",", "GroupEntity", ".", "class", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ...
Gets the group. @param groupName the group name @return the group
[ "Gets", "the", "group", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L634-L636
107,360
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.updateGroup
public Response updateGroup(GroupEntity group) { return restClient.put("groups/" + group.getName(), group, new HashMap<String, String>()); }
java
public Response updateGroup(GroupEntity group) { return restClient.put("groups/" + group.getName(), group, new HashMap<String, String>()); }
[ "public", "Response", "updateGroup", "(", "GroupEntity", "group", ")", "{", "return", "restClient", ".", "put", "(", "\"groups/\"", "+", "group", ".", "getName", "(", ")", ",", "group", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ...
Update group. @param group the group @return the response
[ "Update", "group", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L656-L658
107,361
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteGroup
public Response deleteGroup(String groupName) { return restClient.delete("groups/" + groupName, new HashMap<String, String>()); }
java
public Response deleteGroup(String groupName) { return restClient.delete("groups/" + groupName, new HashMap<String, String>()); }
[ "public", "Response", "deleteGroup", "(", "String", "groupName", ")", "{", "return", "restClient", ".", "delete", "(", "\"groups/\"", "+", "groupName", ",", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ")", ";", "}" ]
Delete group. @param groupName the group name @return the response
[ "Delete", "group", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L667-L669
107,362
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.getRoster
public RosterEntities getRoster(String username) { return restClient.get("users/" + username + "/roster", RosterEntities.class, new HashMap<String, String>()); }
java
public RosterEntities getRoster(String username) { return restClient.get("users/" + username + "/roster", RosterEntities.class, new HashMap<String, String>()); }
[ "public", "RosterEntities", "getRoster", "(", "String", "username", ")", "{", "return", "restClient", ".", "get", "(", "\"users/\"", "+", "username", "+", "\"/roster\"", ",", "RosterEntities", ".", "class", ",", "new", "HashMap", "<", "String", ",", "String", ...
Gets the roster. @param username the username @return the roster
[ "Gets", "the", "roster", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L678-L680
107,363
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.addRosterEntry
public Response addRosterEntry(String username, RosterItemEntity rosterItemEntity) { return restClient.post("users/" + username + "/roster", rosterItemEntity, new HashMap<String, String>()); }
java
public Response addRosterEntry(String username, RosterItemEntity rosterItemEntity) { return restClient.post("users/" + username + "/roster", rosterItemEntity, new HashMap<String, String>()); }
[ "public", "Response", "addRosterEntry", "(", "String", "username", ",", "RosterItemEntity", "rosterItemEntity", ")", "{", "return", "restClient", ".", "post", "(", "\"users/\"", "+", "username", "+", "\"/roster\"", ",", "rosterItemEntity", ",", "new", "HashMap", "...
Adds the roster entry. @param username the username @param rosterItemEntity the roster item entity @return the response
[ "Adds", "the", "roster", "entry", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L691-L693
107,364
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.updateRosterEntry
public Response updateRosterEntry(String username, RosterItemEntity rosterItemEntity) { return restClient.put("users/" + username + "/roster/" + rosterItemEntity.getJid(), rosterItemEntity, new HashMap<String, String>()); }
java
public Response updateRosterEntry(String username, RosterItemEntity rosterItemEntity) { return restClient.put("users/" + username + "/roster/" + rosterItemEntity.getJid(), rosterItemEntity, new HashMap<String, String>()); }
[ "public", "Response", "updateRosterEntry", "(", "String", "username", ",", "RosterItemEntity", "rosterItemEntity", ")", "{", "return", "restClient", ".", "put", "(", "\"users/\"", "+", "username", "+", "\"/roster/\"", "+", "rosterItemEntity", ".", "getJid", "(", "...
Update roster entry. @param username the username @param rosterItemEntity the roster item entity @return the response
[ "Update", "roster", "entry", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L704-L707
107,365
igniterealtime/REST-API-Client
src/main/java/org/igniterealtime/restclient/RestApiClient.java
RestApiClient.deleteRosterEntry
public Response deleteRosterEntry(String username, String jid) { return restClient.delete("users/" + username + "/roster/" + jid, new HashMap<String, String>()); }
java
public Response deleteRosterEntry(String username, String jid) { return restClient.delete("users/" + username + "/roster/" + jid, new HashMap<String, String>()); }
[ "public", "Response", "deleteRosterEntry", "(", "String", "username", ",", "String", "jid", ")", "{", "return", "restClient", ".", "delete", "(", "\"users/\"", "+", "username", "+", "\"/roster/\"", "+", "jid", ",", "new", "HashMap", "<", "String", ",", "Stri...
Delete roster entry. @param username the username @param jid the jid @return the response
[ "Delete", "roster", "entry", "." ]
fd544dd770ec2ababa47fef51579522ddce09f05
https://github.com/igniterealtime/REST-API-Client/blob/fd544dd770ec2ababa47fef51579522ddce09f05/src/main/java/org/igniterealtime/restclient/RestApiClient.java#L718-L720
107,366
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/errors/AuthenticationError.java
AuthenticationError.getMessage
public String getMessage(Context context) { if (customMessage != null) { return customMessage; } return context.getResources().getString(message); }
java
public String getMessage(Context context) { if (customMessage != null) { return customMessage; } return context.getResources().getString(message); }
[ "public", "String", "getMessage", "(", "Context", "context", ")", "{", "if", "(", "customMessage", "!=", "null", ")", "{", "return", "customMessage", ";", "}", "return", "context", ".", "getResources", "(", ")", ".", "getString", "(", "message", ")", ";", ...
Getter for the error message. @param context a valid context. @return the user friendly message
[ "Getter", "for", "the", "error", "message", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/errors/AuthenticationError.java#L52-L57
107,367
auth0/Lock.Android
app/src/main/java/com/auth0/android/lock/app/DemoActivity.java
DemoActivity.showResult
@SuppressWarnings("ConstantConditions") private void showResult(String message) { Snackbar.make(rootLayout, message, Snackbar.LENGTH_LONG).show(); }
java
@SuppressWarnings("ConstantConditions") private void showResult(String message) { Snackbar.make(rootLayout, message, Snackbar.LENGTH_LONG).show(); }
[ "@", "SuppressWarnings", "(", "\"ConstantConditions\"", ")", "private", "void", "showResult", "(", "String", "message", ")", "{", "Snackbar", ".", "make", "(", "rootLayout", ",", "message", ",", "Snackbar", ".", "LENGTH_LONG", ")", ".", "show", "(", ")", ";"...
Shows a Snackbar on the bottom of the layout @param message the text to show.
[ "Shows", "a", "Snackbar", "on", "the", "bottom", "of", "the", "layout" ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/app/src/main/java/com/auth0/android/lock/app/DemoActivity.java#L281-L284
107,368
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ViewUtils.java
ViewUtils.dipToPixels
static float dipToPixels(Resources resources, int dip) { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, resources.getDisplayMetrics()); }
java
static float dipToPixels(Resources resources, int dip) { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dip, resources.getDisplayMetrics()); }
[ "static", "float", "dipToPixels", "(", "Resources", "resources", ",", "int", "dip", ")", "{", "return", "TypedValue", ".", "applyDimension", "(", "TypedValue", ".", "COMPLEX_UNIT_DIP", ",", "dip", ",", "resources", ".", "getDisplayMetrics", "(", ")", ")", ";",...
Converts dp into px. @param resources the context's current resources. @param dip the dp value to convert to px. @return the result px value.
[ "Converts", "dp", "into", "px", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ViewUtils.java#L75-L77
107,369
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/AuthenticationCallback.java
AuthenticationCallback.parseAuthentication
private void parseAuthentication(Intent data) { String idToken = data.getStringExtra(Constants.ID_TOKEN_EXTRA); String accessToken = data.getStringExtra(Constants.ACCESS_TOKEN_EXTRA); String tokenType = data.getStringExtra(Constants.TOKEN_TYPE_EXTRA); String refreshToken = data.getString...
java
private void parseAuthentication(Intent data) { String idToken = data.getStringExtra(Constants.ID_TOKEN_EXTRA); String accessToken = data.getStringExtra(Constants.ACCESS_TOKEN_EXTRA); String tokenType = data.getStringExtra(Constants.TOKEN_TYPE_EXTRA); String refreshToken = data.getString...
[ "private", "void", "parseAuthentication", "(", "Intent", "data", ")", "{", "String", "idToken", "=", "data", ".", "getStringExtra", "(", "Constants", ".", "ID_TOKEN_EXTRA", ")", ";", "String", "accessToken", "=", "data", ".", "getStringExtra", "(", "Constants", ...
Extracts the Authentication data from the intent data. @param data the intent received at the end of the login process.
[ "Extracts", "the", "Authentication", "data", "from", "the", "intent", "data", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/AuthenticationCallback.java#L73-L83
107,370
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/events/PasswordlessLoginEvent.java
PasswordlessLoginEvent.getCodeRequest
public ParameterizableRequest<Void, AuthenticationException> getCodeRequest(AuthenticationAPIClient apiClient, String connectionName) { Log.d(TAG, String.format("Generating Passwordless Code/Link request for connection %s", connectionName)); ParameterizableRequest<Void, AuthenticationException> request;...
java
public ParameterizableRequest<Void, AuthenticationException> getCodeRequest(AuthenticationAPIClient apiClient, String connectionName) { Log.d(TAG, String.format("Generating Passwordless Code/Link request for connection %s", connectionName)); ParameterizableRequest<Void, AuthenticationException> request;...
[ "public", "ParameterizableRequest", "<", "Void", ",", "AuthenticationException", ">", "getCodeRequest", "(", "AuthenticationAPIClient", "apiClient", ",", "String", "connectionName", ")", "{", "Log", ".", "d", "(", "TAG", ",", "String", ".", "format", "(", "\"Gener...
Creates the ParameterizableRequest that will initiate the Passwordless Authentication flow. @param apiClient the API Client instance @param connectionName the name of the passwordless connection to request the login with. Only 'sms' and 'email' connections are allowed here. @return the Passwordless code request r...
[ "Creates", "the", "ParameterizableRequest", "that", "will", "initiate", "the", "Passwordless", "Authentication", "flow", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/events/PasswordlessLoginEvent.java#L96-L109
107,371
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/events/PasswordlessLoginEvent.java
PasswordlessLoginEvent.getLoginRequest
public AuthenticationRequest getLoginRequest(AuthenticationAPIClient apiClient, String emailOrNumber) { Log.d(TAG, String.format("Generating Passwordless Login request for identity %s", emailOrNumber)); if (getMode() == PasswordlessMode.EMAIL_CODE || getMode() == PasswordlessMode.EMAIL_LINK) { ...
java
public AuthenticationRequest getLoginRequest(AuthenticationAPIClient apiClient, String emailOrNumber) { Log.d(TAG, String.format("Generating Passwordless Login request for identity %s", emailOrNumber)); if (getMode() == PasswordlessMode.EMAIL_CODE || getMode() == PasswordlessMode.EMAIL_LINK) { ...
[ "public", "AuthenticationRequest", "getLoginRequest", "(", "AuthenticationAPIClient", "apiClient", ",", "String", "emailOrNumber", ")", "{", "Log", ".", "d", "(", "TAG", ",", "String", ".", "format", "(", "\"Generating Passwordless Login request for identity %s\"", ",", ...
Creates the AuthenticationRequest that will finish the Passwordless Authentication flow. @param apiClient the API Client instance @param emailOrNumber the email or phone number used on the code request. @return the Passwordless login request.
[ "Creates", "the", "AuthenticationRequest", "that", "will", "finish", "the", "Passwordless", "Authentication", "flow", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/events/PasswordlessLoginEvent.java#L118-L125
107,372
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/PasswordStrengthView.java
PasswordStrengthView.isValid
public boolean isValid(String password) { if (password == null) { return false; } boolean length = hasMinimumLength(password, getMinimumLength()); boolean other = true; switch (complexity.getPasswordPolicy()) { case PasswordStrength.EXCELLENT: ...
java
public boolean isValid(String password) { if (password == null) { return false; } boolean length = hasMinimumLength(password, getMinimumLength()); boolean other = true; switch (complexity.getPasswordPolicy()) { case PasswordStrength.EXCELLENT: ...
[ "public", "boolean", "isValid", "(", "String", "password", ")", "{", "if", "(", "password", "==", "null", ")", "{", "return", "false", ";", "}", "boolean", "length", "=", "hasMinimumLength", "(", "password", ",", "getMinimumLength", "(", ")", ")", ";", "...
Checks that all the requirements are meet. @param password the current password to validate @return whether the given password complies with this password policy or not.
[ "Checks", "that", "all", "the", "requirements", "are", "meet", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/PasswordStrengthView.java#L210-L232
107,373
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ClassicLockView.java
ClassicLockView.showProgress
public void showProgress(boolean show) { if (actionButton != null) { actionButton.showProgress(show); } if (formLayout != null) { formLayout.setEnabled(!show); } }
java
public void showProgress(boolean show) { if (actionButton != null) { actionButton.showProgress(show); } if (formLayout != null) { formLayout.setEnabled(!show); } }
[ "public", "void", "showProgress", "(", "boolean", "show", ")", "{", "if", "(", "actionButton", "!=", "null", ")", "{", "actionButton", ".", "showProgress", "(", "show", ")", ";", "}", "if", "(", "formLayout", "!=", "null", ")", "{", "formLayout", ".", ...
Displays a progress bar on top of the action button. This will also enable or disable the action button. @param show whether to show or hide the action bar.
[ "Displays", "a", "progress", "bar", "on", "top", "of", "the", "action", "button", ".", "This", "will", "also", "enable", "or", "disable", "the", "action", "button", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ClassicLockView.java#L294-L301
107,374
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ActionButton.java
ActionButton.showProgress
public void showProgress(boolean show) { Log.v(TAG, show ? "Disabling the button while showing progress" : "Enabling the button and hiding progress"); setEnabled(!show); progress.setVisibility(show ? VISIBLE : GONE); if (show) { icon.setVisibility(INVISIBLE); labe...
java
public void showProgress(boolean show) { Log.v(TAG, show ? "Disabling the button while showing progress" : "Enabling the button and hiding progress"); setEnabled(!show); progress.setVisibility(show ? VISIBLE : GONE); if (show) { icon.setVisibility(INVISIBLE); labe...
[ "public", "void", "showProgress", "(", "boolean", "show", ")", "{", "Log", ".", "v", "(", "TAG", ",", "show", "?", "\"Disabling the button while showing progress\"", ":", "\"Enabling the button and hiding progress\"", ")", ";", "setEnabled", "(", "!", "show", ")", ...
Used to display a progress bar and disable the button. @param show whether to show the progress bar or not.
[ "Used", "to", "display", "a", "progress", "bar", "and", "disable", "the", "button", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ActionButton.java#L109-L120
107,375
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ActionButton.java
ActionButton.showLabel
public void showLabel(boolean showLabel) { shouldShowLabel = showLabel; labeledLayout.setVisibility(showLabel ? VISIBLE : GONE); icon.setVisibility(!showLabel ? VISIBLE : GONE); }
java
public void showLabel(boolean showLabel) { shouldShowLabel = showLabel; labeledLayout.setVisibility(showLabel ? VISIBLE : GONE); icon.setVisibility(!showLabel ? VISIBLE : GONE); }
[ "public", "void", "showLabel", "(", "boolean", "showLabel", ")", "{", "shouldShowLabel", "=", "showLabel", ";", "labeledLayout", ".", "setVisibility", "(", "showLabel", "?", "VISIBLE", ":", "GONE", ")", ";", "icon", ".", "setVisibility", "(", "!", "showLabel",...
Whether to show an icon or a label with the current selected mode. By default, it will show the icon. @param showLabel whether to show an icon or a label.
[ "Whether", "to", "show", "an", "icon", "or", "a", "label", "with", "the", "current", "selected", "mode", ".", "By", "default", "it", "will", "show", "the", "icon", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ActionButton.java#L137-L141
107,376
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/PasswordlessFormLayout.java
PasswordlessFormLayout.codeSent
public void codeSent(String emailOrNumber) { Log.d(TAG, "Now showing the Code Input Form"); if (passwordlessRequestCodeLayout != null) { removeView(passwordlessRequestCodeLayout); if (socialLayout != null) { socialLayout.setVisibility(GONE); } ...
java
public void codeSent(String emailOrNumber) { Log.d(TAG, "Now showing the Code Input Form"); if (passwordlessRequestCodeLayout != null) { removeView(passwordlessRequestCodeLayout); if (socialLayout != null) { socialLayout.setVisibility(GONE); } ...
[ "public", "void", "codeSent", "(", "String", "emailOrNumber", ")", "{", "Log", ".", "d", "(", "TAG", ",", "\"Now showing the Code Input Form\"", ")", ";", "if", "(", "passwordlessRequestCodeLayout", "!=", "null", ")", "{", "removeView", "(", "passwordlessRequestCo...
Notifies the form that the code was correctly sent and it should now wait for the user to input the valid code. @param emailOrNumber the email or phone number to which the code was sent.
[ "Notifies", "the", "form", "that", "the", "code", "was", "correctly", "sent", "and", "it", "should", "now", "wait", "for", "the", "user", "to", "input", "the", "valid", "code", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/PasswordlessFormLayout.java#L156-L169
107,377
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/WebProvider.java
WebProvider.resume
public boolean resume(int requestCode, int resultCode, Intent intent) { return WebAuthProvider.resume(requestCode, resultCode, intent); }
java
public boolean resume(int requestCode, int resultCode, Intent intent) { return WebAuthProvider.resume(requestCode, resultCode, intent); }
[ "public", "boolean", "resume", "(", "int", "requestCode", ",", "int", "resultCode", ",", "Intent", "intent", ")", "{", "return", "WebAuthProvider", ".", "resume", "(", "requestCode", ",", "resultCode", ",", "intent", ")", ";", "}" ]
Finishes the authentication flow in the WebAuthProvider @param requestCode the request code received on the onActivityResult method @param resultCode the result code received on the onActivityResult method @param intent the intent received in the onActivityResult method. @return true if a result was expected and...
[ "Finishes", "the", "authentication", "flow", "in", "the", "WebAuthProvider" ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/WebProvider.java#L92-L94
107,378
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java
ValidatedInputView.updateBorder
@CallSuper protected void updateBorder() { boolean isFocused = input.hasFocus() && !input.isInTouchMode(); ViewUtils.setBackground(outline, hasValidInput ? (isFocused ? focusedOutlineBackground : normalOutlineBackground) : errorOutlineBackground); errorDescription.setVisibility(hasValidInput...
java
@CallSuper protected void updateBorder() { boolean isFocused = input.hasFocus() && !input.isInTouchMode(); ViewUtils.setBackground(outline, hasValidInput ? (isFocused ? focusedOutlineBackground : normalOutlineBackground) : errorOutlineBackground); errorDescription.setVisibility(hasValidInput...
[ "@", "CallSuper", "protected", "void", "updateBorder", "(", ")", "{", "boolean", "isFocused", "=", "input", ".", "hasFocus", "(", ")", "&&", "!", "input", ".", "isInTouchMode", "(", ")", ";", "ViewUtils", ".", "setBackground", "(", "outline", ",", "hasVali...
Updates the view knowing if the input is valid or not.
[ "Updates", "the", "view", "knowing", "if", "the", "input", "is", "valid", "or", "not", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java#L314-L320
107,379
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java
ValidatedInputView.validate
protected boolean validate(boolean validateEmptyFields) { boolean isValid = false; String value = dataType == PASSWORD ? getText() : getText().trim(); if (!validateEmptyFields && value.isEmpty()) { return true; } switch (dataType) { case TEXT_NAME: ...
java
protected boolean validate(boolean validateEmptyFields) { boolean isValid = false; String value = dataType == PASSWORD ? getText() : getText().trim(); if (!validateEmptyFields && value.isEmpty()) { return true; } switch (dataType) { case TEXT_NAME: ...
[ "protected", "boolean", "validate", "(", "boolean", "validateEmptyFields", ")", "{", "boolean", "isValid", "=", "false", ";", "String", "value", "=", "dataType", "==", "PASSWORD", "?", "getText", "(", ")", ":", "getText", "(", ")", ".", "trim", "(", ")", ...
Validates the input data and updates the icon. DataType must be set. @param validateEmptyFields if an empty input should be considered invalid. @return whether the data is valid or not.
[ "Validates", "the", "input", "data", "and", "updates", "the", "icon", ".", "DataType", "must", "be", "set", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java#L370-L406
107,380
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java
ValidatedInputView.setText
public void setText(String text) { input.setText(""); if (text != null) { input.append(text); } }
java
public void setText(String text) { input.setText(""); if (text != null) { input.append(text); } }
[ "public", "void", "setText", "(", "String", "text", ")", "{", "input", ".", "setText", "(", "\"\"", ")", ";", "if", "(", "text", "!=", "null", ")", "{", "input", ".", "append", "(", "text", ")", ";", "}", "}" ]
Updates the input field text. @param text the new text to set.
[ "Updates", "the", "input", "field", "text", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java#L422-L427
107,381
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java
ValidatedInputView.clearInput
public void clearInput() { Log.v(TAG, "Input cleared and validation errors removed"); input.setText(""); hasValidInput = true; updateBorder(); showPasswordToggle.setChecked(false); }
java
public void clearInput() { Log.v(TAG, "Input cleared and validation errors removed"); input.setText(""); hasValidInput = true; updateBorder(); showPasswordToggle.setChecked(false); }
[ "public", "void", "clearInput", "(", ")", "{", "Log", ".", "v", "(", "TAG", ",", "\"Input cleared and validation errors removed\"", ")", ";", "input", ".", "setText", "(", "\"\"", ")", ";", "hasValidInput", "=", "true", ";", "updateBorder", "(", ")", ";", ...
Removes any text present on the input field and clears any validation error, if present.
[ "Removes", "any", "text", "present", "on", "the", "input", "field", "and", "clears", "any", "validation", "error", "if", "present", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/ValidatedInputView.java#L483-L489
107,382
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/views/AuthConfig.java
AuthConfig.styleForStrategy
@StyleRes public static int styleForStrategy(String strategyName) { int style = R.style.Lock_Theme_AuthStyle; switch (strategyName) { case "amazon": style = R.style.Lock_Theme_AuthStyle_Amazon; break; case "aol": style = R.style...
java
@StyleRes public static int styleForStrategy(String strategyName) { int style = R.style.Lock_Theme_AuthStyle; switch (strategyName) { case "amazon": style = R.style.Lock_Theme_AuthStyle_Amazon; break; case "aol": style = R.style...
[ "@", "StyleRes", "public", "static", "int", "styleForStrategy", "(", "String", "strategyName", ")", "{", "int", "style", "=", "R", ".", "style", ".", "Lock_Theme_AuthStyle", ";", "switch", "(", "strategyName", ")", "{", "case", "\"amazon\"", ":", "style", "=...
It will resolve the given Strategy Name to a valid Style. @param strategyName to search for. @return a valid Lock.Theme.AuthStyle
[ "It", "will", "resolve", "the", "given", "Strategy", "Name", "to", "a", "valid", "Style", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/views/AuthConfig.java#L79-L197
107,383
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java
PasswordlessLock.newIntent
@SuppressWarnings("unused") public Intent newIntent(Context context) { Intent lockIntent = new Intent(context, PasswordlessLockActivity.class); lockIntent.putExtra(Constants.OPTIONS_EXTRA, options); lockIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); return lockIntent; }
java
@SuppressWarnings("unused") public Intent newIntent(Context context) { Intent lockIntent = new Intent(context, PasswordlessLockActivity.class); lockIntent.putExtra(Constants.OPTIONS_EXTRA, options); lockIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); return lockIntent; }
[ "@", "SuppressWarnings", "(", "\"unused\"", ")", "public", "Intent", "newIntent", "(", "Context", "context", ")", "{", "Intent", "lockIntent", "=", "new", "Intent", "(", "context", ",", "PasswordlessLockActivity", ".", "class", ")", ";", "lockIntent", ".", "pu...
Builds a new intent to launch LockActivity with the previously configured options @param context a valid Context @return the intent to which the user has to call startActivity or startActivityForResult
[ "Builds", "a", "new", "intent", "to", "launch", "LockActivity", "with", "the", "previously", "configured", "options" ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/PasswordlessLock.java#L119-L125
107,384
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java
EnterpriseConnectionMatcher.parse
@Nullable public OAuthConnection parse(String email) { String domain = extractDomain(email); if (domain == null) { return null; } domain = domain.toLowerCase(); for (OAuthConnection c : connections) { String mainDomain = domainForConnection(c); ...
java
@Nullable public OAuthConnection parse(String email) { String domain = extractDomain(email); if (domain == null) { return null; } domain = domain.toLowerCase(); for (OAuthConnection c : connections) { String mainDomain = domainForConnection(c); ...
[ "@", "Nullable", "public", "OAuthConnection", "parse", "(", "String", "email", ")", "{", "String", "domain", "=", "extractDomain", "(", "email", ")", ";", "if", "(", "domain", "==", "null", ")", "{", "return", "null", ";", "}", "domain", "=", "domain", ...
Tries to find a valid domain with the given input. @param email to search the Domain for. @return a Connection if found, null otherwise.
[ "Tries", "to", "find", "a", "valid", "domain", "with", "the", "given", "input", "." ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java#L59-L83
107,385
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java
EnterpriseConnectionMatcher.extractUsername
@Nullable public String extractUsername(String email) { int indexAt = email.indexOf(AT_SYMBOL); if (indexAt == -1) { return null; } return email.substring(0, indexAt); }
java
@Nullable public String extractUsername(String email) { int indexAt = email.indexOf(AT_SYMBOL); if (indexAt == -1) { return null; } return email.substring(0, indexAt); }
[ "@", "Nullable", "public", "String", "extractUsername", "(", "String", "email", ")", "{", "int", "indexAt", "=", "email", ".", "indexOf", "(", "AT_SYMBOL", ")", ";", "if", "(", "indexAt", "==", "-", "1", ")", "{", "return", "null", ";", "}", "return", ...
Extracts the username part from the email @param email to parse @return the username String if found, an empty String otherwise
[ "Extracts", "the", "username", "part", "from", "the", "email" ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java#L91-L98
107,386
auth0/Lock.Android
lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java
EnterpriseConnectionMatcher.extractDomain
@Nullable private String extractDomain(String email) { int indexAt = email.indexOf(AT_SYMBOL) + 1; if (indexAt == 0) { return null; } String domain = email.substring(indexAt); if (domain.isEmpty()) { return null; } return domain; }
java
@Nullable private String extractDomain(String email) { int indexAt = email.indexOf(AT_SYMBOL) + 1; if (indexAt == 0) { return null; } String domain = email.substring(indexAt); if (domain.isEmpty()) { return null; } return domain; }
[ "@", "Nullable", "private", "String", "extractDomain", "(", "String", "email", ")", "{", "int", "indexAt", "=", "email", ".", "indexOf", "(", "AT_SYMBOL", ")", "+", "1", ";", "if", "(", "indexAt", "==", "0", ")", "{", "return", "null", ";", "}", "Str...
Extracts the domain part from the email @param email to parse @return the domain String if found, an empty String otherwise
[ "Extracts", "the", "domain", "part", "from", "the", "email" ]
8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220
https://github.com/auth0/Lock.Android/blob/8eb2a979048d2eb6cf0ec631e82e6c3fe6e7d220/lib/src/main/java/com/auth0/android/lock/utils/EnterpriseConnectionMatcher.java#L106-L117
107,387
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/SAMLCredentialPersonAttributeDao.java
SAMLCredentialPersonAttributeDao.extractStringValue
private String extractStringValue(XMLObject xmlo) { if (xmlo instanceof XSString) { return ((XSString)xmlo).getValue(); } else if (xmlo instanceof XSAnyImpl) { return ((XSAnyImpl)xmlo).getTextContent(); } logger.warn("Unable to map attribute class {} to String. Un...
java
private String extractStringValue(XMLObject xmlo) { if (xmlo instanceof XSString) { return ((XSString)xmlo).getValue(); } else if (xmlo instanceof XSAnyImpl) { return ((XSAnyImpl)xmlo).getTextContent(); } logger.warn("Unable to map attribute class {} to String. Un...
[ "private", "String", "extractStringValue", "(", "XMLObject", "xmlo", ")", "{", "if", "(", "xmlo", "instanceof", "XSString", ")", "{", "return", "(", "(", "XSString", ")", "xmlo", ")", ".", "getValue", "(", ")", ";", "}", "else", "if", "(", "xmlo", "ins...
Extracts the string value of the XMLObject depending upon its type. @param xmlo XMLObject @return String value of object. Null if unable to convert object to string.
[ "Extracts", "the", "string", "value", "of", "the", "XMLObject", "depending", "upon", "its", "type", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/SAMLCredentialPersonAttributeDao.java#L139-L148
107,388
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/MultivaluedPersonAttributeUtils.java
MultivaluedPersonAttributeUtils.parseAttributeToAttributeMapping
public static Map<String, Set<String>> parseAttributeToAttributeMapping(final Map<String, ? extends Object> mapping) { //null is assumed to be an empty map if (mapping == null) { return new HashMap<>(); } final Map<String, Set<String>> mappedAttributesBuilder = new LinkedHas...
java
public static Map<String, Set<String>> parseAttributeToAttributeMapping(final Map<String, ? extends Object> mapping) { //null is assumed to be an empty map if (mapping == null) { return new HashMap<>(); } final Map<String, Set<String>> mappedAttributesBuilder = new LinkedHas...
[ "public", "static", "Map", "<", "String", ",", "Set", "<", "String", ">", ">", "parseAttributeToAttributeMapping", "(", "final", "Map", "<", "String", ",", "?", "extends", "Object", ">", "mapping", ")", "{", "//null is assumed to be an empty map", "if", "(", "...
Translate from a more flexible Attribute to Attribute mapping format to a Map from String to Set of Strings. The point of the map is to map from attribute names in the underlying data store (e.g., JDBC column names, LDAP attribute names) to uPortal attribute names. Any given underlying data store attribute might map t...
[ "Translate", "from", "a", "more", "flexible", "Attribute", "to", "Attribute", "mapping", "format", "to", "a", "Map", "from", "String", "to", "Set", "of", "Strings", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/MultivaluedPersonAttributeUtils.java#L71-L118
107,389
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ldap/LdaptivePersonAttributeDao.java
LdaptivePersonAttributeDao.initialize
@PostConstruct public void initialize() { for (final SearchScope scope : SearchScope.values()) { if (scope.ordinal() == this.searchControls.getSearchScope()) { this.searchScope = scope; } } }
java
@PostConstruct public void initialize() { for (final SearchScope scope : SearchScope.values()) { if (scope.ordinal() == this.searchControls.getSearchScope()) { this.searchScope = scope; } } }
[ "@", "PostConstruct", "public", "void", "initialize", "(", ")", "{", "for", "(", "final", "SearchScope", "scope", ":", "SearchScope", ".", "values", "(", ")", ")", "{", "if", "(", "scope", ".", "ordinal", "(", ")", "==", "this", ".", "searchControls", ...
Initializes the object after properties are set.
[ "Initializes", "the", "object", "after", "properties", "are", "set", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ldap/LdaptivePersonAttributeDao.java#L134-L141
107,390
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ldap/LdaptivePersonAttributeDao.java
LdaptivePersonAttributeDao.createRequest
private SearchRequest createRequest(final SearchFilter filter) { final SearchRequest request = new SearchRequest(); request.setBaseDn(this.baseDN); request.setSearchFilter(filter); /** LDAP attributes to fetch from search results. */ if (getResultAttributeMapping() != null && !g...
java
private SearchRequest createRequest(final SearchFilter filter) { final SearchRequest request = new SearchRequest(); request.setBaseDn(this.baseDN); request.setSearchFilter(filter); /** LDAP attributes to fetch from search results. */ if (getResultAttributeMapping() != null && !g...
[ "private", "SearchRequest", "createRequest", "(", "final", "SearchFilter", "filter", ")", "{", "final", "SearchRequest", "request", "=", "new", "SearchRequest", "(", ")", ";", "request", ".", "setBaseDn", "(", "this", ".", "baseDN", ")", ";", "request", ".", ...
Creates a search request from a search filter. @param filter LDAP search filter. @return ldaptive search request.
[ "Creates", "a", "search", "request", "from", "a", "search", "filter", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ldap/LdaptivePersonAttributeDao.java#L204-L223
107,391
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/merger/BaseAdditiveAttributeMerger.java
BaseAdditiveAttributeMerger.buildMutableAttributeMap
protected Map<String, List<Object>> buildMutableAttributeMap(final Map<String, List<Object>> attributes) { final Map<String, List<Object>> mutableValuesBuilder = this.createMutableAttributeMap(attributes.size()); for (final Map.Entry<String, List<Object>> attrEntry : attributes.entrySet()) { ...
java
protected Map<String, List<Object>> buildMutableAttributeMap(final Map<String, List<Object>> attributes) { final Map<String, List<Object>> mutableValuesBuilder = this.createMutableAttributeMap(attributes.size()); for (final Map.Entry<String, List<Object>> attrEntry : attributes.entrySet()) { ...
[ "protected", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "buildMutableAttributeMap", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "attributes", ")", "{", "final", "Map", "<", "String", ",", "List", "<", "Obj...
Do a deep clone of an attribute Map to ensure it is completley mutable. @param attributes Attribute map @return Mutable attribute map
[ "Do", "a", "deep", "clone", "of", "an", "attribute", "Map", "to", "ensure", "it", "is", "completley", "mutable", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/merger/BaseAdditiveAttributeMerger.java#L102-L117
107,392
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ScriptEnginePersonAttributeDao.java
ScriptEnginePersonAttributeDao.setScriptFile
public void setScriptFile(final String scriptFile) { this.scriptFile = scriptFile; this.scriptType = determineScriptType(scriptFile); if (scriptType != SCRIPT_TYPE.CONTENTS) { // assume that if adjusting the file, engine name should also be re-calc'd // if scriptType is C...
java
public void setScriptFile(final String scriptFile) { this.scriptFile = scriptFile; this.scriptType = determineScriptType(scriptFile); if (scriptType != SCRIPT_TYPE.CONTENTS) { // assume that if adjusting the file, engine name should also be re-calc'd // if scriptType is C...
[ "public", "void", "setScriptFile", "(", "final", "String", "scriptFile", ")", "{", "this", ".", "scriptFile", "=", "scriptFile", ";", "this", ".", "scriptType", "=", "determineScriptType", "(", "scriptFile", ")", ";", "if", "(", "scriptType", "!=", "SCRIPT_TYP...
this object would be better if engineName and scriptFile couldn't change
[ "this", "object", "would", "be", "better", "if", "engineName", "and", "scriptFile", "couldn", "t", "change" ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ScriptEnginePersonAttributeDao.java#L70-L78
107,393
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ScriptEnginePersonAttributeDao.java
ScriptEnginePersonAttributeDao.getScriptEngineName
public static String getScriptEngineName(String filename) { String extension = FilenameUtils.getExtension(filename); if (StringUtils.isBlank(extension)) { logger.warn("Can't determine engine name based on filename without extension {}",filename); return null; } Sc...
java
public static String getScriptEngineName(String filename) { String extension = FilenameUtils.getExtension(filename); if (StringUtils.isBlank(extension)) { logger.warn("Can't determine engine name based on filename without extension {}",filename); return null; } Sc...
[ "public", "static", "String", "getScriptEngineName", "(", "String", "filename", ")", "{", "String", "extension", "=", "FilenameUtils", ".", "getExtension", "(", "filename", ")", ";", "if", "(", "StringUtils", ".", "isBlank", "(", "extension", ")", ")", "{", ...
This method is static is available as utility for users that are passing the contents of a script and want to set the engineName property based on a filename. @param filename the filename @return script engine name
[ "This", "method", "is", "static", "is", "available", "as", "utility", "for", "users", "that", "are", "passing", "the", "contents", "of", "a", "script", "and", "want", "to", "set", "the", "engineName", "property", "based", "on", "a", "filename", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ScriptEnginePersonAttributeDao.java#L277-L296
107,394
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/CachingPersonAttributeDaoImpl.java
CachingPersonAttributeDaoImpl.setUserInfoCache
@JsonIgnore public void setUserInfoCache(final Map<Serializable, Set<IPersonAttributes>> userInfoCache) { if (userInfoCache == null) { throw new IllegalArgumentException("userInfoCache may not be null"); } this.userInfoCache = userInfoCache; }
java
@JsonIgnore public void setUserInfoCache(final Map<Serializable, Set<IPersonAttributes>> userInfoCache) { if (userInfoCache == null) { throw new IllegalArgumentException("userInfoCache may not be null"); } this.userInfoCache = userInfoCache; }
[ "@", "JsonIgnore", "public", "void", "setUserInfoCache", "(", "final", "Map", "<", "Serializable", ",", "Set", "<", "IPersonAttributes", ">", ">", "userInfoCache", ")", "{", "if", "(", "userInfoCache", "==", "null", ")", "{", "throw", "new", "IllegalArgumentEx...
The Map to use for caching results. Only get, put and remove are used so the Map may be backed by a real caching implementation. @param userInfoCache The userInfoCache to set.
[ "The", "Map", "to", "use", "for", "caching", "results", ".", "Only", "get", "put", "and", "remove", "are", "used", "so", "the", "Map", "may", "be", "backed", "by", "a", "real", "caching", "implementation", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/CachingPersonAttributeDaoImpl.java#L210-L217
107,395
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/CachingPersonAttributeDaoImpl.java
CachingPersonAttributeDaoImpl.setNullResultsObject
@JsonIgnore public void setNullResultsObject(final Set<IPersonAttributes> nullResultsObject) { if (nullResultsObject == null) { throw new IllegalArgumentException("nullResultsObject may not be null"); } this.nullResultsObject = nullResultsObject; }
java
@JsonIgnore public void setNullResultsObject(final Set<IPersonAttributes> nullResultsObject) { if (nullResultsObject == null) { throw new IllegalArgumentException("nullResultsObject may not be null"); } this.nullResultsObject = nullResultsObject; }
[ "@", "JsonIgnore", "public", "void", "setNullResultsObject", "(", "final", "Set", "<", "IPersonAttributes", ">", "nullResultsObject", ")", "{", "if", "(", "nullResultsObject", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"nullResultsObj...
Used to specify the placeholder object to put in the cache for null results. Defaults to a minimal Set. Most installations will not need to set this. @param nullResultsObject the nullResultsObject to set
[ "Used", "to", "specify", "the", "placeholder", "object", "to", "put", "in", "the", "cache", "for", "null", "results", ".", "Defaults", "to", "a", "minimal", "Set", ".", "Most", "installations", "will", "not", "need", "to", "set", "this", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/CachingPersonAttributeDaoImpl.java#L248-L255
107,396
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ComplexStubPersonAttributeDao.java
ComplexStubPersonAttributeDao.setBackingMap
public void setBackingMap(final Map<String, Map<String, List<Object>>> backingMap) { if (backingMap == null) { this.backingMap = new HashMap<>(); this.possibleUserAttributeNames = new HashSet<>(); } else { this.backingMap = new LinkedHashMap<>(backingMap); ...
java
public void setBackingMap(final Map<String, Map<String, List<Object>>> backingMap) { if (backingMap == null) { this.backingMap = new HashMap<>(); this.possibleUserAttributeNames = new HashSet<>(); } else { this.backingMap = new LinkedHashMap<>(backingMap); ...
[ "public", "void", "setBackingMap", "(", "final", "Map", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", ">", "backingMap", ")", "{", "if", "(", "backingMap", "==", "null", ")", "{", "this", ".", "backingMap", "=", "new...
The backing Map to use for queries, the outer map is keyed on the query attribute. The inner Map is the set of user attributes to be returned for the query attribute. @param backingMap backing map
[ "The", "backing", "Map", "to", "use", "for", "queries", "the", "outer", "map", "is", "keyed", "on", "the", "query", "attribute", ".", "The", "inner", "Map", "is", "the", "set", "of", "user", "attributes", "to", "be", "returned", "for", "the", "query", ...
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ComplexStubPersonAttributeDao.java#L124-L132
107,397
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/ComplexStubPersonAttributeDao.java
ComplexStubPersonAttributeDao.initializePossibleAttributeNames
private void initializePossibleAttributeNames() { final Set<String> possibleAttribNames = new LinkedHashSet<>(); for (final Map<String, List<Object>> attributeMapForSomeUser : this.backingMap.values()) { final Set<String> keySet = attributeMapForSomeUser.keySet(); possibleAttrib...
java
private void initializePossibleAttributeNames() { final Set<String> possibleAttribNames = new LinkedHashSet<>(); for (final Map<String, List<Object>> attributeMapForSomeUser : this.backingMap.values()) { final Set<String> keySet = attributeMapForSomeUser.keySet(); possibleAttrib...
[ "private", "void", "initializePossibleAttributeNames", "(", ")", "{", "final", "Set", "<", "String", ">", "possibleAttribNames", "=", "new", "LinkedHashSet", "<>", "(", ")", ";", "for", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", "...
Compute the set of attribute names that map to a value for at least one user in our backing map and store it as the instance variable possibleUserAttributeNames.
[ "Compute", "the", "set", "of", "attribute", "names", "that", "map", "to", "a", "value", "for", "at", "least", "one", "user", "in", "our", "backing", "map", "and", "store", "it", "as", "the", "instance", "variable", "possibleUserAttributeNames", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/ComplexStubPersonAttributeDao.java#L250-L259
107,398
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/EchoPersonAttributeDaoImpl.java
EchoPersonAttributeDaoImpl.getPeopleWithMultivaluedAttributes
@Override public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(final Map<String, List<Object>> query, final IPersonAttributeDaoFilter filter) { if (query == null) { throw new IllegalArgumentException("seed may not b...
java
@Override public Set<IPersonAttributes> getPeopleWithMultivaluedAttributes(final Map<String, List<Object>> query, final IPersonAttributeDaoFilter filter) { if (query == null) { throw new IllegalArgumentException("seed may not b...
[ "@", "Override", "public", "Set", "<", "IPersonAttributes", ">", "getPeopleWithMultivaluedAttributes", "(", "final", "Map", "<", "String", ",", "List", "<", "Object", ">", ">", "query", ",", "final", "IPersonAttributeDaoFilter", "filter", ")", "{", "if", "(", ...
Returns a duplicate of the seed it is passed. @return a Map equal to but not the same reference as the seed. @see IPersonAttributeDao#getPeopleWithMultivaluedAttributes(java.util.Map, org.apereo.services.persondir.IPersonAttributeDaoFilter)
[ "Returns", "a", "duplicate", "of", "the", "seed", "it", "is", "passed", "." ]
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/EchoPersonAttributeDaoImpl.java#L45-L54
107,399
apereo/person-directory
person-directory-impl/src/main/java/org/apereo/services/persondir/support/jdbc/AbstractJdbcPersonAttributeDao.java
AbstractJdbcPersonAttributeDao.canonicalizeDataAttributeForSql
protected String canonicalizeDataAttributeForSql(final String dataAttribute) { if (this.caseInsensitiveDataAttributes == null || this.caseInsensitiveDataAttributes.isEmpty() || !(this.caseInsensitiveDataAttributes.containsKey(dataAttribute))) { return dataAttribute; } if (this.dataAt...
java
protected String canonicalizeDataAttributeForSql(final String dataAttribute) { if (this.caseInsensitiveDataAttributes == null || this.caseInsensitiveDataAttributes.isEmpty() || !(this.caseInsensitiveDataAttributes.containsKey(dataAttribute))) { return dataAttribute; } if (this.dataAt...
[ "protected", "String", "canonicalizeDataAttributeForSql", "(", "final", "String", "dataAttribute", ")", "{", "if", "(", "this", ".", "caseInsensitiveDataAttributes", "==", "null", "||", "this", ".", "caseInsensitiveDataAttributes", ".", "isEmpty", "(", ")", "||", "!...
Canonicalize the data-layer attribute column with the given name via SQL function. This is as opposed to canonicalizing query attributes or application attributes passed into or mapped out of the data layer. Canonicalization of a data-layer column should only be necessary if the data layer if you require case-insensiti...
[ "Canonicalize", "the", "data", "-", "layer", "attribute", "column", "with", "the", "given", "name", "via", "SQL", "function", ".", "This", "is", "as", "opposed", "to", "canonicalizing", "query", "attributes", "or", "application", "attributes", "passed", "into", ...
331200c0878aec202b8aff12a732402d6ba7681f
https://github.com/apereo/person-directory/blob/331200c0878aec202b8aff12a732402d6ba7681f/person-directory-impl/src/main/java/org/apereo/services/persondir/support/jdbc/AbstractJdbcPersonAttributeDao.java#L192-L208