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 aCredentialsStore
.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description StoreItem(CredentialsStore store)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Exposes the description of this store (i.e.String
getDisplayName()
String
getIconClassName()
String
getUrl()
Exposes the URL of this store'sCredentialsSelectHelper.WrappedCredentialsStore
.boolean
isEnabled()
Exposes if this store is enabled for the current user.
-
-
-
Constructor Detail
-
StoreItem
public StoreItem(CredentialsStore store)
Constructor.- Parameters:
store
- the store.
-
-
Method Detail
-
getIconClassName
public String 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
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
getDescription
public String getDescription()
Exposes the description of this store (i.e. theCredentialsProvider.getDisplayName()
.- Returns:
- the description of this store (i.e. the
CredentialsProvider.getDisplayName()
.
-
getUrl
public String getUrl()
Exposes the URL of this store'sCredentialsSelectHelper.WrappedCredentialsStore
.- Returns:
- the URL of this store's
CredentialsSelectHelper.WrappedCredentialsStore
-
-