Package com.atlassian.bamboo.buildqueue
Class RemoteAgentAuthenticationImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.buildqueue.RemoteAgentAuthenticationImpl
-
- All Implemented Interfaces:
RemoteAgentAuthentication,RemoteAgentAuthenticationEntity,BambooIdProvider,BambooObject,Cloneable,Comparable<RemoteAgentAuthenticationEntity>
@Entity public class RemoteAgentAuthenticationImpl extends BambooEntityObject implements RemoteAgentAuthenticationEntity
Default implementation ofRemoteAgentAuthenticationEntity.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description RemoteAgentAuthenticationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RemoteAgentAuthenticationEntity other)booleanequals(Object o)StringgetIp()IP address of the agent requesting approval.Set<String>getIpPatterns()UUIDgetUuid()UUID of this authentication request.StringgetUuidAsString()UUID converted to StringinthashCode()booleanisApproved()Whether this request was approved, or is still pending approvalvoidsetApproved(boolean isApproved)Set whether this authentication has been approved.voidsetIp(@NotNull String ip)Set IP address of this authentication.voidsetUuid(UUID uuid)Set unique ID of this authenticationvoidsetUuidAsString(String uuidAsString)Set value of UUID from String.-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Method Detail
-
getIp
public String getIp()
Description copied from interface:RemoteAgentAuthenticationIP address of the agent requesting approval. May contain multiple addresses (coma separated) if agent connects through proxy- Specified by:
getIpin interfaceRemoteAgentAuthentication- Returns:
- IP address of the remote agent
-
setIp
public void setIp(@NotNull @NotNull String ip)Description copied from interface:RemoteAgentAuthenticationEntitySet IP address of this authentication.- Specified by:
setIpin interfaceRemoteAgentAuthenticationEntity- Parameters:
ip- IP address
-
getUuid
public UUID getUuid()
Description copied from interface:RemoteAgentAuthenticationUUID of this authentication request.- Specified by:
getUuidin interfaceRemoteAgentAuthentication- Returns:
- UUID
-
setUuid
public void setUuid(UUID uuid)
Description copied from interface:RemoteAgentAuthenticationEntitySet unique ID of this authentication- Specified by:
setUuidin interfaceRemoteAgentAuthenticationEntity- Parameters:
uuid- UUID
-
getUuidAsString
public String getUuidAsString()
Description copied from interface:RemoteAgentAuthenticationEntityUUID converted to String- Specified by:
getUuidAsStringin interfaceRemoteAgentAuthenticationEntity- Returns:
- null iff uuid is null or uuid.toString()
-
setUuidAsString
public void setUuidAsString(String uuidAsString)
Description copied from interface:RemoteAgentAuthenticationEntitySet value of UUID from String.- Specified by:
setUuidAsStringin interfaceRemoteAgentAuthenticationEntity- Parameters:
uuidAsString- string representation of uuid
-
isApproved
public boolean isApproved()
Description copied from interface:RemoteAgentAuthenticationWhether this request was approved, or is still pending approval- Specified by:
isApprovedin interfaceRemoteAgentAuthentication- Returns:
true, if this authentication request has been approved
-
setApproved
public void setApproved(boolean isApproved)
Description copied from interface:RemoteAgentAuthenticationEntitySet whether this authentication has been approved.- Specified by:
setApprovedin interfaceRemoteAgentAuthenticationEntity- Parameters:
isApproved-true, if this authentication has been approved
-
getIpPatterns
public Set<String> getIpPatterns()
- Specified by:
getIpPatternsin interfaceRemoteAgentAuthentication- Returns:
- list of IP patterns matched for authentication
-
compareTo
public int compareTo(RemoteAgentAuthenticationEntity other)
- Specified by:
compareToin interfaceComparable<RemoteAgentAuthenticationEntity>
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
-