Class ViewCredentialsAction.TableEntry
java.lang.Object
com.cloudbees.plugins.credentials.ViewCredentialsAction.TableEntry
- All Implemented Interfaces:
IconSpec
- Enclosing class:
ViewCredentialsAction
Value class to simplify creating the table.
-
Constructor Summary
ConstructorsConstructorDescriptionTableEntry(CredentialsProvider provider, CredentialsStore store, Domain domain, Credentials credentials, boolean masked) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDescription is useful for select drop down in the name but not in the credentials list.Returns theStandardCredentials.getDescription()of thecredentials.Exposes theDomain.getId()Returns theIdCredentials.getId()of thecredentials.getKind()Returns theDescriptor.getDisplayName().getName()Returns theCredentialsNameProvider.name(Credentials)of thecredentials.Exposes theCredentialsProvider.getScope()Returns theCredentials.getScope()of thecredentials.getStore()Exposes theCredentialsStore.booleanbooleanisMasked()Exposes if thisCredentials's ID is masked by another credential.
-
Constructor Details
-
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 Details
-
getId
Returns theIdCredentials.getId()of thecredentials.- Returns:
- the
IdCredentials.getId()of thecredentials.
-
isEditable
public boolean isEditable() -
getScope
Returns theCredentials.getScope()of thecredentials.- Returns:
- the
Credentials.getScope()of thecredentials.
-
getName
Returns theCredentialsNameProvider.name(Credentials)of thecredentials.- Returns:
- the
CredentialsNameProvider.name(Credentials)of thecredentials.
-
getCleanedName
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getCleanedName() throws IOExceptionDescription is useful for select drop down in the name but not in the credentials list. So remove the description so we have more control over how its displayed.- Throws:
IOException
-
getDescription
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
Returns theDescriptor.getDisplayName().- Returns:
- the
Descriptor.getDisplayName().
-
getProvider
Exposes theCredentialsProvider.- Returns:
- the
CredentialsProvider.
-
getDomain
Exposes theDomain.- Returns:
- the
Domain.
-
getStore
Exposes theCredentialsStore.- Returns:
- the
CredentialsStore.
-
getIconClassName
- Specified by:
getIconClassNamein interfaceIconSpec
-
isMasked
public boolean isMasked()Exposes if thisCredentials's ID is masked by another credential.- Returns:
trueif there is a closer credential with the same ID.
-