Class CredentialsSelectHelper.StoreItem
java.lang.Object
com.cloudbees.plugins.credentials.CredentialsSelectHelper.StoreItem
- All Implemented Interfaces:
ModelObject
,IconSpec
- Enclosing class:
- CredentialsSelectHelper
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static final class CredentialsSelectHelper.StoreItem
extends Object
implements IconSpec, ModelObject
Value class to hold the details of a
CredentialsStore
.- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExposes the description of this store (i.e.getUrl()
Exposes the URL of this store'sCredentialsSelectHelper.WrappedCredentialsStore
.boolean
Exposes if this store is enabled for the current user.
-
Constructor Details
-
StoreItem
Constructor.- Parameters:
store
- the store.
-
-
Method Details
-
getIconClassName
- Specified by:
getIconClassName
in interfaceIconSpec
-
isEnabled
public boolean isEnabled()Exposes if this store is enabled for the current user.- Returns:
true
if the current user can add credentials to this store.
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
getDescription
Exposes the description of this store (i.e. theCredentialsProvider.getDisplayName()
.- Returns:
- the description of this store (i.e. the
CredentialsProvider.getDisplayName()
.
-
getUrl
Exposes the URL of this store'sCredentialsSelectHelper.WrappedCredentialsStore
.- Returns:
- the URL of this store's
CredentialsSelectHelper.WrappedCredentialsStore
-