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 int
compareTo(RemoteAgentAuthenticationEntity other)
boolean
equals(Object o)
String
getIp()
IP address of the agent requesting approval.Set<String>
getIpPatterns()
UUID
getUuid()
UUID of this authentication request.String
getUuidAsString()
UUID converted to Stringint
hashCode()
boolean
isApproved()
Whether this request was approved, or is still pending approvalvoid
setApproved(boolean isApproved)
Set whether this authentication has been approved.void
setIp(@NotNull String ip)
Set IP address of this authentication.void
setUuid(UUID uuid)
Set unique ID of this authenticationvoid
setUuidAsString(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:RemoteAgentAuthentication
IP address of the agent requesting approval. May contain multiple addresses (coma separated) if agent connects through proxy- Specified by:
getIp
in interfaceRemoteAgentAuthentication
- Returns:
- IP address of the remote agent
-
setIp
public void setIp(@NotNull @NotNull String ip)
Description copied from interface:RemoteAgentAuthenticationEntity
Set IP address of this authentication.- Specified by:
setIp
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
ip
- IP address
-
getUuid
public UUID getUuid()
Description copied from interface:RemoteAgentAuthentication
UUID of this authentication request.- Specified by:
getUuid
in interfaceRemoteAgentAuthentication
- Returns:
- UUID
-
setUuid
public void setUuid(UUID uuid)
Description copied from interface:RemoteAgentAuthenticationEntity
Set unique ID of this authentication- Specified by:
setUuid
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
uuid
- UUID
-
getUuidAsString
public String getUuidAsString()
Description copied from interface:RemoteAgentAuthenticationEntity
UUID converted to String- Specified by:
getUuidAsString
in interfaceRemoteAgentAuthenticationEntity
- Returns:
- null iff uuid is null or uuid.toString()
-
setUuidAsString
public void setUuidAsString(String uuidAsString)
Description copied from interface:RemoteAgentAuthenticationEntity
Set value of UUID from String.- Specified by:
setUuidAsString
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
uuidAsString
- string representation of uuid
-
isApproved
public boolean isApproved()
Description copied from interface:RemoteAgentAuthentication
Whether this request was approved, or is still pending approval- Specified by:
isApproved
in interfaceRemoteAgentAuthentication
- Returns:
true
, if this authentication request has been approved
-
setApproved
public void setApproved(boolean isApproved)
Description copied from interface:RemoteAgentAuthenticationEntity
Set whether this authentication has been approved.- Specified by:
setApproved
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
isApproved
-true
, if this authentication has been approved
-
getIpPatterns
public Set<String> getIpPatterns()
- Specified by:
getIpPatterns
in interfaceRemoteAgentAuthentication
- Returns:
- list of IP patterns matched for authentication
-
compareTo
public int compareTo(RemoteAgentAuthenticationEntity other)
- Specified by:
compareTo
in interfaceComparable<RemoteAgentAuthenticationEntity>
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
-