Class BitbucketTeamMetadataAction.BitbucketAvatarCacheSource
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.BitbucketTeamMetadataAction.BitbucketAvatarCacheSource
-
- All Implemented Interfaces:
AvatarCacheSource
,Serializable
- Enclosing class:
- BitbucketTeamMetadataAction
public static class BitbucketTeamMetadataAction.BitbucketAvatarCacheSource extends Object implements AvatarCacheSource, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.cloudbees.jenkins.plugins.bitbucket.avatars.AvatarCacheSource
AvatarCacheSource.AvatarImage
-
-
Constructor Summary
Constructors Constructor Description BitbucketAvatarCacheSource(String serverUrl, com.cloudbees.plugins.credentials.common.StandardCredentials credentials, String repoOwner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canFetch()
Make sure we can fetchboolean
equals(Object o)
AvatarCacheSource.AvatarImage
fetch()
AvatarCacheSource.AvatarImage
fetch(com.cloudbees.plugins.credentials.common.StandardCredentials credentials)
Fetch image from sourceint
hashCode()
String
hashKey()
Get unique hashKey for this itemString
toString()
-
-
-
Method Detail
-
fetch
public AvatarCacheSource.AvatarImage fetch(com.cloudbees.plugins.credentials.common.StandardCredentials credentials)
Description copied from interface:AvatarCacheSource
Fetch image from source- Specified by:
fetch
in interfaceAvatarCacheSource
- Parameters:
credentials
- the credentials to use- Returns:
- AvatarImage object
-
fetch
public AvatarCacheSource.AvatarImage fetch()
- Specified by:
fetch
in interfaceAvatarCacheSource
- Returns:
- AvatarImage object
-
hashKey
public String hashKey()
Description copied from interface:AvatarCacheSource
Get unique hashKey for this item- Specified by:
hashKey
in interfaceAvatarCacheSource
- Returns:
- AvatarImage object
-
canFetch
public boolean canFetch()
Description copied from interface:AvatarCacheSource
Make sure we can fetch- Specified by:
canFetch
in interfaceAvatarCacheSource
- Returns:
- true if can fetch
-
-