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 of
RemoteAgentAuthenticationEntity
.- Since:
- 3.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getIp()
IP address of the agent requesting approval.getUuid()
UUID of this authentication request.UUID converted to Stringint
hashCode()
boolean
Whether this request was approved, or is still pending approvalvoid
setApproved
(boolean isApproved) Set whether this authentication has been approved.void
Set IP address of this authentication.void
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
-
Constructor Details
-
RemoteAgentAuthenticationImpl
public RemoteAgentAuthenticationImpl()
-
-
Method Details
-
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
Description copied from interface:RemoteAgentAuthenticationEntity
Set IP address of this authentication.- Specified by:
setIp
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
ip
- IP address
-
getUuid
Description copied from interface:RemoteAgentAuthentication
UUID of this authentication request.- Specified by:
getUuid
in interfaceRemoteAgentAuthentication
- Returns:
- UUID
-
setUuid
Description copied from interface:RemoteAgentAuthenticationEntity
Set unique ID of this authentication- Specified by:
setUuid
in interfaceRemoteAgentAuthenticationEntity
- Parameters:
uuid
- UUID
-
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
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
- Specified by:
getIpPatterns
in interfaceRemoteAgentAuthentication
- Returns:
- list of IP patterns matched for authentication
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RemoteAgentAuthenticationEntity>
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-