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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
52,200 | belaban/JGroups | src/org/jgroups/util/SuppressLog.java | SuppressLog.log | public void log(Level level, T key, long timeout, Object ... args) {
SuppressCache.Value val=cache.putIfAbsent(key, timeout);
if(val == null) // key is present and hasn't expired
return;
String message=val.count() == 1? String.format(message_format, args) :
String.format(m... | java | public void log(Level level, T key, long timeout, Object ... args) {
SuppressCache.Value val=cache.putIfAbsent(key, timeout);
if(val == null) // key is present and hasn't expired
return;
String message=val.count() == 1? String.format(message_format, args) :
String.format(m... | [
"public",
"void",
"log",
"(",
"Level",
"level",
",",
"T",
"key",
",",
"long",
"timeout",
",",
"Object",
"...",
"args",
")",
"{",
"SuppressCache",
".",
"Value",
"val",
"=",
"cache",
".",
"putIfAbsent",
"(",
"key",
",",
"timeout",
")",
";",
"if",
"(",
... | Logs a message from a given member if is hasn't been logged for timeout ms
@param level The level, either warn or error
@param key The key into the SuppressCache
@param timeout The timeout
@param args The arguments to the message key | [
"Logs",
"a",
"message",
"from",
"a",
"given",
"member",
"if",
"is",
"hasn",
"t",
"been",
"logged",
"for",
"timeout",
"ms"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/SuppressLog.java#L34-L53 |
52,201 | belaban/JGroups | src/org/jgroups/blocks/Cache.java | Cache.enableReaping | @ManagedOperation
public void enableReaping(long interval) {
if(task != null)
task.cancel(false);
task=timer.scheduleWithFixedDelay(new Reaper(), 0, interval, TimeUnit.MILLISECONDS);
} | java | @ManagedOperation
public void enableReaping(long interval) {
if(task != null)
task.cancel(false);
task=timer.scheduleWithFixedDelay(new Reaper(), 0, interval, TimeUnit.MILLISECONDS);
} | [
"@",
"ManagedOperation",
"public",
"void",
"enableReaping",
"(",
"long",
"interval",
")",
"{",
"if",
"(",
"task",
"!=",
"null",
")",
"task",
".",
"cancel",
"(",
"false",
")",
";",
"task",
"=",
"timer",
".",
"scheduleWithFixedDelay",
"(",
"new",
"Reaper",
... | Runs the reaper every interval ms, evicts expired items | [
"Runs",
"the",
"reaper",
"every",
"interval",
"ms",
"evicts",
"expired",
"items"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/blocks/Cache.java#L67-L72 |
52,202 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.add | public int add(final Message msg, boolean resize) {
if(msg == null) return 0;
if(index >= messages.length) {
if(!resize)
return 0;
resize();
}
messages[index++]=msg;
return 1;
} | java | public int add(final Message msg, boolean resize) {
if(msg == null) return 0;
if(index >= messages.length) {
if(!resize)
return 0;
resize();
}
messages[index++]=msg;
return 1;
} | [
"public",
"int",
"add",
"(",
"final",
"Message",
"msg",
",",
"boolean",
"resize",
")",
"{",
"if",
"(",
"msg",
"==",
"null",
")",
"return",
"0",
";",
"if",
"(",
"index",
">=",
"messages",
".",
"length",
")",
"{",
"if",
"(",
"!",
"resize",
")",
"re... | Adds a message to the table
@param msg the message
@param resize whether or not to resize the table. If true, the method will always return 1
@return always 1 if resize==true, else 1 if the message was added or 0 if not | [
"Adds",
"a",
"message",
"to",
"the",
"table"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L136-L145 |
52,203 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.add | public int add(final MessageBatch batch, boolean resize) {
if(batch == null) return 0;
if(this == batch)
throw new IllegalArgumentException("cannot add batch to itself");
int batch_size=batch.size();
if(index+batch_size >= messages.length && resize)
resize(message... | java | public int add(final MessageBatch batch, boolean resize) {
if(batch == null) return 0;
if(this == batch)
throw new IllegalArgumentException("cannot add batch to itself");
int batch_size=batch.size();
if(index+batch_size >= messages.length && resize)
resize(message... | [
"public",
"int",
"add",
"(",
"final",
"MessageBatch",
"batch",
",",
"boolean",
"resize",
")",
"{",
"if",
"(",
"batch",
"==",
"null",
")",
"return",
"0",
";",
"if",
"(",
"this",
"==",
"batch",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"canno... | Adds another batch to this one
@param batch the batch to add to this batch
@param resize when true, this batch will be resized to accommodate the other batch
@return the number of messages from the other batch that were added successfully. Will always be batch.size()
unless resize==0: in this case, the number of messag... | [
"Adds",
"another",
"batch",
"to",
"this",
"one"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L159-L175 |
52,204 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.replace | public MessageBatch replace(Message existing_msg, Message new_msg) {
if(existing_msg == null)
return this;
for(int i=0; i < index; i++) {
if(messages[i] != null && messages[i] == existing_msg) {
messages[i]=new_msg;
break;
}
}
... | java | public MessageBatch replace(Message existing_msg, Message new_msg) {
if(existing_msg == null)
return this;
for(int i=0; i < index; i++) {
if(messages[i] != null && messages[i] == existing_msg) {
messages[i]=new_msg;
break;
}
}
... | [
"public",
"MessageBatch",
"replace",
"(",
"Message",
"existing_msg",
",",
"Message",
"new_msg",
")",
"{",
"if",
"(",
"existing_msg",
"==",
"null",
")",
"return",
"this",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"index",
";",
"i",
"++",
"... | Replaces a message in the batch with another one
@param existing_msg The message to be replaced. The message has to be non-null and is found by identity (==)
comparison
@param new_msg The message to replace the existing message with, can be null
@return | [
"Replaces",
"a",
"message",
"in",
"the",
"batch",
"with",
"another",
"one"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L184-L194 |
52,205 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.replace | public MessageBatch replace(Predicate<Message> filter, Message replacement, boolean match_all) {
replaceIf(filter, replacement, match_all);
return this;
} | java | public MessageBatch replace(Predicate<Message> filter, Message replacement, boolean match_all) {
replaceIf(filter, replacement, match_all);
return this;
} | [
"public",
"MessageBatch",
"replace",
"(",
"Predicate",
"<",
"Message",
">",
"filter",
",",
"Message",
"replacement",
",",
"boolean",
"match_all",
")",
"{",
"replaceIf",
"(",
"filter",
",",
"replacement",
",",
"match_all",
")",
";",
"return",
"this",
";",
"}"... | Replaces all messages which match a given filter with a replacement message
@param filter the filter. If null, no changes take place. Note that filter needs to be able to handle null msgs
@param replacement the replacement message. Can be null, which essentially removes all messages matching filter
@param match_all whe... | [
"Replaces",
"all",
"messages",
"which",
"match",
"a",
"given",
"filter",
"with",
"a",
"replacement",
"message"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L203-L206 |
52,206 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.replaceIf | public int replaceIf(Predicate<Message> filter, Message replacement, boolean match_all) {
if(filter == null)
return 0;
int matched=0;
for(int i=0; i < index; i++) {
if(filter.test(messages[i])) {
messages[i]=replacement;
matched++;
... | java | public int replaceIf(Predicate<Message> filter, Message replacement, boolean match_all) {
if(filter == null)
return 0;
int matched=0;
for(int i=0; i < index; i++) {
if(filter.test(messages[i])) {
messages[i]=replacement;
matched++;
... | [
"public",
"int",
"replaceIf",
"(",
"Predicate",
"<",
"Message",
">",
"filter",
",",
"Message",
"replacement",
",",
"boolean",
"match_all",
")",
"{",
"if",
"(",
"filter",
"==",
"null",
")",
"return",
"0",
";",
"int",
"matched",
"=",
"0",
";",
"for",
"("... | Replaces all messages that match a given filter with a replacement message
@param filter the filter. If null, no changes take place. Note that filter needs to be able to handle null msgs
@param replacement the replacement message. Can be null, which essentially removes all messages matching filter
@param match_all whet... | [
"Replaces",
"all",
"messages",
"that",
"match",
"a",
"given",
"filter",
"with",
"a",
"replacement",
"message"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L215-L228 |
52,207 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.transferFrom | public int transferFrom(MessageBatch other, boolean clear) {
if(other == null || this == other)
return 0;
int capacity=messages.length, other_size=other.size();
if(other_size == 0)
return 0;
if(capacity < other_size)
messages=new Message[other_size];
... | java | public int transferFrom(MessageBatch other, boolean clear) {
if(other == null || this == other)
return 0;
int capacity=messages.length, other_size=other.size();
if(other_size == 0)
return 0;
if(capacity < other_size)
messages=new Message[other_size];
... | [
"public",
"int",
"transferFrom",
"(",
"MessageBatch",
"other",
",",
"boolean",
"clear",
")",
"{",
"if",
"(",
"other",
"==",
"null",
"||",
"this",
"==",
"other",
")",
"return",
"0",
";",
"int",
"capacity",
"=",
"messages",
".",
"length",
",",
"other_size"... | Transfers messages from other to this batch. Optionally clears the other batch after the transfer
@param other the other batch
@param clear If true, the transferred messages are removed from the other batch
@return the number of transferred messages (may be 0 if the other batch was empty) | [
"Transfers",
"messages",
"from",
"other",
"to",
"this",
"batch",
".",
"Optionally",
"clears",
"the",
"other",
"batch",
"after",
"the",
"transfer"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L236-L252 |
52,208 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.getMatchingMessages | public Collection<Message> getMatchingMessages(final short id, boolean remove) {
return map((msg, batch) -> {
if(msg != null && msg.getHeader(id) != null) {
if(remove)
batch.remove(msg);
return msg;
}
return null;
})... | java | public Collection<Message> getMatchingMessages(final short id, boolean remove) {
return map((msg, batch) -> {
if(msg != null && msg.getHeader(id) != null) {
if(remove)
batch.remove(msg);
return msg;
}
return null;
})... | [
"public",
"Collection",
"<",
"Message",
">",
"getMatchingMessages",
"(",
"final",
"short",
"id",
",",
"boolean",
"remove",
")",
"{",
"return",
"map",
"(",
"(",
"msg",
",",
"batch",
")",
"->",
"{",
"if",
"(",
"msg",
"!=",
"null",
"&&",
"msg",
".",
"ge... | Removes and returns all messages which have a header with ID == id | [
"Removes",
"and",
"returns",
"all",
"messages",
"which",
"have",
"a",
"header",
"with",
"ID",
"==",
"id"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L285-L294 |
52,209 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.map | public <T> Collection<T> map(BiFunction<Message,MessageBatch,T> visitor) {
Collection<T> retval=null;
for(int i=0; i < index; i++) {
try {
T result=visitor.apply(messages[i], this);
if(result != null) {
if(retval == null)
... | java | public <T> Collection<T> map(BiFunction<Message,MessageBatch,T> visitor) {
Collection<T> retval=null;
for(int i=0; i < index; i++) {
try {
T result=visitor.apply(messages[i], this);
if(result != null) {
if(retval == null)
... | [
"public",
"<",
"T",
">",
"Collection",
"<",
"T",
">",
"map",
"(",
"BiFunction",
"<",
"Message",
",",
"MessageBatch",
",",
"T",
">",
"visitor",
")",
"{",
"Collection",
"<",
"T",
">",
"retval",
"=",
"null",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";... | Applies a function to all messages and returns a list of the function results | [
"Applies",
"a",
"function",
"to",
"all",
"messages",
"and",
"returns",
"a",
"list",
"of",
"the",
"function",
"results"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L298-L313 |
52,210 | belaban/JGroups | src/org/jgroups/util/MessageBatch.java | MessageBatch.size | public int size() {
int retval=0;
for(int i=0; i < index; i++)
if(messages[i] != null)
retval++;
return retval;
} | java | public int size() {
int retval=0;
for(int i=0; i < index; i++)
if(messages[i] != null)
retval++;
return retval;
} | [
"public",
"int",
"size",
"(",
")",
"{",
"int",
"retval",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"index",
";",
"i",
"++",
")",
"if",
"(",
"messages",
"[",
"i",
"]",
"!=",
"null",
")",
"retval",
"++",
";",
"return",
"... | Returns the number of non-null messages | [
"Returns",
"the",
"number",
"of",
"non",
"-",
"null",
"messages"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/util/MessageBatch.java#L327-L333 |
52,211 | belaban/JGroups | src/org/jgroups/protocols/DISCARD.java | DISCARD.shouldDropUpMessage | protected boolean shouldDropUpMessage(@SuppressWarnings("UnusedParameters") Message msg, Address sender) {
if(discard_all && !sender.equals(localAddress()))
return true;
if(ignoredMembers.contains(sender)) {
if(log.isTraceEnabled())
log.trace(localAddress + ": dr... | java | protected boolean shouldDropUpMessage(@SuppressWarnings("UnusedParameters") Message msg, Address sender) {
if(discard_all && !sender.equals(localAddress()))
return true;
if(ignoredMembers.contains(sender)) {
if(log.isTraceEnabled())
log.trace(localAddress + ": dr... | [
"protected",
"boolean",
"shouldDropUpMessage",
"(",
"@",
"SuppressWarnings",
"(",
"\"UnusedParameters\"",
")",
"Message",
"msg",
",",
"Address",
"sender",
")",
"{",
"if",
"(",
"discard_all",
"&&",
"!",
"sender",
".",
"equals",
"(",
"localAddress",
"(",
")",
")... | Checks if a message should be passed up, or not | [
"Checks",
"if",
"a",
"message",
"should",
"be",
"passed",
"up",
"or",
"not"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/protocols/DISCARD.java#L271-L298 |
52,212 | belaban/JGroups | src/org/jgroups/protocols/TransferQueueBundler.java | TransferQueueBundler.drain | protected void drain() {
Message msg;
while((msg=queue.poll()) != null)
addAndSendIfSizeExceeded(msg);
_sendBundledMessages();
} | java | protected void drain() {
Message msg;
while((msg=queue.poll()) != null)
addAndSendIfSizeExceeded(msg);
_sendBundledMessages();
} | [
"protected",
"void",
"drain",
"(",
")",
"{",
"Message",
"msg",
";",
"while",
"(",
"(",
"msg",
"=",
"queue",
".",
"poll",
"(",
")",
")",
"!=",
"null",
")",
"addAndSendIfSizeExceeded",
"(",
"msg",
")",
";",
"_sendBundledMessages",
"(",
")",
";",
"}"
] | Takes all messages from the queue, adds them to the hashmap and then sends all bundled messages | [
"Takes",
"all",
"messages",
"from",
"the",
"queue",
"adds",
"them",
"to",
"the",
"hashmap",
"and",
"then",
"sends",
"all",
"bundled",
"messages"
] | bd3ca786aa57fed41dfbc10a94b1281e388be03b | https://github.com/belaban/JGroups/blob/bd3ca786aa57fed41dfbc10a94b1281e388be03b/src/org/jgroups/protocols/TransferQueueBundler.java#L141-L146 |
52,213 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/builder/AbstractTextFieldBuilder.java | AbstractTextFieldBuilder.buildTextComponent | public E buildTextComponent() {
final E textComponent = createTextComponent();
textComponent.setRequired(required);
textComponent.setImmediate(immediate);
textComponent.setReadOnly(readOnly);
textComponent.setEnabled(enabled);
if (!StringUtils.isEmpty(caption)) {
... | java | public E buildTextComponent() {
final E textComponent = createTextComponent();
textComponent.setRequired(required);
textComponent.setImmediate(immediate);
textComponent.setReadOnly(readOnly);
textComponent.setEnabled(enabled);
if (!StringUtils.isEmpty(caption)) {
... | [
"public",
"E",
"buildTextComponent",
"(",
")",
"{",
"final",
"E",
"textComponent",
"=",
"createTextComponent",
"(",
")",
";",
"textComponent",
".",
"setRequired",
"(",
"required",
")",
";",
"textComponent",
".",
"setImmediate",
"(",
"immediate",
")",
";",
"tex... | Build a textfield
@return textfield | [
"Build",
"a",
"textfield"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/builder/AbstractTextFieldBuilder.java#L160-L198 |
52,214 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/detailslayout/TargetFilterQueryDetailsTable.java | TargetFilterQueryDetailsTable.populateTableByDistributionSet | public void populateTableByDistributionSet(final DistributionSet distributionSet) {
removeAllItems();
if (distributionSet == null) {
return;
}
final Container dataSource = getContainerDataSource();
final List<TargetFilterQuery> filters = distributionSet.getAutoAssign... | java | public void populateTableByDistributionSet(final DistributionSet distributionSet) {
removeAllItems();
if (distributionSet == null) {
return;
}
final Container dataSource = getContainerDataSource();
final List<TargetFilterQuery> filters = distributionSet.getAutoAssign... | [
"public",
"void",
"populateTableByDistributionSet",
"(",
"final",
"DistributionSet",
"distributionSet",
")",
"{",
"removeAllItems",
"(",
")",
";",
"if",
"(",
"distributionSet",
"==",
"null",
")",
"{",
"return",
";",
"}",
"final",
"Container",
"dataSource",
"=",
... | Populate software module metadata.
@param distributionSet
the selected distribution set | [
"Populate",
"software",
"module",
"metadata",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/detailslayout/TargetFilterQueryDetailsTable.java#L48-L63 |
52,215 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java | DistributionAddUpdateWindowLayout.createRequiredComponents | private void createRequiredComponents() {
distNameTextField = createTextField("textfield.name", UIComponentIdProvider.DIST_ADD_NAME,
DistributionSet.NAME_MAX_SIZE);
distVersionTextField = createTextField("textfield.version", UIComponentIdProvider.DIST_ADD_VERSION,
Distrib... | java | private void createRequiredComponents() {
distNameTextField = createTextField("textfield.name", UIComponentIdProvider.DIST_ADD_NAME,
DistributionSet.NAME_MAX_SIZE);
distVersionTextField = createTextField("textfield.version", UIComponentIdProvider.DIST_ADD_VERSION,
Distrib... | [
"private",
"void",
"createRequiredComponents",
"(",
")",
"{",
"distNameTextField",
"=",
"createTextField",
"(",
"\"textfield.name\"",
",",
"UIComponentIdProvider",
".",
"DIST_ADD_NAME",
",",
"DistributionSet",
".",
"NAME_MAX_SIZE",
")",
";",
"distVersionTextField",
"=",
... | Create required UI components. | [
"Create",
"required",
"UI",
"components",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java#L223-L243 |
52,216 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java | DistributionAddUpdateWindowLayout.getDistSetTypeLazyQueryContainer | private static LazyQueryContainer getDistSetTypeLazyQueryContainer() {
final BeanQueryFactory<DistributionSetTypeBeanQuery> dtQF = new BeanQueryFactory<>(
DistributionSetTypeBeanQuery.class);
dtQF.setQueryConfiguration(Collections.emptyMap());
final LazyQueryContainer disttypeCo... | java | private static LazyQueryContainer getDistSetTypeLazyQueryContainer() {
final BeanQueryFactory<DistributionSetTypeBeanQuery> dtQF = new BeanQueryFactory<>(
DistributionSetTypeBeanQuery.class);
dtQF.setQueryConfiguration(Collections.emptyMap());
final LazyQueryContainer disttypeCo... | [
"private",
"static",
"LazyQueryContainer",
"getDistSetTypeLazyQueryContainer",
"(",
")",
"{",
"final",
"BeanQueryFactory",
"<",
"DistributionSetTypeBeanQuery",
">",
"dtQF",
"=",
"new",
"BeanQueryFactory",
"<>",
"(",
"DistributionSetTypeBeanQuery",
".",
"class",
")",
";",
... | Get the LazyQueryContainer instance for DistributionSetTypes.
@return | [
"Get",
"the",
"LazyQueryContainer",
"instance",
"for",
"DistributionSetTypes",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java#L255-L266 |
52,217 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java | DistributionAddUpdateWindowLayout.resetComponents | public void resetComponents() {
distNameTextField.clear();
distNameTextField.removeStyleName("v-textfield-error");
distVersionTextField.clear();
distVersionTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.removeStyleNam... | java | public void resetComponents() {
distNameTextField.clear();
distNameTextField.removeStyleName("v-textfield-error");
distVersionTextField.clear();
distVersionTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_LAYOUT_ERROR_HIGHTLIGHT);
distsetTypeNameComboBox.removeStyleNam... | [
"public",
"void",
"resetComponents",
"(",
")",
"{",
"distNameTextField",
".",
"clear",
"(",
")",
";",
"distNameTextField",
".",
"removeStyleName",
"(",
"\"v-textfield-error\"",
")",
";",
"distVersionTextField",
".",
"clear",
"(",
")",
";",
"distVersionTextField",
... | clear all the fields. | [
"clear",
"all",
"the",
"fields",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java#L276-L286 |
52,218 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java | DistributionAddUpdateWindowLayout.getWindow | private CommonDialogWindow getWindow(final Long editDistId) {
final SaveDialogCloseListener saveDialogCloseListener;
String caption;
resetComponents();
populateDistSetTypeNameCombo();
if (editDistId == null) {
saveDialogCloseListener = new CreateOnCloseDialogListen... | java | private CommonDialogWindow getWindow(final Long editDistId) {
final SaveDialogCloseListener saveDialogCloseListener;
String caption;
resetComponents();
populateDistSetTypeNameCombo();
if (editDistId == null) {
saveDialogCloseListener = new CreateOnCloseDialogListen... | [
"private",
"CommonDialogWindow",
"getWindow",
"(",
"final",
"Long",
"editDistId",
")",
"{",
"final",
"SaveDialogCloseListener",
"saveDialogCloseListener",
";",
"String",
"caption",
";",
"resetComponents",
"(",
")",
";",
"populateDistSetTypeNameCombo",
"(",
")",
";",
"... | Internal method to create a window to create or update a DistributionSet.
@param editDistId
if <code>null</code> is provided the window is configured to
create a DistributionSet otherwise it is configured for
update.
@return | [
"Internal",
"method",
"to",
"create",
"a",
"window",
"to",
"create",
"or",
"update",
"a",
"DistributionSet",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java#L336-L356 |
52,219 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java | DistributionAddUpdateWindowLayout.populateDistSetTypeNameCombo | private void populateDistSetTypeNameCombo() {
distsetTypeNameComboBox.setContainerDataSource(getDistSetTypeLazyQueryContainer());
distsetTypeNameComboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME);
distsetTypeNameComboBox.setValue(getDefaultDistributionSetType().getId());
} | java | private void populateDistSetTypeNameCombo() {
distsetTypeNameComboBox.setContainerDataSource(getDistSetTypeLazyQueryContainer());
distsetTypeNameComboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME);
distsetTypeNameComboBox.setValue(getDefaultDistributionSetType().getId());
} | [
"private",
"void",
"populateDistSetTypeNameCombo",
"(",
")",
"{",
"distsetTypeNameComboBox",
".",
"setContainerDataSource",
"(",
"getDistSetTypeLazyQueryContainer",
"(",
")",
")",
";",
"distsetTypeNameComboBox",
".",
"setItemCaptionPropertyId",
"(",
"SPUILabelDefinitions",
".... | Populate DistributionSet Type name combo. | [
"Populate",
"DistributionSet",
"Type",
"name",
"combo",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/dstable/DistributionAddUpdateWindowLayout.java#L361-L365 |
52,220 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.createMaintenanceScheduleControl | private void createMaintenanceScheduleControl() {
schedule = new TextFieldBuilder(Action.MAINTENANCE_WINDOW_SCHEDULE_LENGTH)
.id(UIComponentIdProvider.MAINTENANCE_WINDOW_SCHEDULE_ID)
.caption(i18n.getMessage("caption.maintenancewindow.schedule")).validator(new CronValidator())
... | java | private void createMaintenanceScheduleControl() {
schedule = new TextFieldBuilder(Action.MAINTENANCE_WINDOW_SCHEDULE_LENGTH)
.id(UIComponentIdProvider.MAINTENANCE_WINDOW_SCHEDULE_ID)
.caption(i18n.getMessage("caption.maintenancewindow.schedule")).validator(new CronValidator())
... | [
"private",
"void",
"createMaintenanceScheduleControl",
"(",
")",
"{",
"schedule",
"=",
"new",
"TextFieldBuilder",
"(",
"Action",
".",
"MAINTENANCE_WINDOW_SCHEDULE_LENGTH",
")",
".",
"id",
"(",
"UIComponentIdProvider",
".",
"MAINTENANCE_WINDOW_SCHEDULE_ID",
")",
".",
"ca... | Text field to specify the schedule. | [
"Text",
"field",
"to",
"specify",
"the",
"schedule",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L86-L92 |
52,221 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.createMaintenanceDurationControl | private void createMaintenanceDurationControl() {
duration = new TextFieldBuilder(Action.MAINTENANCE_WINDOW_DURATION_LENGTH)
.id(UIComponentIdProvider.MAINTENANCE_WINDOW_DURATION_ID)
.caption(i18n.getMessage("caption.maintenancewindow.duration")).validator(new DurationValidator()... | java | private void createMaintenanceDurationControl() {
duration = new TextFieldBuilder(Action.MAINTENANCE_WINDOW_DURATION_LENGTH)
.id(UIComponentIdProvider.MAINTENANCE_WINDOW_DURATION_ID)
.caption(i18n.getMessage("caption.maintenancewindow.duration")).validator(new DurationValidator()... | [
"private",
"void",
"createMaintenanceDurationControl",
"(",
")",
"{",
"duration",
"=",
"new",
"TextFieldBuilder",
"(",
"Action",
".",
"MAINTENANCE_WINDOW_DURATION_LENGTH",
")",
".",
"id",
"(",
"UIComponentIdProvider",
".",
"MAINTENANCE_WINDOW_DURATION_ID",
")",
".",
"ca... | Text field to specify the duration. | [
"Text",
"field",
"to",
"specify",
"the",
"duration",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L152-L157 |
52,222 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.createMaintenanceTimeZoneControl | private void createMaintenanceTimeZoneControl() {
// ComboBoxBuilder cannot be used here, because Builder do
// 'comboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME);'
// which interferes our code: 'timeZone.addItems(getAllTimeZones());'
timeZone = new ComboBox();
tim... | java | private void createMaintenanceTimeZoneControl() {
// ComboBoxBuilder cannot be used here, because Builder do
// 'comboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME);'
// which interferes our code: 'timeZone.addItems(getAllTimeZones());'
timeZone = new ComboBox();
tim... | [
"private",
"void",
"createMaintenanceTimeZoneControl",
"(",
")",
"{",
"// ComboBoxBuilder cannot be used here, because Builder do",
"// 'comboBox.setItemCaptionPropertyId(SPUILabelDefinitions.VAR_NAME);'",
"// which interferes our code: 'timeZone.addItems(getAllTimeZones());'",
"timeZone",
"=",
... | Combo box to pick the time zone offset. | [
"Combo",
"box",
"to",
"pick",
"the",
"time",
"zone",
"offset",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L185-L197 |
52,223 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.getAllTimeZones | private static List<String> getAllTimeZones() {
final List<String> lst = ZoneId.getAvailableZoneIds().stream()
.map(id -> ZonedDateTime.now(ZoneId.of(id)).getOffset().getId().replace("Z", "+00:00")).distinct()
.collect(Collectors.toList());
lst.sort(null);
return ... | java | private static List<String> getAllTimeZones() {
final List<String> lst = ZoneId.getAvailableZoneIds().stream()
.map(id -> ZonedDateTime.now(ZoneId.of(id)).getOffset().getId().replace("Z", "+00:00")).distinct()
.collect(Collectors.toList());
lst.sort(null);
return ... | [
"private",
"static",
"List",
"<",
"String",
">",
"getAllTimeZones",
"(",
")",
"{",
"final",
"List",
"<",
"String",
">",
"lst",
"=",
"ZoneId",
".",
"getAvailableZoneIds",
"(",
")",
".",
"stream",
"(",
")",
".",
"map",
"(",
"id",
"->",
"ZonedDateTime",
"... | Get list of all time zone offsets supported. | [
"Get",
"list",
"of",
"all",
"time",
"zone",
"offsets",
"supported",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L202-L208 |
52,224 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.getClientTimeZone | private static String getClientTimeZone() {
return ZonedDateTime.now(SPDateTimeUtil.getTimeZoneId(SPDateTimeUtil.getBrowserTimeZone())).getOffset().getId()
.replaceAll("Z", "+00:00");
} | java | private static String getClientTimeZone() {
return ZonedDateTime.now(SPDateTimeUtil.getTimeZoneId(SPDateTimeUtil.getBrowserTimeZone())).getOffset().getId()
.replaceAll("Z", "+00:00");
} | [
"private",
"static",
"String",
"getClientTimeZone",
"(",
")",
"{",
"return",
"ZonedDateTime",
".",
"now",
"(",
"SPDateTimeUtil",
".",
"getTimeZoneId",
"(",
"SPDateTimeUtil",
".",
"getBrowserTimeZone",
"(",
")",
")",
")",
".",
"getOffset",
"(",
")",
".",
"getId... | Get time zone of the browser client to be used as default. | [
"Get",
"time",
"zone",
"of",
"the",
"browser",
"client",
"to",
"be",
"used",
"as",
"default",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L213-L216 |
52,225 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.createMaintenanceScheduleTranslatorControl | private void createMaintenanceScheduleTranslatorControl() {
scheduleTranslator = new LabelBuilder().id(UIComponentIdProvider.MAINTENANCE_WINDOW_SCHEDULE_TRANSLATOR_ID)
.name(i18n.getMessage(CRON_VALIDATION_ERROR)).buildLabel();
scheduleTranslator.addStyleName(ValoTheme.LABEL_TINY);
} | java | private void createMaintenanceScheduleTranslatorControl() {
scheduleTranslator = new LabelBuilder().id(UIComponentIdProvider.MAINTENANCE_WINDOW_SCHEDULE_TRANSLATOR_ID)
.name(i18n.getMessage(CRON_VALIDATION_ERROR)).buildLabel();
scheduleTranslator.addStyleName(ValoTheme.LABEL_TINY);
} | [
"private",
"void",
"createMaintenanceScheduleTranslatorControl",
"(",
")",
"{",
"scheduleTranslator",
"=",
"new",
"LabelBuilder",
"(",
")",
".",
"id",
"(",
"UIComponentIdProvider",
".",
"MAINTENANCE_WINDOW_SCHEDULE_TRANSLATOR_ID",
")",
".",
"name",
"(",
"i18n",
".",
"... | Label to translate the cron schedule to human readable format. | [
"Label",
"to",
"translate",
"the",
"cron",
"schedule",
"to",
"human",
"readable",
"format",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L221-L225 |
52,226 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java | MaintenanceWindowLayout.clearAllControls | public void clearAllControls() {
schedule.setValue("");
duration.setValue("");
timeZone.setValue(getClientTimeZone());
scheduleTranslator.setValue(i18n.getMessage(CRON_VALIDATION_ERROR));
} | java | public void clearAllControls() {
schedule.setValue("");
duration.setValue("");
timeZone.setValue(getClientTimeZone());
scheduleTranslator.setValue(i18n.getMessage(CRON_VALIDATION_ERROR));
} | [
"public",
"void",
"clearAllControls",
"(",
")",
"{",
"schedule",
".",
"setValue",
"(",
"\"\"",
")",
";",
"duration",
".",
"setValue",
"(",
"\"\"",
")",
";",
"timeZone",
".",
"setValue",
"(",
"getClientTimeZone",
"(",
")",
")",
";",
"scheduleTranslator",
".... | Set all the controls to their default values. | [
"Set",
"all",
"the",
"controls",
"to",
"their",
"default",
"values",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/miscs/MaintenanceWindowLayout.java#L258-L263 |
52,227 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java | AutoCompleteTextFieldComponent.clear | public void clear() {
queryTextField.clear();
validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml());
validationIcon.setStyleName("hide-status-label");
} | java | public void clear() {
queryTextField.clear();
validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml());
validationIcon.setStyleName("hide-status-label");
} | [
"public",
"void",
"clear",
"(",
")",
"{",
"queryTextField",
".",
"clear",
"(",
")",
";",
"validationIcon",
".",
"setValue",
"(",
"FontAwesome",
".",
"CHECK_CIRCLE",
".",
"getHtml",
"(",
")",
")",
";",
"validationIcon",
".",
"setStyleName",
"(",
"\"hide-statu... | Clears the textfield and resets the validation icon. | [
"Clears",
"the",
"textfield",
"and",
"resets",
"the",
"validation",
"icon",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java#L115-L119 |
52,228 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java | AutoCompleteTextFieldComponent.showValidationSuccesIcon | public void showValidationSuccesIcon(final String text) {
validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml());
validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON);
filterManagementUIState.setFilterQueryValue(text);
filterManagementUIState.setIsFilterByInvalidFilterQuer... | java | public void showValidationSuccesIcon(final String text) {
validationIcon.setValue(FontAwesome.CHECK_CIRCLE.getHtml());
validationIcon.setStyleName(SPUIStyleDefinitions.SUCCESS_ICON);
filterManagementUIState.setFilterQueryValue(text);
filterManagementUIState.setIsFilterByInvalidFilterQuer... | [
"public",
"void",
"showValidationSuccesIcon",
"(",
"final",
"String",
"text",
")",
"{",
"validationIcon",
".",
"setValue",
"(",
"FontAwesome",
".",
"CHECK_CIRCLE",
".",
"getHtml",
"(",
")",
")",
";",
"validationIcon",
".",
"setStyleName",
"(",
"SPUIStyleDefinition... | Shows the validation success icon in the textfield
@param text
the text to store in the UI state object | [
"Shows",
"the",
"validation",
"success",
"icon",
"in",
"the",
"textfield"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java#L171-L176 |
52,229 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java | AutoCompleteTextFieldComponent.showValidationFailureIcon | public void showValidationFailureIcon(final String validationMessage) {
validationIcon.setValue(FontAwesome.TIMES_CIRCLE.getHtml());
validationIcon.setStyleName(SPUIStyleDefinitions.ERROR_ICON);
validationIcon.setDescription(validationMessage);
filterManagementUIState.setFilterQueryValue... | java | public void showValidationFailureIcon(final String validationMessage) {
validationIcon.setValue(FontAwesome.TIMES_CIRCLE.getHtml());
validationIcon.setStyleName(SPUIStyleDefinitions.ERROR_ICON);
validationIcon.setDescription(validationMessage);
filterManagementUIState.setFilterQueryValue... | [
"public",
"void",
"showValidationFailureIcon",
"(",
"final",
"String",
"validationMessage",
")",
"{",
"validationIcon",
".",
"setValue",
"(",
"FontAwesome",
".",
"TIMES_CIRCLE",
".",
"getHtml",
"(",
")",
")",
";",
"validationIcon",
".",
"setStyleName",
"(",
"SPUIS... | Shows the validation error icon in the textfield
@param validationMessage
the validation message which should be added to the error-icon
tooltip | [
"Shows",
"the",
"validation",
"error",
"icon",
"in",
"the",
"textfield"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java#L185-L191 |
52,230 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java | AutoCompleteTextFieldComponent.showValidationInProgress | public void showValidationInProgress() {
validationIcon.setValue(null);
validationIcon.addStyleName("show-status-label");
validationIcon.setStyleName(SPUIStyleDefinitions.TARGET_FILTER_SEARCH_PROGRESS_INDICATOR_STYLE);
} | java | public void showValidationInProgress() {
validationIcon.setValue(null);
validationIcon.addStyleName("show-status-label");
validationIcon.setStyleName(SPUIStyleDefinitions.TARGET_FILTER_SEARCH_PROGRESS_INDICATOR_STYLE);
} | [
"public",
"void",
"showValidationInProgress",
"(",
")",
"{",
"validationIcon",
".",
"setValue",
"(",
"null",
")",
";",
"validationIcon",
".",
"addStyleName",
"(",
"\"show-status-label\"",
")",
";",
"validationIcon",
".",
"setStyleName",
"(",
"SPUIStyleDefinitions",
... | Sets the spinner as progress indicator. | [
"Sets",
"the",
"spinner",
"as",
"progress",
"indicator",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/AutoCompleteTextFieldComponent.java#L239-L243 |
52,231 | eclipse/hawkbit | hawkbit-autoconfigure/src/main/java/org/eclipse/hawkbit/autoconfigure/security/SecurityManagedConfiguration.java | SecurityManagedConfiguration.dosSystemFilter | @Bean
@ConditionalOnProperty(prefix = "hawkbit.server.security.dos.filter", name = "enabled", matchIfMissing = true)
public FilterRegistrationBean<DosFilter> dosSystemFilter(final HawkbitSecurityProperties securityProperties) {
final FilterRegistrationBean<DosFilter> filterRegBean = dosFilter(Collectio... | java | @Bean
@ConditionalOnProperty(prefix = "hawkbit.server.security.dos.filter", name = "enabled", matchIfMissing = true)
public FilterRegistrationBean<DosFilter> dosSystemFilter(final HawkbitSecurityProperties securityProperties) {
final FilterRegistrationBean<DosFilter> filterRegBean = dosFilter(Collectio... | [
"@",
"Bean",
"@",
"ConditionalOnProperty",
"(",
"prefix",
"=",
"\"hawkbit.server.security.dos.filter\"",
",",
"name",
"=",
"\"enabled\"",
",",
"matchIfMissing",
"=",
"true",
")",
"public",
"FilterRegistrationBean",
"<",
"DosFilter",
">",
"dosSystemFilter",
"(",
"final... | Filter to protect the hawkBit server system management interface against
to many requests.
@param securityProperties
for filter configuration
@return the spring filter registration bean for registering a denial of
service protection filter in the filter chain | [
"Filter",
"to",
"protect",
"the",
"hawkBit",
"server",
"system",
"management",
"interface",
"against",
"to",
"many",
"requests",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-autoconfigure/src/main/java/org/eclipse/hawkbit/autoconfigure/security/SecurityManagedConfiguration.java#L385-L396 |
52,232 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/rsql/PropertyMapper.java | PropertyMapper.addNewMapping | public static void addNewMapping(final Class<?> type, final String property, final String mapping) {
allowedColmns.computeIfAbsent(type, k -> new HashMap<>());
allowedColmns.get(type).put(property, mapping);
} | java | public static void addNewMapping(final Class<?> type, final String property, final String mapping) {
allowedColmns.computeIfAbsent(type, k -> new HashMap<>());
allowedColmns.get(type).put(property, mapping);
} | [
"public",
"static",
"void",
"addNewMapping",
"(",
"final",
"Class",
"<",
"?",
">",
"type",
",",
"final",
"String",
"property",
",",
"final",
"String",
"mapping",
")",
"{",
"allowedColmns",
".",
"computeIfAbsent",
"(",
"type",
",",
"k",
"->",
"new",
"HashMa... | Add new mapping - property name and alias.
@param type
entity type
@param property
alias of property
@param mapping
property name | [
"Add",
"new",
"mapping",
"-",
"property",
"name",
"and",
"alias",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/rsql/PropertyMapper.java#L38-L41 |
52,233 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/state/ArtifactUploadState.java | ArtifactUploadState.clearUploadTempData | public void clearUploadTempData() {
LOG.debug("Cleaning up temp data...");
// delete file system zombies
for (final FileUploadProgress fileUploadProgress : getAllFileUploadProgressValuesFromOverallUploadProcessList()) {
if (!StringUtils.isBlank(fileUploadProgress.getFilePath())) {
... | java | public void clearUploadTempData() {
LOG.debug("Cleaning up temp data...");
// delete file system zombies
for (final FileUploadProgress fileUploadProgress : getAllFileUploadProgressValuesFromOverallUploadProcessList()) {
if (!StringUtils.isBlank(fileUploadProgress.getFilePath())) {
... | [
"public",
"void",
"clearUploadTempData",
"(",
")",
"{",
"LOG",
".",
"debug",
"(",
"\"Cleaning up temp data...\"",
")",
";",
"// delete file system zombies",
"for",
"(",
"final",
"FileUploadProgress",
"fileUploadProgress",
":",
"getAllFileUploadProgressValuesFromOverallUploadP... | Clears all temp data collected while uploading files. | [
"Clears",
"all",
"temp",
"data",
"collected",
"while",
"uploading",
"files",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/state/ArtifactUploadState.java#L233-L245 |
52,234 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/state/ArtifactUploadState.java | ArtifactUploadState.isUploadInProgressForSelectedSoftwareModule | public boolean isUploadInProgressForSelectedSoftwareModule(final Long softwareModuleId) {
for (final FileUploadId fileUploadId : getAllFileUploadIdsFromOverallUploadProcessList()) {
if (fileUploadId.getSoftwareModuleId().equals(softwareModuleId)) {
return true;
}
... | java | public boolean isUploadInProgressForSelectedSoftwareModule(final Long softwareModuleId) {
for (final FileUploadId fileUploadId : getAllFileUploadIdsFromOverallUploadProcessList()) {
if (fileUploadId.getSoftwareModuleId().equals(softwareModuleId)) {
return true;
}
... | [
"public",
"boolean",
"isUploadInProgressForSelectedSoftwareModule",
"(",
"final",
"Long",
"softwareModuleId",
")",
"{",
"for",
"(",
"final",
"FileUploadId",
"fileUploadId",
":",
"getAllFileUploadIdsFromOverallUploadProcessList",
"(",
")",
")",
"{",
"if",
"(",
"fileUploadI... | Checks if an upload is in progress for the given Software Module
@param softwareModuleId
id of the software module
@return boolean | [
"Checks",
"if",
"an",
"upload",
"is",
"in",
"progress",
"for",
"the",
"given",
"Software",
"Module"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/state/ArtifactUploadState.java#L254-L261 |
52,235 | eclipse/hawkbit | hawkbit-rest/hawkbit-rest-core/src/main/java/org/eclipse/hawkbit/rest/util/SortUtility.java | SortUtility.getAttributeIdentifierByName | private static <T extends Enum<T> & FieldNameProvider> T getAttributeIdentifierByName(final Class<T> enumType,
final String name) {
try {
return Enum.valueOf(enumType, name.toUpperCase());
} catch (final IllegalArgumentException e) {
throw new SortParameterUnsupported... | java | private static <T extends Enum<T> & FieldNameProvider> T getAttributeIdentifierByName(final Class<T> enumType,
final String name) {
try {
return Enum.valueOf(enumType, name.toUpperCase());
} catch (final IllegalArgumentException e) {
throw new SortParameterUnsupported... | [
"private",
"static",
"<",
"T",
"extends",
"Enum",
"<",
"T",
">",
"&",
"FieldNameProvider",
">",
"T",
"getAttributeIdentifierByName",
"(",
"final",
"Class",
"<",
"T",
">",
"enumType",
",",
"final",
"String",
"name",
")",
"{",
"try",
"{",
"return",
"Enum",
... | Returns the attribute identifier for the given name.
@param enumType
the class of the enum which the fields in the sort string
should be related to.
@param name
the name of the enum
@param <T>
the type of the enumeration which must be derived from
{@link FieldNameProvider}
@return the corresponding enum
@throws SortPa... | [
"Returns",
"the",
"attribute",
"identifier",
"for",
"the",
"given",
"name",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-rest-core/src/main/java/org/eclipse/hawkbit/rest/util/SortUtility.java#L110-L117 |
52,236 | eclipse/hawkbit | hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherService.java | AmqpMessageDispatcherService.targetCancelAssignmentToDistributionSet | @EventListener(classes = CancelTargetAssignmentEvent.class)
protected void targetCancelAssignmentToDistributionSet(final CancelTargetAssignmentEvent cancelEvent) {
if (isNotFromSelf(cancelEvent)) {
return;
}
sendCancelMessageToTarget(cancelEvent.getTenant(), cancelEvent.getEntit... | java | @EventListener(classes = CancelTargetAssignmentEvent.class)
protected void targetCancelAssignmentToDistributionSet(final CancelTargetAssignmentEvent cancelEvent) {
if (isNotFromSelf(cancelEvent)) {
return;
}
sendCancelMessageToTarget(cancelEvent.getTenant(), cancelEvent.getEntit... | [
"@",
"EventListener",
"(",
"classes",
"=",
"CancelTargetAssignmentEvent",
".",
"class",
")",
"protected",
"void",
"targetCancelAssignmentToDistributionSet",
"(",
"final",
"CancelTargetAssignmentEvent",
"cancelEvent",
")",
"{",
"if",
"(",
"isNotFromSelf",
"(",
"cancelEvent... | Method to send a message to a RabbitMQ Exchange after the assignment of
the Distribution set to a Target has been canceled.
@param cancelEvent
the object to be send. | [
"Method",
"to",
"send",
"a",
"message",
"to",
"a",
"RabbitMQ",
"Exchange",
"after",
"the",
"assignment",
"of",
"the",
"Distribution",
"set",
"to",
"a",
"Target",
"has",
"been",
"canceled",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherService.java#L179-L187 |
52,237 | eclipse/hawkbit | hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherService.java | AmqpMessageDispatcherService.targetDelete | @EventListener(classes = TargetDeletedEvent.class)
protected void targetDelete(final TargetDeletedEvent deleteEvent) {
if (isNotFromSelf(deleteEvent)) {
return;
}
sendDeleteMessage(deleteEvent.getTenant(), deleteEvent.getControllerId(), deleteEvent.getTargetAddress());
} | java | @EventListener(classes = TargetDeletedEvent.class)
protected void targetDelete(final TargetDeletedEvent deleteEvent) {
if (isNotFromSelf(deleteEvent)) {
return;
}
sendDeleteMessage(deleteEvent.getTenant(), deleteEvent.getControllerId(), deleteEvent.getTargetAddress());
} | [
"@",
"EventListener",
"(",
"classes",
"=",
"TargetDeletedEvent",
".",
"class",
")",
"protected",
"void",
"targetDelete",
"(",
"final",
"TargetDeletedEvent",
"deleteEvent",
")",
"{",
"if",
"(",
"isNotFromSelf",
"(",
"deleteEvent",
")",
")",
"{",
"return",
";",
... | Method to send a message to a RabbitMQ Exchange after a Target was
deleted.
@param deleteEvent
the TargetDeletedEvent which holds the necessary data for
sending a target delete message. | [
"Method",
"to",
"send",
"a",
"message",
"to",
"a",
"RabbitMQ",
"Exchange",
"after",
"a",
"Target",
"was",
"deleted",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpMessageDispatcherService.java#L197-L203 |
52,238 | eclipse/hawkbit | hawkbit-rest/hawkbit-mgmt-api/src/main/java/org/eclipse/hawkbit/mgmt/json/model/system/MgmtSystemTenantConfigurationValueRequest.java | MgmtSystemTenantConfigurationValueRequest.setValue | public void setValue(final Object value) {
if (!(value instanceof Serializable)) {
throw new IllegalArgumentException("The value muste be a instance of " + Serializable.class.getName());
}
this.value = (Serializable) value;
} | java | public void setValue(final Object value) {
if (!(value instanceof Serializable)) {
throw new IllegalArgumentException("The value muste be a instance of " + Serializable.class.getName());
}
this.value = (Serializable) value;
} | [
"public",
"void",
"setValue",
"(",
"final",
"Object",
"value",
")",
"{",
"if",
"(",
"!",
"(",
"value",
"instanceof",
"Serializable",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"The value muste be a instance of \"",
"+",
"Serializable",
".",
... | Sets the MgmtSystemTenantConfigurationValueRequest
@param value | [
"Sets",
"the",
"MgmtSystemTenantConfigurationValueRequest"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-mgmt-api/src/main/java/org/eclipse/hawkbit/mgmt/json/model/system/MgmtSystemTenantConfigurationValueRequest.java#L41-L46 |
52,239 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/detailslayout/SoftwareModuleMetadataDetailsLayout.java | SoftwareModuleMetadataDetailsLayout.populateSMMetadata | public void populateSMMetadata(final SoftwareModule swModule) {
removeAllItems();
if (null == swModule) {
return;
}
selectedSWModuleId = swModule.getId();
final List<SoftwareModuleMetadata> swMetadataList = softwareModuleManagement
.findMetaDataBySoftw... | java | public void populateSMMetadata(final SoftwareModule swModule) {
removeAllItems();
if (null == swModule) {
return;
}
selectedSWModuleId = swModule.getId();
final List<SoftwareModuleMetadata> swMetadataList = softwareModuleManagement
.findMetaDataBySoftw... | [
"public",
"void",
"populateSMMetadata",
"(",
"final",
"SoftwareModule",
"swModule",
")",
"{",
"removeAllItems",
"(",
")",
";",
"if",
"(",
"null",
"==",
"swModule",
")",
"{",
"return",
";",
"}",
"selectedSWModuleId",
"=",
"swModule",
".",
"getId",
"(",
")",
... | Populate software module metadata table.
@param swModule | [
"Populate",
"software",
"module",
"metadata",
"table",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/detailslayout/SoftwareModuleMetadataDetailsLayout.java#L60-L71 |
52,240 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/groupschart/client/GroupsPieChartWidget.java | GroupsPieChartWidget.update | public void update(final List<Long> groupTargetCounts, final Long totalTargetCount) {
this.groupTargetCounts = groupTargetCounts;
this.totalTargetCount = totalTargetCount;
if (groupTargetCounts != null) {
long sum = 0;
for (Long targetCount : groupTargetCounts) {
... | java | public void update(final List<Long> groupTargetCounts, final Long totalTargetCount) {
this.groupTargetCounts = groupTargetCounts;
this.totalTargetCount = totalTargetCount;
if (groupTargetCounts != null) {
long sum = 0;
for (Long targetCount : groupTargetCounts) {
... | [
"public",
"void",
"update",
"(",
"final",
"List",
"<",
"Long",
">",
"groupTargetCounts",
",",
"final",
"Long",
"totalTargetCount",
")",
"{",
"this",
".",
"groupTargetCounts",
"=",
"groupTargetCounts",
";",
"this",
".",
"totalTargetCount",
"=",
"totalTargetCount",
... | Updates the pie chart with new data
@param groupTargetCounts
list of target counts
@param totalTargetCount
total count of targets that are represented by the pie | [
"Updates",
"the",
"pie",
"chart",
"with",
"new",
"data"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/groupschart/client/GroupsPieChartWidget.java#L73-L87 |
52,241 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetTableHeader.java | TargetTableHeader.doValidations | private Boolean doValidations(final DragAndDropEvent dragEvent) {
final Component compsource = dragEvent.getTransferable().getSourceComponent();
Boolean isValid = Boolean.TRUE;
if (compsource instanceof Table && !isComplexFilterViewDisplayed) {
final TableTransferable transferable = ... | java | private Boolean doValidations(final DragAndDropEvent dragEvent) {
final Component compsource = dragEvent.getTransferable().getSourceComponent();
Boolean isValid = Boolean.TRUE;
if (compsource instanceof Table && !isComplexFilterViewDisplayed) {
final TableTransferable transferable = ... | [
"private",
"Boolean",
"doValidations",
"(",
"final",
"DragAndDropEvent",
"dragEvent",
")",
"{",
"final",
"Component",
"compsource",
"=",
"dragEvent",
".",
"getTransferable",
"(",
")",
".",
"getSourceComponent",
"(",
")",
";",
"Boolean",
"isValid",
"=",
"Boolean",
... | Validation for drag event.
@param dragEvent
@return | [
"Validation",
"for",
"drag",
"event",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetTableHeader.java#L356-L377 |
52,242 | eclipse/hawkbit | hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java | MgmtSystemManagementResource.deleteTenant | @Override
public ResponseEntity<Void> deleteTenant(@PathVariable("tenant") final String tenant) {
systemManagement.deleteTenant(tenant);
return ResponseEntity.ok().build();
} | java | @Override
public ResponseEntity<Void> deleteTenant(@PathVariable("tenant") final String tenant) {
systemManagement.deleteTenant(tenant);
return ResponseEntity.ok().build();
} | [
"@",
"Override",
"public",
"ResponseEntity",
"<",
"Void",
">",
"deleteTenant",
"(",
"@",
"PathVariable",
"(",
"\"tenant\"",
")",
"final",
"String",
"tenant",
")",
"{",
"systemManagement",
".",
"deleteTenant",
"(",
"tenant",
")",
";",
"return",
"ResponseEntity",
... | Deletes the tenant data of a given tenant. USE WITH CARE!
@param tenant
to delete
@return HttpStatus.OK | [
"Deletes",
"the",
"tenant",
"data",
"of",
"a",
"given",
"tenant",
".",
"USE",
"WITH",
"CARE!"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java#L58-L62 |
52,243 | eclipse/hawkbit | hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java | MgmtSystemManagementResource.getSystemUsageStats | @Override
public ResponseEntity<MgmtSystemStatisticsRest> getSystemUsageStats() {
final SystemUsageReportWithTenants report = systemManagement.getSystemUsageStatisticsWithTenants();
final MgmtSystemStatisticsRest result = new MgmtSystemStatisticsRest()
.setOverallActions(report.getO... | java | @Override
public ResponseEntity<MgmtSystemStatisticsRest> getSystemUsageStats() {
final SystemUsageReportWithTenants report = systemManagement.getSystemUsageStatisticsWithTenants();
final MgmtSystemStatisticsRest result = new MgmtSystemStatisticsRest()
.setOverallActions(report.getO... | [
"@",
"Override",
"public",
"ResponseEntity",
"<",
"MgmtSystemStatisticsRest",
">",
"getSystemUsageStats",
"(",
")",
"{",
"final",
"SystemUsageReportWithTenants",
"report",
"=",
"systemManagement",
".",
"getSystemUsageStatisticsWithTenants",
"(",
")",
";",
"final",
"MgmtSy... | Collects and returns system usage statistics. It provides a system wide
overview and tenant based stats.
@return system usage statistics | [
"Collects",
"and",
"returns",
"system",
"usage",
"statistics",
".",
"It",
"provides",
"a",
"system",
"wide",
"overview",
"and",
"tenant",
"based",
"stats",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java#L70-L83 |
52,244 | eclipse/hawkbit | hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java | MgmtSystemManagementResource.getCaches | @Override
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_SYSTEM_ADMIN)
public ResponseEntity<Collection<MgmtSystemCache>> getCaches() {
final Collection<String> cacheNames = cacheManager.getCacheNames();
return ResponseEntity
.ok(cacheNames.stream().map(cacheManager::getCache).map(... | java | @Override
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_SYSTEM_ADMIN)
public ResponseEntity<Collection<MgmtSystemCache>> getCaches() {
final Collection<String> cacheNames = cacheManager.getCacheNames();
return ResponseEntity
.ok(cacheNames.stream().map(cacheManager::getCache).map(... | [
"@",
"Override",
"@",
"PreAuthorize",
"(",
"SpringEvalExpressions",
".",
"HAS_AUTH_SYSTEM_ADMIN",
")",
"public",
"ResponseEntity",
"<",
"Collection",
"<",
"MgmtSystemCache",
">",
">",
"getCaches",
"(",
")",
"{",
"final",
"Collection",
"<",
"String",
">",
"cacheNam... | Returns a list of all caches.
@return a list of caches for all tenants | [
"Returns",
"a",
"list",
"of",
"all",
"caches",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java#L103-L109 |
52,245 | eclipse/hawkbit | hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java | MgmtSystemManagementResource.invalidateCaches | @PreAuthorize(SpringEvalExpressions.HAS_AUTH_SYSTEM_ADMIN)
@Override
public ResponseEntity<Collection<String>> invalidateCaches() {
final Collection<String> cacheNames = cacheManager.getCacheNames();
LOGGER.info("Invalidating caches {}", cacheNames);
cacheNames.forEach(cacheName -> cache... | java | @PreAuthorize(SpringEvalExpressions.HAS_AUTH_SYSTEM_ADMIN)
@Override
public ResponseEntity<Collection<String>> invalidateCaches() {
final Collection<String> cacheNames = cacheManager.getCacheNames();
LOGGER.info("Invalidating caches {}", cacheNames);
cacheNames.forEach(cacheName -> cache... | [
"@",
"PreAuthorize",
"(",
"SpringEvalExpressions",
".",
"HAS_AUTH_SYSTEM_ADMIN",
")",
"@",
"Override",
"public",
"ResponseEntity",
"<",
"Collection",
"<",
"String",
">",
">",
"invalidateCaches",
"(",
")",
"{",
"final",
"Collection",
"<",
"String",
">",
"cacheNames... | Invalidates all caches for all tenants.
@return a list of cache names which has been invalidated | [
"Invalidates",
"all",
"caches",
"for",
"all",
"tenants",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-mgmt-resource/src/main/java/org/eclipse/hawkbit/mgmt/rest/resource/MgmtSystemManagementResource.java#L116-L123 |
52,246 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/tenantconfiguration/generic/AbstractBooleanTenantConfigurationItem.java | AbstractBooleanTenantConfigurationItem.init | protected void init(final String labelText) {
setImmediate(true);
addComponent(new LabelBuilder().name(i18n.getMessage(labelText)).buildLabel());
} | java | protected void init(final String labelText) {
setImmediate(true);
addComponent(new LabelBuilder().name(i18n.getMessage(labelText)).buildLabel());
} | [
"protected",
"void",
"init",
"(",
"final",
"String",
"labelText",
")",
"{",
"setImmediate",
"(",
"true",
")",
";",
"addComponent",
"(",
"new",
"LabelBuilder",
"(",
")",
".",
"name",
"(",
"i18n",
".",
"getMessage",
"(",
"labelText",
")",
")",
".",
"buildL... | initialize the abstract component. | [
"initialize",
"the",
"abstract",
"component",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/tenantconfiguration/generic/AbstractBooleanTenantConfigurationItem.java#L53-L56 |
52,247 | eclipse/hawkbit | hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpDeadletterProperties.java | AmqpDeadletterProperties.getDeadLetterExchangeArgs | public Map<String, Object> getDeadLetterExchangeArgs(final String exchange) {
final Map<String, Object> args = Maps.newHashMapWithExpectedSize(1);
args.put("x-dead-letter-exchange", exchange);
return args;
} | java | public Map<String, Object> getDeadLetterExchangeArgs(final String exchange) {
final Map<String, Object> args = Maps.newHashMapWithExpectedSize(1);
args.put("x-dead-letter-exchange", exchange);
return args;
} | [
"public",
"Map",
"<",
"String",
",",
"Object",
">",
"getDeadLetterExchangeArgs",
"(",
"final",
"String",
"exchange",
")",
"{",
"final",
"Map",
"<",
"String",
",",
"Object",
">",
"args",
"=",
"Maps",
".",
"newHashMapWithExpectedSize",
"(",
"1",
")",
";",
"a... | Return the deadletter arguments.
@param exchange
the deadletter exchange
@return map which holds the properties | [
"Return",
"the",
"deadletter",
"arguments",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpDeadletterProperties.java#L40-L44 |
52,248 | eclipse/hawkbit | hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpDeadletterProperties.java | AmqpDeadletterProperties.createDeadletterQueue | public Queue createDeadletterQueue(final String queueName) {
return new Queue(queueName, true, false, false, getTTLArgs());
} | java | public Queue createDeadletterQueue(final String queueName) {
return new Queue(queueName, true, false, false, getTTLArgs());
} | [
"public",
"Queue",
"createDeadletterQueue",
"(",
"final",
"String",
"queueName",
")",
"{",
"return",
"new",
"Queue",
"(",
"queueName",
",",
"true",
",",
"false",
",",
"false",
",",
"getTTLArgs",
"(",
")",
")",
";",
"}"
] | Create a deadletter queue with ttl for messages
@param queueName
the deadlette queue name
@return the deadletter queue | [
"Create",
"a",
"deadletter",
"queue",
"with",
"ttl",
"for",
"messages"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/AmqpDeadletterProperties.java#L53-L55 |
52,249 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java | TargetAddUpdateWindowLayout.updateTarget | public void updateTarget() {
/* save updated entity */
final Target target = targetManagement.update(entityFactory.target().update(controllerId)
.name(nameTextField.getValue()).description(descTextArea.getValue()));
/* display success msg */
uINotification.displaySuccess(... | java | public void updateTarget() {
/* save updated entity */
final Target target = targetManagement.update(entityFactory.target().update(controllerId)
.name(nameTextField.getValue()).description(descTextArea.getValue()));
/* display success msg */
uINotification.displaySuccess(... | [
"public",
"void",
"updateTarget",
"(",
")",
"{",
"/* save updated entity */",
"final",
"Target",
"target",
"=",
"targetManagement",
".",
"update",
"(",
"entityFactory",
".",
"target",
"(",
")",
".",
"update",
"(",
"controllerId",
")",
".",
"name",
"(",
"nameTe... | Update the Target if modified. | [
"Update",
"the",
"Target",
"if",
"modified",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java#L128-L136 |
52,250 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java | TargetAddUpdateWindowLayout.getWindow | public Window getWindow(final String controllerId) {
final Optional<Target> target = targetManagement.getByControllerID(controllerId);
if (!target.isPresent()) {
uINotification.displayWarning(i18n.getMessage("target.not.exists", controllerId));
return null;
}
popu... | java | public Window getWindow(final String controllerId) {
final Optional<Target> target = targetManagement.getByControllerID(controllerId);
if (!target.isPresent()) {
uINotification.displayWarning(i18n.getMessage("target.not.exists", controllerId));
return null;
}
popu... | [
"public",
"Window",
"getWindow",
"(",
"final",
"String",
"controllerId",
")",
"{",
"final",
"Optional",
"<",
"Target",
">",
"target",
"=",
"targetManagement",
".",
"getByControllerID",
"(",
"controllerId",
")",
";",
"if",
"(",
"!",
"target",
".",
"isPresent",
... | Returns Target Update window based on the selected Entity Id in the
target table.
@param controllerId
the target controller id
@return window or {@code null} if target is not exists. | [
"Returns",
"Target",
"Update",
"window",
"based",
"on",
"the",
"selected",
"Entity",
"Id",
"in",
"the",
"target",
"table",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java#L167-L178 |
52,251 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java | TargetAddUpdateWindowLayout.resetComponents | public void resetComponents() {
nameTextField.clear();
nameTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.setEnabled(Boolean.TRUE);
controllerIDTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.cle... | java | public void resetComponents() {
nameTextField.clear();
nameTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.setEnabled(Boolean.TRUE);
controllerIDTextField.removeStyleName(SPUIStyleDefinitions.SP_TEXTFIELD_ERROR);
controllerIDTextField.cle... | [
"public",
"void",
"resetComponents",
"(",
")",
"{",
"nameTextField",
".",
"clear",
"(",
")",
";",
"nameTextField",
".",
"removeStyleName",
"(",
"SPUIStyleDefinitions",
".",
"SP_TEXTFIELD_ERROR",
")",
";",
"controllerIDTextField",
".",
"setEnabled",
"(",
"Boolean",
... | clear all fields of Target Edit Window. | [
"clear",
"all",
"fields",
"of",
"Target",
"Edit",
"Window",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettable/TargetAddUpdateWindowLayout.java#L183-L191 |
52,252 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/colorpicker/ColorPickerHelper.java | ColorPickerHelper.getColorPickedString | public static String getColorPickedString(final SpColorPickerPreview preview) {
final Color color = preview.getColor();
return "rgb(" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() + ")";
} | java | public static String getColorPickedString(final SpColorPickerPreview preview) {
final Color color = preview.getColor();
return "rgb(" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() + ")";
} | [
"public",
"static",
"String",
"getColorPickedString",
"(",
"final",
"SpColorPickerPreview",
"preview",
")",
"{",
"final",
"Color",
"color",
"=",
"preview",
".",
"getColor",
"(",
")",
";",
"return",
"\"rgb(\"",
"+",
"color",
".",
"getRed",
"(",
")",
"+",
"\",... | Get color picked value as string.
@param preview
the color picker preview
@return String of color picked value. | [
"Get",
"color",
"picked",
"value",
"as",
"string",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/colorpicker/ColorPickerHelper.java#L38-L42 |
52,253 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/HawkbitUIErrorHandler.java | HawkbitUIErrorHandler.buildNotification | protected HawkbitErrorNotificationMessage buildNotification(final Throwable ex) {
LOG.error("Error in UI: ", ex);
final String errorMessage = extractMessageFrom(ex);
final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.class);
return new HawkbitErrorNotific... | java | protected HawkbitErrorNotificationMessage buildNotification(final Throwable ex) {
LOG.error("Error in UI: ", ex);
final String errorMessage = extractMessageFrom(ex);
final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.class);
return new HawkbitErrorNotific... | [
"protected",
"HawkbitErrorNotificationMessage",
"buildNotification",
"(",
"final",
"Throwable",
"ex",
")",
"{",
"LOG",
".",
"error",
"(",
"\"Error in UI: \"",
",",
"ex",
")",
";",
"final",
"String",
"errorMessage",
"=",
"extractMessageFrom",
"(",
"ex",
")",
";",
... | Method to build a notification based on an exception.
@param ex
the throwable
@return a hawkbit error notification message | [
"Method",
"to",
"build",
"a",
"notification",
"based",
"on",
"an",
"exception",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/HawkbitUIErrorHandler.java#L98-L106 |
52,254 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaSoftwareModuleManagement.java | JpaSoftwareModuleManagement.assertMetaDataQuota | private void assertMetaDataQuota(final Long moduleId, final int requested) {
final int maxMetaData = quotaManagement.getMaxMetaDataEntriesPerSoftwareModule();
QuotaHelper.assertAssignmentQuota(moduleId, requested, maxMetaData, SoftwareModuleMetadata.class,
SoftwareModule.class, softwareM... | java | private void assertMetaDataQuota(final Long moduleId, final int requested) {
final int maxMetaData = quotaManagement.getMaxMetaDataEntriesPerSoftwareModule();
QuotaHelper.assertAssignmentQuota(moduleId, requested, maxMetaData, SoftwareModuleMetadata.class,
SoftwareModule.class, softwareM... | [
"private",
"void",
"assertMetaDataQuota",
"(",
"final",
"Long",
"moduleId",
",",
"final",
"int",
"requested",
")",
"{",
"final",
"int",
"maxMetaData",
"=",
"quotaManagement",
".",
"getMaxMetaDataEntriesPerSoftwareModule",
"(",
")",
";",
"QuotaHelper",
".",
"assertAs... | Asserts the meta data quota for the software module with the given ID.
@param moduleId
The software module ID.
@param requested
Number of meta data entries to be created. | [
"Asserts",
"the",
"meta",
"data",
"quota",
"for",
"the",
"software",
"module",
"with",
"the",
"given",
"ID",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaSoftwareModuleManagement.java#L548-L552 |
52,255 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/specifications/ActionSpecifications.java | ActionSpecifications.hasTargetAssignedArtifact | public static Specification<JpaAction> hasTargetAssignedArtifact(final String controllerId, final String sha1Hash) {
return (actionRoot, query, criteriaBuilder) -> {
final Join<JpaAction, JpaDistributionSet> dsJoin = actionRoot.join(JpaAction_.distributionSet);
final SetJoin<JpaDistribut... | java | public static Specification<JpaAction> hasTargetAssignedArtifact(final String controllerId, final String sha1Hash) {
return (actionRoot, query, criteriaBuilder) -> {
final Join<JpaAction, JpaDistributionSet> dsJoin = actionRoot.join(JpaAction_.distributionSet);
final SetJoin<JpaDistribut... | [
"public",
"static",
"Specification",
"<",
"JpaAction",
">",
"hasTargetAssignedArtifact",
"(",
"final",
"String",
"controllerId",
",",
"final",
"String",
"sha1Hash",
")",
"{",
"return",
"(",
"actionRoot",
",",
"query",
",",
"criteriaBuilder",
")",
"->",
"{",
"fin... | Specification which joins all necessary tables to retrieve the dependency
between a target and a local file assignment through the assigned action
of the target. All actions are included, not only active actions.
@param controllerId
the target to verify if the given artifact is currently
assigned or had been assigned
... | [
"Specification",
"which",
"joins",
"all",
"necessary",
"tables",
"to",
"retrieve",
"the",
"dependency",
"between",
"a",
"target",
"and",
"a",
"local",
"file",
"assignment",
"through",
"the",
"assigned",
"action",
"of",
"the",
"target",
".",
"All",
"actions",
"... | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/specifications/ActionSpecifications.java#L51-L61 |
52,256 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/AbstractMetadataPopupLayout.java | AbstractMetadataPopupLayout.getWindow | public CommonDialogWindow getWindow(final E entity, final String metaDatakey) {
selectedEntity = entity;
metadataWindow = new WindowBuilder(SPUIDefinitions.CREATE_UPDATE_WINDOW).caption(getMetadataCaption())
.content(this).cancelButtonClickListener(event -> onCancel())
.... | java | public CommonDialogWindow getWindow(final E entity, final String metaDatakey) {
selectedEntity = entity;
metadataWindow = new WindowBuilder(SPUIDefinitions.CREATE_UPDATE_WINDOW).caption(getMetadataCaption())
.content(this).cancelButtonClickListener(event -> onCancel())
.... | [
"public",
"CommonDialogWindow",
"getWindow",
"(",
"final",
"E",
"entity",
",",
"final",
"String",
"metaDatakey",
")",
"{",
"selectedEntity",
"=",
"entity",
";",
"metadataWindow",
"=",
"new",
"WindowBuilder",
"(",
"SPUIDefinitions",
".",
"CREATE_UPDATE_WINDOW",
")",
... | Returns metadata popup.
@param entity
entity for which metadata data is displayed
@param metaDatakey
metadata key to be selected
@return {@link CommonDialogWindow} | [
"Returns",
"metadata",
"popup",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/AbstractMetadataPopupLayout.java#L131-L145 |
52,257 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/upload/UploadProgressButtonLayout.java | UploadProgressButtonLayout.restoreState | public void restoreState() {
if (artifactUploadState.areAllUploadsFinished()) {
artifactUploadState.clearUploadTempData();
hideUploadProgressButton();
upload.setEnabled(true);
} else if (artifactUploadState.isAtLeastOneUploadInProgress()) {
showUploadProgr... | java | public void restoreState() {
if (artifactUploadState.areAllUploadsFinished()) {
artifactUploadState.clearUploadTempData();
hideUploadProgressButton();
upload.setEnabled(true);
} else if (artifactUploadState.isAtLeastOneUploadInProgress()) {
showUploadProgr... | [
"public",
"void",
"restoreState",
"(",
")",
"{",
"if",
"(",
"artifactUploadState",
".",
"areAllUploadsFinished",
"(",
")",
")",
"{",
"artifactUploadState",
".",
"clearUploadTempData",
"(",
")",
";",
"hideUploadProgressButton",
"(",
")",
";",
"upload",
".",
"setE... | Is called when view is shown to the user | [
"Is",
"called",
"when",
"view",
"is",
"shown",
"to",
"the",
"user"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/upload/UploadProgressButtonLayout.java#L165-L173 |
52,258 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/ConfirmationDialog.java | ConfirmationDialog.buttonClick | @Override
public void buttonClick(final ClickEvent event) {
if (window.getParent() != null) {
isImplicitClose = true;
UI.getCurrent().removeWindow(window);
}
callback.response(event.getSource().equals(okButton));
} | java | @Override
public void buttonClick(final ClickEvent event) {
if (window.getParent() != null) {
isImplicitClose = true;
UI.getCurrent().removeWindow(window);
}
callback.response(event.getSource().equals(okButton));
} | [
"@",
"Override",
"public",
"void",
"buttonClick",
"(",
"final",
"ClickEvent",
"event",
")",
"{",
"if",
"(",
"window",
".",
"getParent",
"(",
")",
"!=",
"null",
")",
"{",
"isImplicitClose",
"=",
"true",
";",
"UI",
".",
"getCurrent",
"(",
")",
".",
"remo... | TenantAwareEvent handler for button clicks.
@param event
the click event. | [
"TenantAwareEvent",
"handler",
"for",
"button",
"clicks",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/ConfirmationDialog.java#L295-L302 |
52,259 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java | AbstractTable.getTableValue | @SuppressWarnings("unchecked")
public static <T> Set<T> getTableValue(final Table table) {
final Object value = table.getValue();
Set<T> idsReturn;
if (value == null) {
idsReturn = Collections.emptySet();
} else if (value instanceof Collection) {
final Collect... | java | @SuppressWarnings("unchecked")
public static <T> Set<T> getTableValue(final Table table) {
final Object value = table.getValue();
Set<T> idsReturn;
if (value == null) {
idsReturn = Collections.emptySet();
} else if (value instanceof Collection) {
final Collect... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"static",
"<",
"T",
">",
"Set",
"<",
"T",
">",
"getTableValue",
"(",
"final",
"Table",
"table",
")",
"{",
"final",
"Object",
"value",
"=",
"table",
".",
"getValue",
"(",
")",
";",
"Set",
"<"... | Gets the selected item id or in multiselect mode the selected ids.
@param table
the table to retrieve the selected ID(s)
@return the ID(s) which are selected in the table | [
"Gets",
"the",
"selected",
"item",
"id",
"or",
"in",
"multiselect",
"mode",
"the",
"selected",
"ids",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java#L141-L155 |
52,260 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java | AbstractTable.getSelectedEntitiesByTransferable | public Set<Long> getSelectedEntitiesByTransferable(final TableTransferable transferable) {
final Set<Long> selectedEntities = getTableValue(this);
final Set<Long> ids = new HashSet<>();
final Long transferableData = (Long) transferable.getData(SPUIDefinitions.ITEMID);
if (transferableDat... | java | public Set<Long> getSelectedEntitiesByTransferable(final TableTransferable transferable) {
final Set<Long> selectedEntities = getTableValue(this);
final Set<Long> ids = new HashSet<>();
final Long transferableData = (Long) transferable.getData(SPUIDefinitions.ITEMID);
if (transferableDat... | [
"public",
"Set",
"<",
"Long",
">",
"getSelectedEntitiesByTransferable",
"(",
"final",
"TableTransferable",
"transferable",
")",
"{",
"final",
"Set",
"<",
"Long",
">",
"selectedEntities",
"=",
"getTableValue",
"(",
"this",
")",
";",
"final",
"Set",
"<",
"Long",
... | Return the entity which should be deleted by a transferable
@param transferable
the table transferable
@return set of entities id which will deleted | [
"Return",
"the",
"entity",
"which",
"should",
"be",
"deleted",
"by",
"a",
"transferable"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java#L291-L305 |
52,261 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java | AbstractTable.selectEntity | public void selectEntity(final Long entityId) {
E entity = null;
if (entityId != null) {
entity = findEntityByTableValue(entityId).orElse(null);
}
setLastSelectedEntityId(entityId);
publishSelectedEntityEvent(entity);
} | java | public void selectEntity(final Long entityId) {
E entity = null;
if (entityId != null) {
entity = findEntityByTableValue(entityId).orElse(null);
}
setLastSelectedEntityId(entityId);
publishSelectedEntityEvent(entity);
} | [
"public",
"void",
"selectEntity",
"(",
"final",
"Long",
"entityId",
")",
"{",
"E",
"entity",
"=",
"null",
";",
"if",
"(",
"entityId",
"!=",
"null",
")",
"{",
"entity",
"=",
"findEntityByTableValue",
"(",
"entityId",
")",
".",
"orElse",
"(",
"null",
")",
... | Finds the entity object of the given entity ID and performs the
publishing of the BaseEntityEventType.SELECTED_ENTITY event
@param entityId
ID of the current entity | [
"Finds",
"the",
"entity",
"object",
"of",
"the",
"given",
"entity",
"ID",
"and",
"performs",
"the",
"publishing",
"of",
"the",
"BaseEntityEventType",
".",
"SELECTED_ENTITY",
"event"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/common/table/AbstractTable.java#L615-L623 |
52,262 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java | GroupsLegendLayout.reset | public void reset() {
totalTargetsLabel.setVisible(false);
populateGroupsLegendByTargetCounts(Collections.emptyList());
if (groupsLegend.getComponentCount() > MAX_GROUPS_TO_BE_DISPLAYED) {
groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(false);
}
} | java | public void reset() {
totalTargetsLabel.setVisible(false);
populateGroupsLegendByTargetCounts(Collections.emptyList());
if (groupsLegend.getComponentCount() > MAX_GROUPS_TO_BE_DISPLAYED) {
groupsLegend.getComponent(MAX_GROUPS_TO_BE_DISPLAYED).setVisible(false);
}
} | [
"public",
"void",
"reset",
"(",
")",
"{",
"totalTargetsLabel",
".",
"setVisible",
"(",
"false",
")",
";",
"populateGroupsLegendByTargetCounts",
"(",
"Collections",
".",
"emptyList",
"(",
")",
")",
";",
"if",
"(",
"groupsLegend",
".",
"getComponentCount",
"(",
... | Resets the display of the legend and total targets. | [
"Resets",
"the",
"display",
"of",
"the",
"legend",
"and",
"total",
"targets",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java#L78-L84 |
52,263 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java | GroupsLegendLayout.populateTotalTargets | public void populateTotalTargets(final Long totalTargets) {
if (totalTargets == null) {
totalTargetsLabel.setVisible(false);
} else {
totalTargetsLabel.setVisible(true);
totalTargetsLabel.setValue(getTotalTargetMessage(totalTargets));
}
} | java | public void populateTotalTargets(final Long totalTargets) {
if (totalTargets == null) {
totalTargetsLabel.setVisible(false);
} else {
totalTargetsLabel.setVisible(true);
totalTargetsLabel.setValue(getTotalTargetMessage(totalTargets));
}
} | [
"public",
"void",
"populateTotalTargets",
"(",
"final",
"Long",
"totalTargets",
")",
"{",
"if",
"(",
"totalTargets",
"==",
"null",
")",
"{",
"totalTargetsLabel",
".",
"setVisible",
"(",
"false",
")",
";",
"}",
"else",
"{",
"totalTargetsLabel",
".",
"setVisible... | Displays the total targets or hides the label when null is supplied.
@param totalTargets
null to hide the label or a count to be displayed as total
targets message | [
"Displays",
"the",
"total",
"targets",
"or",
"hides",
"the",
"label",
"when",
"null",
"is",
"supplied",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java#L141-L148 |
52,264 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java | GroupsLegendLayout.populateGroupsLegendByTargetCounts | public void populateGroupsLegendByTargetCounts(final List<Long> listOfTargetCountPerGroup) {
loadingLabel.setVisible(false);
for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(listOfTargetCountPerGroup.size()); i++) {
final Component component = groupsLegend.getComponent(i);
... | java | public void populateGroupsLegendByTargetCounts(final List<Long> listOfTargetCountPerGroup) {
loadingLabel.setVisible(false);
for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(listOfTargetCountPerGroup.size()); i++) {
final Component component = groupsLegend.getComponent(i);
... | [
"public",
"void",
"populateGroupsLegendByTargetCounts",
"(",
"final",
"List",
"<",
"Long",
">",
"listOfTargetCountPerGroup",
")",
"{",
"loadingLabel",
".",
"setVisible",
"(",
"false",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"getGroupsWithout... | Populates the legend based on a list of anonymous groups. They can't have
unassigned targets.
@param listOfTargetCountPerGroup
list of target counts | [
"Populates",
"the",
"legend",
"based",
"on",
"a",
"list",
"of",
"anonymous",
"groups",
".",
"They",
"can",
"t",
"have",
"unassigned",
"targets",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java#L157-L178 |
52,265 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java | GroupsLegendLayout.populateGroupsLegendByValidation | public void populateGroupsLegendByValidation(final RolloutGroupsValidation validation,
final List<RolloutGroupCreate> groups) {
loadingLabel.setVisible(false);
if (validation == null) {
return;
}
final List<Long> targetsPerGroup = validation.getTargetsPerGroup();
... | java | public void populateGroupsLegendByValidation(final RolloutGroupsValidation validation,
final List<RolloutGroupCreate> groups) {
loadingLabel.setVisible(false);
if (validation == null) {
return;
}
final List<Long> targetsPerGroup = validation.getTargetsPerGroup();
... | [
"public",
"void",
"populateGroupsLegendByValidation",
"(",
"final",
"RolloutGroupsValidation",
"validation",
",",
"final",
"List",
"<",
"RolloutGroupCreate",
">",
"groups",
")",
"{",
"loadingLabel",
".",
"setVisible",
"(",
"false",
")",
";",
"if",
"(",
"validation",... | Populates the legend based on a groups validation and a list of groups
that is used for resolving their names. Positions of the groups in the
groups list and the validation need to be in correct order. Can have
unassigned targets that are displayed on top of the groups list which
results in one group less to be display... | [
"Populates",
"the",
"legend",
"based",
"on",
"a",
"groups",
"validation",
"and",
"a",
"list",
"of",
"groups",
"that",
"is",
"used",
"for",
"resolving",
"their",
"names",
".",
"Positions",
"of",
"the",
"groups",
"in",
"the",
"groups",
"list",
"and",
"the",
... | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java#L216-L250 |
52,266 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java | GroupsLegendLayout.populateGroupsLegendByGroups | public void populateGroupsLegendByGroups(final List<RolloutGroup> groups) {
loadingLabel.setVisible(false);
for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(groups.size()); i++) {
final Component component = groupsLegend.getComponent(i);
final Label label = (Label) compone... | java | public void populateGroupsLegendByGroups(final List<RolloutGroup> groups) {
loadingLabel.setVisible(false);
for (int i = 0; i < getGroupsWithoutToBeContinuedLabel(groups.size()); i++) {
final Component component = groupsLegend.getComponent(i);
final Label label = (Label) compone... | [
"public",
"void",
"populateGroupsLegendByGroups",
"(",
"final",
"List",
"<",
"RolloutGroup",
">",
"groups",
")",
"{",
"loadingLabel",
".",
"setVisible",
"(",
"false",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"getGroupsWithoutToBeContinuedLabe... | Populates the legend based on a list of groups.
@param groups
List of groups with their name | [
"Populates",
"the",
"legend",
"based",
"on",
"a",
"list",
"of",
"groups",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/GroupsLegendLayout.java#L258-L277 |
52,267 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java | FilterByStatusLayout.getTargetFilterStatuses | private void getTargetFilterStatuses() {
unknown = SPUIComponentProvider.getButton(UIComponentIdProvider.UNKNOWN_STATUS_ICON,
TargetUpdateStatus.UNKNOWN.toString(),
i18n.getMessage(UIMessageIdProvider.TOOLTIP_TARGET_STATUS_UNKNOWN),
SPUIDefinitions.SP_BUTTON_STATU... | java | private void getTargetFilterStatuses() {
unknown = SPUIComponentProvider.getButton(UIComponentIdProvider.UNKNOWN_STATUS_ICON,
TargetUpdateStatus.UNKNOWN.toString(),
i18n.getMessage(UIMessageIdProvider.TOOLTIP_TARGET_STATUS_UNKNOWN),
SPUIDefinitions.SP_BUTTON_STATU... | [
"private",
"void",
"getTargetFilterStatuses",
"(",
")",
"{",
"unknown",
"=",
"SPUIComponentProvider",
".",
"getButton",
"(",
"UIComponentIdProvider",
".",
"UNKNOWN_STATUS_ICON",
",",
"TargetUpdateStatus",
".",
"UNKNOWN",
".",
"toString",
"(",
")",
",",
"i18n",
".",
... | Get - status of FILTER. | [
"Get",
"-",
"status",
"of",
"FILTER",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java#L154-L189 |
52,268 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java | FilterByStatusLayout.applyStatusBtnStyle | private void applyStatusBtnStyle() {
unknown.addStyleName("unknownBtn");
inSync.addStyleName("inSynchBtn");
pending.addStyleName("pendingBtn");
error.addStyleName("errorBtn");
registered.addStyleName("registeredBtn");
overdue.addStyleName("overdueBtn");
} | java | private void applyStatusBtnStyle() {
unknown.addStyleName("unknownBtn");
inSync.addStyleName("inSynchBtn");
pending.addStyleName("pendingBtn");
error.addStyleName("errorBtn");
registered.addStyleName("registeredBtn");
overdue.addStyleName("overdueBtn");
} | [
"private",
"void",
"applyStatusBtnStyle",
"(",
")",
"{",
"unknown",
".",
"addStyleName",
"(",
"\"unknownBtn\"",
")",
";",
"inSync",
".",
"addStyleName",
"(",
"\"inSynchBtn\"",
")",
";",
"pending",
".",
"addStyleName",
"(",
"\"pendingBtn\"",
")",
";",
"error",
... | Apply - status style. | [
"Apply",
"-",
"status",
"style",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java#L194-L201 |
52,269 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java | FilterByStatusLayout.processOverdueFilterStatus | private void processOverdueFilterStatus() {
overdueBtnClicked = !overdueBtnClicked;
managementUIState.getTargetTableFilters().setOverdueFilterEnabled(overdueBtnClicked);
if (overdueBtnClicked) {
buttonClicked.addStyleName(BTN_CLICKED);
eventBus.publish(this, TargetFilter... | java | private void processOverdueFilterStatus() {
overdueBtnClicked = !overdueBtnClicked;
managementUIState.getTargetTableFilters().setOverdueFilterEnabled(overdueBtnClicked);
if (overdueBtnClicked) {
buttonClicked.addStyleName(BTN_CLICKED);
eventBus.publish(this, TargetFilter... | [
"private",
"void",
"processOverdueFilterStatus",
"(",
")",
"{",
"overdueBtnClicked",
"=",
"!",
"overdueBtnClicked",
";",
"managementUIState",
".",
"getTargetTableFilters",
"(",
")",
".",
"setOverdueFilterEnabled",
"(",
"overdueBtnClicked",
")",
";",
"if",
"(",
"overdu... | Process - OVERDUE. | [
"Process",
"-",
"OVERDUE",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java#L264-L276 |
52,270 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java | FilterByStatusLayout.processCommonFilterStatus | private void processCommonFilterStatus(final TargetUpdateStatus status, final boolean buttonPressed) {
if (buttonPressed) {
buttonClicked.addStyleName(BTN_CLICKED);
managementUIState.getTargetTableFilters().getClickedStatusTargetTags().add(status);
eventBus.publish(this, Targ... | java | private void processCommonFilterStatus(final TargetUpdateStatus status, final boolean buttonPressed) {
if (buttonPressed) {
buttonClicked.addStyleName(BTN_CLICKED);
managementUIState.getTargetTableFilters().getClickedStatusTargetTags().add(status);
eventBus.publish(this, Targ... | [
"private",
"void",
"processCommonFilterStatus",
"(",
"final",
"TargetUpdateStatus",
"status",
",",
"final",
"boolean",
"buttonPressed",
")",
"{",
"if",
"(",
"buttonPressed",
")",
"{",
"buttonClicked",
".",
"addStyleName",
"(",
"BTN_CLICKED",
")",
";",
"managementUIS... | Process - COMMON PROCESS.
@param status
as enum
@param buttonReset
as t|F | [
"Process",
"-",
"COMMON",
"PROCESS",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/targettag/filter/FilterByStatusLayout.java#L286-L298 |
52,271 | eclipse/hawkbit | hawkbit-rest/hawkbit-ddi-resource/src/main/java/org/eclipse/hawkbit/ddi/rest/resource/DdiRootController.java | DdiRootController.checkAndCancelExpiredAction | private void checkAndCancelExpiredAction(final Action action) {
if (action != null && action.hasMaintenanceSchedule() && action.isMaintenanceScheduleLapsed()) {
try {
controllerManagement.cancelAction(action.getId());
} catch (final CancelActionNotAllowedException e) {
... | java | private void checkAndCancelExpiredAction(final Action action) {
if (action != null && action.hasMaintenanceSchedule() && action.isMaintenanceScheduleLapsed()) {
try {
controllerManagement.cancelAction(action.getId());
} catch (final CancelActionNotAllowedException e) {
... | [
"private",
"void",
"checkAndCancelExpiredAction",
"(",
"final",
"Action",
"action",
")",
"{",
"if",
"(",
"action",
"!=",
"null",
"&&",
"action",
".",
"hasMaintenanceSchedule",
"(",
")",
"&&",
"action",
".",
"isMaintenanceScheduleLapsed",
"(",
")",
")",
"{",
"t... | If the action has a maintenance schedule defined but is no longer valid,
cancel the action.
@param action
is the {@link Action} to check. | [
"If",
"the",
"action",
"has",
"a",
"maintenance",
"schedule",
"defined",
"but",
"is",
"no",
"longer",
"valid",
"cancel",
"the",
"action",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-rest/hawkbit-ddi-resource/src/main/java/org/eclipse/hawkbit/ddi/rest/resource/DdiRootController.java#L575-L583 |
52,272 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/DefineGroupsLayout.java | DefineGroupsLayout.populateByRollout | public void populateByRollout(final Rollout rollout) {
if (rollout == null) {
return;
}
removeAllRows();
final List<RolloutGroup> groups = rolloutGroupManagement
.findByRollout(PageRequest.of(0, quotaManagement.getMaxRolloutGroupsPerRollout()), rollout.getId... | java | public void populateByRollout(final Rollout rollout) {
if (rollout == null) {
return;
}
removeAllRows();
final List<RolloutGroup> groups = rolloutGroupManagement
.findByRollout(PageRequest.of(0, quotaManagement.getMaxRolloutGroupsPerRollout()), rollout.getId... | [
"public",
"void",
"populateByRollout",
"(",
"final",
"Rollout",
"rollout",
")",
"{",
"if",
"(",
"rollout",
"==",
"null",
")",
"{",
"return",
";",
"}",
"removeAllRows",
"(",
")",
";",
"final",
"List",
"<",
"RolloutGroup",
">",
"groups",
"=",
"rolloutGroupMa... | Populate groups by rollout
@param rollout
the rollout | [
"Populate",
"groups",
"by",
"rollout"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/DefineGroupsLayout.java#L235-L252 |
52,273 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/DefineGroupsLayout.java | DefineGroupsLayout.setGroupsValidation | private void setGroupsValidation(final RolloutGroupsValidation validation) {
final int runningValidation = runningValidationsCounter.getAndSet(0);
if (runningValidation > 1) {
validateRemainingTargets();
return;
}
groupsValidation = validation;
final int... | java | private void setGroupsValidation(final RolloutGroupsValidation validation) {
final int runningValidation = runningValidationsCounter.getAndSet(0);
if (runningValidation > 1) {
validateRemainingTargets();
return;
}
groupsValidation = validation;
final int... | [
"private",
"void",
"setGroupsValidation",
"(",
"final",
"RolloutGroupsValidation",
"validation",
")",
"{",
"final",
"int",
"runningValidation",
"=",
"runningValidationsCounter",
".",
"getAndSet",
"(",
"0",
")",
";",
"if",
"(",
"runningValidation",
">",
"1",
")",
"... | YOU SHOULD NOT CALL THIS METHOD MANUALLY. It's only for the callback.
Only 1 runningValidation should be executed. If this runningValidation is
done, then this method is called. Maybe then a new runningValidation is
executed. | [
"YOU",
"SHOULD",
"NOT",
"CALL",
"THIS",
"METHOD",
"MANUALLY",
".",
"It",
"s",
"only",
"for",
"the",
"callback",
".",
"Only",
"1",
"runningValidation",
"should",
"be",
"executed",
".",
"If",
"this",
"runningValidation",
"is",
"done",
"then",
"this",
"method",... | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/rollout/rollout/DefineGroupsLayout.java#L314-L350 |
52,274 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaControllerManagement.java | JpaControllerManagement.getMinPollingTime | @Override
public String getMinPollingTime() {
return systemSecurityContext.runAsSystem(() -> tenantConfigurationManagement
.getConfigurationValue(TenantConfigurationKey.MIN_POLLING_TIME_INTERVAL, String.class).getValue());
} | java | @Override
public String getMinPollingTime() {
return systemSecurityContext.runAsSystem(() -> tenantConfigurationManagement
.getConfigurationValue(TenantConfigurationKey.MIN_POLLING_TIME_INTERVAL, String.class).getValue());
} | [
"@",
"Override",
"public",
"String",
"getMinPollingTime",
"(",
")",
"{",
"return",
"systemSecurityContext",
".",
"runAsSystem",
"(",
"(",
")",
"->",
"tenantConfigurationManagement",
".",
"getConfigurationValue",
"(",
"TenantConfigurationKey",
".",
"MIN_POLLING_TIME_INTERV... | Returns the configured minimum polling interval.
@return current {@link TenantConfigurationKey#MIN_POLLING_TIME_INTERVAL}. | [
"Returns",
"the",
"configured",
"minimum",
"polling",
"interval",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaControllerManagement.java#L190-L194 |
52,275 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/CountMessageLabel.java | CountMessageLabel.onEvent | @EventBusListenerMethod(scope = EventScope.UI)
public void onEvent(final PinUnpinEvent event) {
final Optional<Long> pinnedDist = managementUIState.getTargetTableFilters().getPinnedDistId();
if (event == PinUnpinEvent.PIN_DISTRIBUTION && pinnedDist.isPresent()) {
displayCountLabel(pinne... | java | @EventBusListenerMethod(scope = EventScope.UI)
public void onEvent(final PinUnpinEvent event) {
final Optional<Long> pinnedDist = managementUIState.getTargetTableFilters().getPinnedDistId();
if (event == PinUnpinEvent.PIN_DISTRIBUTION && pinnedDist.isPresent()) {
displayCountLabel(pinne... | [
"@",
"EventBusListenerMethod",
"(",
"scope",
"=",
"EventScope",
".",
"UI",
")",
"public",
"void",
"onEvent",
"(",
"final",
"PinUnpinEvent",
"event",
")",
"{",
"final",
"Optional",
"<",
"Long",
">",
"pinnedDist",
"=",
"managementUIState",
".",
"getTargetTableFilt... | TenantAwareEvent Listener for Pinning Distribution.
@param event | [
"TenantAwareEvent",
"Listener",
"for",
"Pinning",
"Distribution",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/management/CountMessageLabel.java#L103-L113 |
52,276 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/utils/VaadinMessageSource.java | VaadinMessageSource.getMessage | public String getMessage(final Locale local, final String code, final Object... args) {
try {
return source.getMessage(code, args, local);
} catch (final NoSuchMessageException ex) {
LOG.error("Failed to retrieve message!", ex);
return code;
}
} | java | public String getMessage(final Locale local, final String code, final Object... args) {
try {
return source.getMessage(code, args, local);
} catch (final NoSuchMessageException ex) {
LOG.error("Failed to retrieve message!", ex);
return code;
}
} | [
"public",
"String",
"getMessage",
"(",
"final",
"Locale",
"local",
",",
"final",
"String",
"code",
",",
"final",
"Object",
"...",
"args",
")",
"{",
"try",
"{",
"return",
"source",
".",
"getMessage",
"(",
"code",
",",
"args",
",",
"local",
")",
";",
"}"... | Tries to resolve the message based on the provided Local. Returns message
code if fitting message could not be found.
@param local
to determinate the Language.
@param code
the code to lookup up.
@param args
Array of arguments that will be filled in for params within
the message.
@return the resolved message, or the m... | [
"Tries",
"to",
"resolve",
"the",
"message",
"based",
"on",
"the",
"provided",
"Local",
".",
"Returns",
"message",
"code",
"if",
"fitting",
"message",
"could",
"not",
"be",
"found",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/utils/VaadinMessageSource.java#L75-L82 |
52,277 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.verifyRolloutGroupConditions | public static void verifyRolloutGroupConditions(final RolloutGroupConditions conditions) {
if (conditions.getSuccessCondition() == null) {
throw new ValidationException("Rollout group is missing success condition");
}
if (conditions.getSuccessAction() == null) {
throw new... | java | public static void verifyRolloutGroupConditions(final RolloutGroupConditions conditions) {
if (conditions.getSuccessCondition() == null) {
throw new ValidationException("Rollout group is missing success condition");
}
if (conditions.getSuccessAction() == null) {
throw new... | [
"public",
"static",
"void",
"verifyRolloutGroupConditions",
"(",
"final",
"RolloutGroupConditions",
"conditions",
")",
"{",
"if",
"(",
"conditions",
".",
"getSuccessCondition",
"(",
")",
"==",
"null",
")",
"{",
"throw",
"new",
"ValidationException",
"(",
"\"Rollout ... | Verifies that the required success condition and action are actually set.
@param conditions
input conditions and actions | [
"Verifies",
"that",
"the",
"required",
"success",
"condition",
"and",
"action",
"are",
"actually",
"set",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L38-L45 |
52,278 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.verifyRolloutGroupHasConditions | public static RolloutGroup verifyRolloutGroupHasConditions(final RolloutGroup group) {
if (group.getTargetPercentage() < 1F || group.getTargetPercentage() > 100F) {
throw new ValidationException("Target percentage has to be between 1 and 100");
}
if (group.getSuccessCondition() == n... | java | public static RolloutGroup verifyRolloutGroupHasConditions(final RolloutGroup group) {
if (group.getTargetPercentage() < 1F || group.getTargetPercentage() > 100F) {
throw new ValidationException("Target percentage has to be between 1 and 100");
}
if (group.getSuccessCondition() == n... | [
"public",
"static",
"RolloutGroup",
"verifyRolloutGroupHasConditions",
"(",
"final",
"RolloutGroup",
"group",
")",
"{",
"if",
"(",
"group",
".",
"getTargetPercentage",
"(",
")",
"<",
"1F",
"||",
"group",
".",
"getTargetPercentage",
"(",
")",
">",
"100F",
")",
... | Verifies that the group has the required success condition and action and
a falid target percentage.
@param group
the input group
@return the verified group | [
"Verifies",
"that",
"the",
"group",
"has",
"the",
"required",
"success",
"condition",
"and",
"action",
"and",
"a",
"falid",
"target",
"percentage",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L55-L67 |
52,279 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.verifyRolloutGroupParameter | public static void verifyRolloutGroupParameter(final int amountGroup, final QuotaManagement quotaManagement) {
if (amountGroup <= 0) {
throw new ValidationException("The amount of groups cannot be lower than zero");
} else if (amountGroup > quotaManagement.getMaxRolloutGroupsPerRollout()) {
... | java | public static void verifyRolloutGroupParameter(final int amountGroup, final QuotaManagement quotaManagement) {
if (amountGroup <= 0) {
throw new ValidationException("The amount of groups cannot be lower than zero");
} else if (amountGroup > quotaManagement.getMaxRolloutGroupsPerRollout()) {
... | [
"public",
"static",
"void",
"verifyRolloutGroupParameter",
"(",
"final",
"int",
"amountGroup",
",",
"final",
"QuotaManagement",
"quotaManagement",
")",
"{",
"if",
"(",
"amountGroup",
"<=",
"0",
")",
"{",
"throw",
"new",
"ValidationException",
"(",
"\"The amount of g... | Verify if the supplied amount of groups is in range
@param amountGroup
amount of groups
@param quotaManagement
to retrieve maximum number of groups allowed | [
"Verify",
"if",
"the",
"supplied",
"amount",
"of",
"groups",
"is",
"in",
"range"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L77-L85 |
52,280 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.verifyRolloutInStatus | public static void verifyRolloutInStatus(final Rollout rollout, final Rollout.RolloutStatus status) {
if (!rollout.getStatus().equals(status)) {
throw new RolloutIllegalStateException("Rollout is not in status " + status.toString());
}
} | java | public static void verifyRolloutInStatus(final Rollout rollout, final Rollout.RolloutStatus status) {
if (!rollout.getStatus().equals(status)) {
throw new RolloutIllegalStateException("Rollout is not in status " + status.toString());
}
} | [
"public",
"static",
"void",
"verifyRolloutInStatus",
"(",
"final",
"Rollout",
"rollout",
",",
"final",
"Rollout",
".",
"RolloutStatus",
"status",
")",
"{",
"if",
"(",
"!",
"rollout",
".",
"getStatus",
"(",
")",
".",
"equals",
"(",
"status",
")",
")",
"{",
... | Verifies that the Rollout is in the required status.
@param rollout
the Rollout
@param status
the Status | [
"Verifies",
"that",
"the",
"Rollout",
"is",
"in",
"the",
"required",
"status",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L136-L140 |
52,281 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.getGroupsByStatusIncludingGroup | public static List<Long> getGroupsByStatusIncludingGroup(final List<RolloutGroup> groups,
final RolloutGroup.RolloutGroupStatus status, final RolloutGroup group) {
return groups.stream().filter(innerGroup -> innerGroup.getStatus().equals(status) || innerGroup.equals(group))
.map(Roll... | java | public static List<Long> getGroupsByStatusIncludingGroup(final List<RolloutGroup> groups,
final RolloutGroup.RolloutGroupStatus status, final RolloutGroup group) {
return groups.stream().filter(innerGroup -> innerGroup.getStatus().equals(status) || innerGroup.equals(group))
.map(Roll... | [
"public",
"static",
"List",
"<",
"Long",
">",
"getGroupsByStatusIncludingGroup",
"(",
"final",
"List",
"<",
"RolloutGroup",
">",
"groups",
",",
"final",
"RolloutGroup",
".",
"RolloutGroupStatus",
"status",
",",
"final",
"RolloutGroup",
"group",
")",
"{",
"return",... | Filters the groups of a Rollout to match a specific status and adds a
group to the result.
@param rollout
the rollout
@param status
the required status for the groups
@param group
the group to add
@return list of groups | [
"Filters",
"the",
"groups",
"of",
"a",
"Rollout",
"to",
"match",
"a",
"specific",
"status",
"and",
"adds",
"a",
"group",
"to",
"the",
"result",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L154-L158 |
52,282 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.getAllGroupsTargetFilter | public static String getAllGroupsTargetFilter(final List<RolloutGroup> groups) {
if (groups.stream().anyMatch(group -> StringUtils.isEmpty(group.getTargetFilterQuery()))) {
return "";
}
return "(" + groups.stream().map(RolloutGroup::getTargetFilterQuery).distinct().sorted()
... | java | public static String getAllGroupsTargetFilter(final List<RolloutGroup> groups) {
if (groups.stream().anyMatch(group -> StringUtils.isEmpty(group.getTargetFilterQuery()))) {
return "";
}
return "(" + groups.stream().map(RolloutGroup::getTargetFilterQuery).distinct().sorted()
... | [
"public",
"static",
"String",
"getAllGroupsTargetFilter",
"(",
"final",
"List",
"<",
"RolloutGroup",
">",
"groups",
")",
"{",
"if",
"(",
"groups",
".",
"stream",
"(",
")",
".",
"anyMatch",
"(",
"group",
"->",
"StringUtils",
".",
"isEmpty",
"(",
"group",
".... | Creates an RSQL expression that matches all targets in the provided
groups. Links all target filter queries with OR.
@param groups
the rollout groups
@return RSQL string without base filter of the Rollout. Can be an empty
string. | [
"Creates",
"an",
"RSQL",
"expression",
"that",
"matches",
"all",
"targets",
"in",
"the",
"provided",
"groups",
".",
"Links",
"all",
"target",
"filter",
"queries",
"with",
"OR",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L169-L176 |
52,283 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java | RolloutHelper.getOverlappingWithGroupsTargetFilter | public static String getOverlappingWithGroupsTargetFilter(final String baseFilter, final List<RolloutGroup> groups,
final RolloutGroup group) {
final String groupFilter = group.getTargetFilterQuery();
// when any previous group has the same filter as the target group the
// overlap i... | java | public static String getOverlappingWithGroupsTargetFilter(final String baseFilter, final List<RolloutGroup> groups,
final RolloutGroup group) {
final String groupFilter = group.getTargetFilterQuery();
// when any previous group has the same filter as the target group the
// overlap i... | [
"public",
"static",
"String",
"getOverlappingWithGroupsTargetFilter",
"(",
"final",
"String",
"baseFilter",
",",
"final",
"List",
"<",
"RolloutGroup",
">",
"groups",
",",
"final",
"RolloutGroup",
"group",
")",
"{",
"final",
"String",
"groupFilter",
"=",
"group",
"... | Creates an RSQL Filter that matches all targets that are in the provided
group and in the provided groups.
@param baseFilter
the base filter from the rollout
@param groups
the rollout groups
@param group
the target group
@return RSQL string without base filter of the Rollout. Can be an empty
string. | [
"Creates",
"an",
"RSQL",
"Filter",
"that",
"matches",
"all",
"targets",
"that",
"are",
"in",
"the",
"provided",
"group",
"and",
"in",
"the",
"provided",
"groups",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-core/src/main/java/org/eclipse/hawkbit/repository/RolloutHelper.java#L191-L212 |
52,284 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPTargetAttributesLayout.java | SPTargetAttributesLayout.decorate | private void decorate(final Map<String, String> controllerAttibs) {
final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.class);
final Label title = new Label(i18n.getMessage("label.target.controller.attrs"), ContentMode.HTML);
title.addStyleName(SPUIDefinitions.TEXT_... | java | private void decorate(final Map<String, String> controllerAttibs) {
final VaadinMessageSource i18n = SpringContextHelper.getBean(VaadinMessageSource.class);
final Label title = new Label(i18n.getMessage("label.target.controller.attrs"), ContentMode.HTML);
title.addStyleName(SPUIDefinitions.TEXT_... | [
"private",
"void",
"decorate",
"(",
"final",
"Map",
"<",
"String",
",",
"String",
">",
"controllerAttibs",
")",
"{",
"final",
"VaadinMessageSource",
"i18n",
"=",
"SpringContextHelper",
".",
"getBean",
"(",
"VaadinMessageSource",
".",
"class",
")",
";",
"final",
... | Custom Decorate.
@param controllerAttibs | [
"Custom",
"Decorate",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPTargetAttributesLayout.java#L47-L58 |
52,285 | eclipse/hawkbit | hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java | SystemSecurityContext.runAsSystemAsTenant | @SuppressWarnings({ "squid:S2221", "squid:S00112" })
public <T> T runAsSystemAsTenant(final Callable<T> callable, final String tenant) {
final SecurityContext oldContext = SecurityContextHolder.getContext();
try {
LOG.debug("entering system code execution");
return tenantAwar... | java | @SuppressWarnings({ "squid:S2221", "squid:S00112" })
public <T> T runAsSystemAsTenant(final Callable<T> callable, final String tenant) {
final SecurityContext oldContext = SecurityContextHolder.getContext();
try {
LOG.debug("entering system code execution");
return tenantAwar... | [
"@",
"SuppressWarnings",
"(",
"{",
"\"squid:S2221\"",
",",
"\"squid:S00112\"",
"}",
")",
"public",
"<",
"T",
">",
"T",
"runAsSystemAsTenant",
"(",
"final",
"Callable",
"<",
"T",
">",
"callable",
",",
"final",
"String",
"tenant",
")",
"{",
"final",
"SecurityC... | The callable API throws a Exception and not a specific one | [
"The",
"callable",
"API",
"throws",
"a",
"Exception",
"and",
"not",
"a",
"specific",
"one"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/security/SystemSecurityContext.java#L91-L112 |
52,286 | eclipse/hawkbit | hawkbit-http-security/src/main/java/org/eclipse/hawkbit/security/AbstractHttpControllerAuthenticationFilter.java | AbstractHttpControllerAuthenticationFilter.createTenantSecruityTokenVariables | protected DmfTenantSecurityToken createTenantSecruityTokenVariables(final HttpServletRequest request) {
final String requestURI = request.getRequestURI();
if (pathExtractor.match(request.getContextPath() + CONTROLLER_REQUEST_ANT_PATTERN, requestURI)) {
LOG.debug("retrieving principal from U... | java | protected DmfTenantSecurityToken createTenantSecruityTokenVariables(final HttpServletRequest request) {
final String requestURI = request.getRequestURI();
if (pathExtractor.match(request.getContextPath() + CONTROLLER_REQUEST_ANT_PATTERN, requestURI)) {
LOG.debug("retrieving principal from U... | [
"protected",
"DmfTenantSecurityToken",
"createTenantSecruityTokenVariables",
"(",
"final",
"HttpServletRequest",
"request",
")",
"{",
"final",
"String",
"requestURI",
"=",
"request",
".",
"getRequestURI",
"(",
")",
";",
"if",
"(",
"pathExtractor",
".",
"match",
"(",
... | Extracts tenant and controllerId from the request URI as path variables.
@param request
the Http request to extract the path variables.
@return the extracted {@link PathVariables} or {@code null} if the
request does not match the pattern and no variables could be
extracted | [
"Extracts",
"tenant",
"and",
"controllerId",
"from",
"the",
"request",
"URI",
"as",
"path",
"variables",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-http-security/src/main/java/org/eclipse/hawkbit/security/AbstractHttpControllerAuthenticationFilter.java#L134-L164 |
52,287 | eclipse/hawkbit | hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/BaseAmqpService.java | BaseAmqpService.convertMessage | @SuppressWarnings("unchecked")
public <T> T convertMessage(@NotNull final Message message, final Class<T> clazz) {
checkMessageBody(message);
message.getMessageProperties().getHeaders().put(AbstractJavaTypeMapper.DEFAULT_CLASSID_FIELD_NAME,
clazz.getName());
return (T) rabbit... | java | @SuppressWarnings("unchecked")
public <T> T convertMessage(@NotNull final Message message, final Class<T> clazz) {
checkMessageBody(message);
message.getMessageProperties().getHeaders().put(AbstractJavaTypeMapper.DEFAULT_CLASSID_FIELD_NAME,
clazz.getName());
return (T) rabbit... | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"public",
"<",
"T",
">",
"T",
"convertMessage",
"(",
"@",
"NotNull",
"final",
"Message",
"message",
",",
"final",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"checkMessageBody",
"(",
"message",
")",
";",
... | Is needed to convert a incoming message to is originally object type.
@param message
the message to convert.
@param clazz
the class of the originally object.
@return the converted object | [
"Is",
"needed",
"to",
"convert",
"a",
"incoming",
"message",
"to",
"is",
"originally",
"object",
"type",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-dmf/hawkbit-dmf-amqp/src/main/java/org/eclipse/hawkbit/amqp/BaseAmqpService.java#L60-L66 |
52,288 | eclipse/hawkbit | hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java | PermissionUtils.createAllAuthorityList | public static List<GrantedAuthority> createAllAuthorityList() {
return SpPermission.getAllAuthorities().stream().map(SimpleGrantedAuthority::new).collect(Collectors.toList());
} | java | public static List<GrantedAuthority> createAllAuthorityList() {
return SpPermission.getAllAuthorities().stream().map(SimpleGrantedAuthority::new).collect(Collectors.toList());
} | [
"public",
"static",
"List",
"<",
"GrantedAuthority",
">",
"createAllAuthorityList",
"(",
")",
"{",
"return",
"SpPermission",
".",
"getAllAuthorities",
"(",
")",
".",
"stream",
"(",
")",
".",
"map",
"(",
"SimpleGrantedAuthority",
"::",
"new",
")",
".",
"collect... | Returns all authorities.
@return a list of {@link GrantedAuthority} | [
"Returns",
"all",
"authorities",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-security-core/src/main/java/org/eclipse/hawkbit/im/authentication/PermissionUtils.java#L31-L33 |
52,289 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.getButton | public static Button getButton(final String id, final String buttonName, final String buttonDesc,
final String style, final boolean setStyle, final Resource icon,
final Class<? extends SPUIButtonDecorator> buttonDecoratorclassName) {
Button button = null;
SPUIButtonDecorator butt... | java | public static Button getButton(final String id, final String buttonName, final String buttonDesc,
final String style, final boolean setStyle, final Resource icon,
final Class<? extends SPUIButtonDecorator> buttonDecoratorclassName) {
Button button = null;
SPUIButtonDecorator butt... | [
"public",
"static",
"Button",
"getButton",
"(",
"final",
"String",
"id",
",",
"final",
"String",
"buttonName",
",",
"final",
"String",
"buttonDesc",
",",
"final",
"String",
"style",
",",
"final",
"boolean",
"setStyle",
",",
"final",
"Resource",
"icon",
",",
... | Get Button - Factory Approach for decoration.
@param id
as string
@param buttonName
as string
@param buttonDesc
as string
@param style
string as string
@param setStyle
string as boolean
@param icon
as image
@param buttonDecoratorclassName
as decorator
@return Button as UI | [
"Get",
"Button",
"-",
"Factory",
"Approach",
"for",
"decoration",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L139-L155 |
52,290 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.getPinButtonStyle | public static String getPinButtonStyle() {
final StringBuilder pinStyle = new StringBuilder(ValoTheme.BUTTON_BORDERLESS_COLORED);
pinStyle.append(' ');
pinStyle.append(ValoTheme.BUTTON_SMALL);
pinStyle.append(' ');
pinStyle.append(ValoTheme.BUTTON_ICON_ONLY);
pinStyle.app... | java | public static String getPinButtonStyle() {
final StringBuilder pinStyle = new StringBuilder(ValoTheme.BUTTON_BORDERLESS_COLORED);
pinStyle.append(' ');
pinStyle.append(ValoTheme.BUTTON_SMALL);
pinStyle.append(' ');
pinStyle.append(ValoTheme.BUTTON_ICON_ONLY);
pinStyle.app... | [
"public",
"static",
"String",
"getPinButtonStyle",
"(",
")",
"{",
"final",
"StringBuilder",
"pinStyle",
"=",
"new",
"StringBuilder",
"(",
"ValoTheme",
".",
"BUTTON_BORDERLESS_COLORED",
")",
";",
"pinStyle",
".",
"append",
"(",
"'",
"'",
")",
";",
"pinStyle",
"... | Get the style required.
@return String | [
"Get",
"the",
"style",
"required",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L162-L171 |
52,291 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.getDistributionSetInfo | public static Panel getDistributionSetInfo(final DistributionSet distributionSet, final String caption,
final String style1, final String style2) {
return new DistributionSetInfoPanel(distributionSet, caption, style1, style2);
} | java | public static Panel getDistributionSetInfo(final DistributionSet distributionSet, final String caption,
final String style1, final String style2) {
return new DistributionSetInfoPanel(distributionSet, caption, style1, style2);
} | [
"public",
"static",
"Panel",
"getDistributionSetInfo",
"(",
"final",
"DistributionSet",
"distributionSet",
",",
"final",
"String",
"caption",
",",
"final",
"String",
"style1",
",",
"final",
"String",
"style2",
")",
"{",
"return",
"new",
"DistributionSetInfoPanel",
"... | Get DistributionSet Info Panel.
@param distributionSet
as DistributionSet
@param caption
as string
@param style1
as string
@param style2
as string
@return Panel | [
"Get",
"DistributionSet",
"Info",
"Panel",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L186-L189 |
52,292 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.createNameValueLabel | public static Label createNameValueLabel(final String label, final String... values) {
final String valueStr = StringUtils.arrayToDelimitedString(values, " ");
final Label nameValueLabel = new Label(getBoldHTMLText(label) + valueStr, ContentMode.HTML);
nameValueLabel.setSizeFull();
nameV... | java | public static Label createNameValueLabel(final String label, final String... values) {
final String valueStr = StringUtils.arrayToDelimitedString(values, " ");
final Label nameValueLabel = new Label(getBoldHTMLText(label) + valueStr, ContentMode.HTML);
nameValueLabel.setSizeFull();
nameV... | [
"public",
"static",
"Label",
"createNameValueLabel",
"(",
"final",
"String",
"label",
",",
"final",
"String",
"...",
"values",
")",
"{",
"final",
"String",
"valueStr",
"=",
"StringUtils",
".",
"arrayToDelimitedString",
"(",
"values",
",",
"\" \"",
")",
";",
"f... | Method to CreateName value labels.
@param label
as string
@param values
as string
@return Label | [
"Method",
"to",
"CreateName",
"value",
"labels",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L200-L207 |
52,293 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.getDetailTabLayout | public static VerticalLayout getDetailTabLayout() {
final VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.setImmediate(true);
return layout;
} | java | public static VerticalLayout getDetailTabLayout() {
final VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.setImmediate(true);
return layout;
} | [
"public",
"static",
"VerticalLayout",
"getDetailTabLayout",
"(",
")",
"{",
"final",
"VerticalLayout",
"layout",
"=",
"new",
"VerticalLayout",
"(",
")",
";",
"layout",
".",
"setSpacing",
"(",
"true",
")",
";",
"layout",
".",
"setMargin",
"(",
"true",
")",
";"... | Layout of tabs in detail tabsheet.
@return VerticalLayout | [
"Layout",
"of",
"tabs",
"in",
"detail",
"tabsheet",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L289-L295 |
52,294 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java | SPUIComponentProvider.getLink | public static Link getLink(final String id, final String name, final String resource, final FontAwesome icon,
final String targetOpen, final String style) {
final Link link = new Link(name, new ExternalResource(resource));
link.setId(id);
link.setIcon(icon);
link.setDescript... | java | public static Link getLink(final String id, final String name, final String resource, final FontAwesome icon,
final String targetOpen, final String style) {
final Link link = new Link(name, new ExternalResource(resource));
link.setId(id);
link.setIcon(icon);
link.setDescript... | [
"public",
"static",
"Link",
"getLink",
"(",
"final",
"String",
"id",
",",
"final",
"String",
"name",
",",
"final",
"String",
"resource",
",",
"final",
"FontAwesome",
"icon",
",",
"final",
"String",
"targetOpen",
",",
"final",
"String",
"style",
")",
"{",
"... | Method to create a link.
@param id
of the link
@param name
of the link
@param resource
path of the link
@param icon
of the link
@param targetOpen
specify how the link should be open (f. e. new windows =
_blank)
@param style
chosen style of the link. Might be {@code null} if no style
should be used
@return a link UI co... | [
"Method",
"to",
"create",
"a",
"link",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/components/SPUIComponentProvider.java#L316-L331 |
52,295 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/smtable/SoftwareModuleAddUpdateWindow.java | SoftwareModuleAddUpdateWindow.createUpdateSoftwareModuleWindow | public CommonDialogWindow createUpdateSoftwareModuleWindow(final Long baseSwModuleId) {
this.baseSwModuleId = baseSwModuleId;
resetComponents();
populateTypeNameCombo();
populateValuesOfSwModule();
return createWindow();
} | java | public CommonDialogWindow createUpdateSoftwareModuleWindow(final Long baseSwModuleId) {
this.baseSwModuleId = baseSwModuleId;
resetComponents();
populateTypeNameCombo();
populateValuesOfSwModule();
return createWindow();
} | [
"public",
"CommonDialogWindow",
"createUpdateSoftwareModuleWindow",
"(",
"final",
"Long",
"baseSwModuleId",
")",
"{",
"this",
".",
"baseSwModuleId",
"=",
"baseSwModuleId",
";",
"resetComponents",
"(",
")",
";",
"populateTypeNameCombo",
"(",
")",
";",
"populateValuesOfSw... | Creates window for update software module.
@param baseSwModuleId
id of the software module to edit.
@return reference of {@link com.vaadin.ui.Window} to update software
module. | [
"Creates",
"window",
"for",
"update",
"software",
"module",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/smtable/SoftwareModuleAddUpdateWindow.java#L208-L214 |
52,296 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/smtable/SoftwareModuleAddUpdateWindow.java | SoftwareModuleAddUpdateWindow.populateValuesOfSwModule | private void populateValuesOfSwModule() {
if (baseSwModuleId == null) {
return;
}
editSwModule = Boolean.TRUE;
softwareModuleManagement.get(baseSwModuleId).ifPresent(swModule -> {
nameTextField.setValue(swModule.getName());
versionTextField.setValue(sw... | java | private void populateValuesOfSwModule() {
if (baseSwModuleId == null) {
return;
}
editSwModule = Boolean.TRUE;
softwareModuleManagement.get(baseSwModuleId).ifPresent(swModule -> {
nameTextField.setValue(swModule.getName());
versionTextField.setValue(sw... | [
"private",
"void",
"populateValuesOfSwModule",
"(",
")",
"{",
"if",
"(",
"baseSwModuleId",
"==",
"null",
")",
"{",
"return",
";",
"}",
"editSwModule",
"=",
"Boolean",
".",
"TRUE",
";",
"softwareModuleManagement",
".",
"get",
"(",
"baseSwModuleId",
")",
".",
... | fill the data of a softwareModule in the content of the window | [
"fill",
"the",
"data",
"of",
"a",
"softwareModule",
"in",
"the",
"content",
"of",
"the",
"window"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/artifacts/smtable/SoftwareModuleAddUpdateWindow.java#L299-L312 |
52,297 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/client/SuggestionsSelectList.java | SuggestionsSelectList.addItems | public void addItems(final List<SuggestTokenDto> suggestions, final VTextField textFieldWidget,
final PopupPanel popupPanel, final TextFieldSuggestionBoxServerRpc suggestionServerRpc) {
for (int index = 0; index < suggestions.size(); index++) {
final SuggestTokenDto suggestToken = sugges... | java | public void addItems(final List<SuggestTokenDto> suggestions, final VTextField textFieldWidget,
final PopupPanel popupPanel, final TextFieldSuggestionBoxServerRpc suggestionServerRpc) {
for (int index = 0; index < suggestions.size(); index++) {
final SuggestTokenDto suggestToken = sugges... | [
"public",
"void",
"addItems",
"(",
"final",
"List",
"<",
"SuggestTokenDto",
">",
"suggestions",
",",
"final",
"VTextField",
"textFieldWidget",
",",
"final",
"PopupPanel",
"popupPanel",
",",
"final",
"TextFieldSuggestionBoxServerRpc",
"suggestionServerRpc",
")",
"{",
"... | Adds suggestions to the suggestion menu bar.
@param suggestions
the suggestions to be added
@param textFieldWidget
the text field which the suggestion is attached to to bring
back the focus after selection
@param popupPanel
pop-up panel where the menu bar is shown to hide it after
selection
@param suggestionServerRpc
... | [
"Adds",
"suggestions",
"to",
"the",
"suggestion",
"menu",
"bar",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/filtermanagement/client/SuggestionsSelectList.java#L55-L79 |
52,298 | eclipse/hawkbit | hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/utils/SpringContextHelper.java | SpringContextHelper.getBean | public static <T> T getBean(final String beanName, final Class<T> beanClazz) {
return context.getBean(beanName, beanClazz);
} | java | public static <T> T getBean(final String beanName, final Class<T> beanClazz) {
return context.getBean(beanName, beanClazz);
} | [
"public",
"static",
"<",
"T",
">",
"T",
"getBean",
"(",
"final",
"String",
"beanName",
",",
"final",
"Class",
"<",
"T",
">",
"beanClazz",
")",
"{",
"return",
"context",
".",
"getBean",
"(",
"beanName",
",",
"beanClazz",
")",
";",
"}"
] | method to return a certain bean by its class and name.
@param beanName
name of the beand which should be returned from the
application context
@param beanClazz
class of the bean which should be returned from the
application context
@return the requested bean | [
"method",
"to",
"return",
"a",
"certain",
"bean",
"by",
"its",
"class",
"and",
"name",
"."
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-ui/src/main/java/org/eclipse/hawkbit/ui/utils/SpringContextHelper.java#L69-L71 |
52,299 | eclipse/hawkbit | hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaDistributionSetManagement.java | JpaDistributionSetManagement.getDsFilterNameAndVersionEntries | private static String[] getDsFilterNameAndVersionEntries(final String filterString) {
final int semicolonIndex = filterString.indexOf(':');
final String dsFilterName = semicolonIndex != -1 ? filterString.substring(0, semicolonIndex)
: (filterString + "%");
final String dsFilterV... | java | private static String[] getDsFilterNameAndVersionEntries(final String filterString) {
final int semicolonIndex = filterString.indexOf(':');
final String dsFilterName = semicolonIndex != -1 ? filterString.substring(0, semicolonIndex)
: (filterString + "%");
final String dsFilterV... | [
"private",
"static",
"String",
"[",
"]",
"getDsFilterNameAndVersionEntries",
"(",
"final",
"String",
"filterString",
")",
"{",
"final",
"int",
"semicolonIndex",
"=",
"filterString",
".",
"indexOf",
"(",
"'",
"'",
")",
";",
"final",
"String",
"dsFilterName",
"=",... | field when the semicolon is present | [
"field",
"when",
"the",
"semicolon",
"is",
"present"
] | 9884452ad42f3b4827461606d8a9215c8625a7fe | https://github.com/eclipse/hawkbit/blob/9884452ad42f3b4827461606d8a9215c8625a7fe/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/JpaDistributionSetManagement.java#L658-L666 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.