Skip to content

Commit

Permalink
Name and value of properties are missing on API (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
mPokornyETM authored Jan 7, 2024
1 parent 5db5964 commit 5e9500f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public List<String> getLabelsAsList() {
* @param labelToFind Label to find.
* @return {@code true} if this resource contains the label.
*/
@Exported
@Restricted(NoExternalUse.class)
public boolean hasLabel(@CheckForNull String labelToFind) {
return this.labelsContain(labelToFind);
}
Expand Down Expand Up @@ -447,6 +447,7 @@ public boolean isLocked() {
* @return the lock cause or null if not locked
*/
@CheckForNull
@Exported
public String getLockCause() {
final DateFormat format = SimpleDateFormat.getDateTimeInstance(MEDIUM, SHORT);
final String timestamp = (reservedTimestamp == null ? "<unknown>" : format.format(reservedTimestamp));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.ExportedBean;

@ExportedBean(defaultVisibility = 999)
public class LockableResourceProperty extends AbstractDescribableImpl<LockableResourceProperty>
implements Serializable {

Expand Down

0 comments on commit 5e9500f

Please sign in to comment.