Class ViewCredentialsAction.TableEntry
- java.lang.Object
-
- com.cloudbees.plugins.credentials.ViewCredentialsAction.TableEntry
-
- All Implemented Interfaces:
IconSpec
- Enclosing class:
- ViewCredentialsAction
public static class ViewCredentialsAction.TableEntry extends Object implements IconSpec
Value class to simplify creating the table.
-
-
Constructor Summary
Constructors Constructor Description TableEntry(CredentialsProvider provider, CredentialsStore store, Domain domain, Credentials credentials, boolean masked)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Returns theStandardCredentials.getDescription()
of thecredentials
.Domain
getDomain()
Exposes theDomain
.String
getIconClassName()
String
getId()
Returns theIdCredentials.getId()
of thecredentials
.String
getKind()
Returns theDescriptor.getDisplayName()
.String
getName()
Returns theCredentialsNameProvider.name(Credentials)
of thecredentials
.CredentialsProvider
getProvider()
Exposes theCredentialsProvider
.CredentialsScope
getScope()
Returns theCredentials.getScope()
of thecredentials
.CredentialsStore
getStore()
Exposes theCredentialsStore
.boolean
isMasked()
Exposes if thisCredentials
's ID is masked by another credential.
-
-
-
Constructor Detail
-
TableEntry
public TableEntry(CredentialsProvider provider, CredentialsStore store, Domain domain, Credentials credentials, boolean masked)
Constructor.- Parameters:
provider
- the backingCredentialsProvider
.store
- the backingCredentialsStore
.domain
- the backingDomain
.credentials
- the backingCredentials
.masked
- whether this entry is masked or not.
-
-
Method Detail
-
getId
public String getId()
Returns theIdCredentials.getId()
of thecredentials
.- Returns:
- the
IdCredentials.getId()
of thecredentials
.
-
getScope
public CredentialsScope getScope()
Returns theCredentials.getScope()
of thecredentials
.- Returns:
- the
Credentials.getScope()
of thecredentials
.
-
getName
public String getName()
Returns theCredentialsNameProvider.name(Credentials)
of thecredentials
.- Returns:
- the
CredentialsNameProvider.name(Credentials)
of thecredentials
.
-
getDescription
public String getDescription() throws IOException
Returns theStandardCredentials.getDescription()
of thecredentials
.- Returns:
- the
StandardCredentials.getDescription()
of thecredentials
. - Throws:
IOException
- if there was an issue with formatting this using the markup formatter.
-
getKind
public String getKind()
Returns theDescriptor.getDisplayName()
.- Returns:
- the
Descriptor.getDisplayName()
.
-
getProvider
public CredentialsProvider getProvider()
Exposes theCredentialsProvider
.- Returns:
- the
CredentialsProvider
.
-
getStore
public CredentialsStore getStore()
Exposes theCredentialsStore
.- Returns:
- the
CredentialsStore
.
-
getIconClassName
public String getIconClassName()
- Specified by:
getIconClassName
in interfaceIconSpec
-
isMasked
public boolean isMasked()
Exposes if thisCredentials
's ID is masked by another credential.- Returns:
true
if there is a closer credential with the same ID.
-
-