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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetIp()IP address of the agent requesting approval.getUuid()UUID of this authentication request.UUID converted to StringinthashCode()booleanWhether this request was approved, or is still pending approvalvoidsetApproved(boolean isApproved) Set whether this authentication has been approved.voidSet IP address of this authentication.voidSet 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, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
RemoteAgentAuthenticationImpl
public RemoteAgentAuthenticationImpl()
-
-
Method Details
-
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
Description copied from interface:RemoteAgentAuthenticationEntitySet IP address of this authentication.- Specified by:
setIpin interfaceRemoteAgentAuthenticationEntity- Parameters:
ip- IP address
-
getUuid
Description copied from interface:RemoteAgentAuthenticationUUID of this authentication request.- Specified by:
getUuidin interfaceRemoteAgentAuthentication- Returns:
- UUID
-
setUuid
Description copied from interface:RemoteAgentAuthenticationEntitySet unique ID of this authentication- Specified by:
setUuidin interfaceRemoteAgentAuthenticationEntity- Parameters:
uuid- UUID
-
getUuidAsString
Description copied from interface:RemoteAgentAuthenticationEntityUUID converted to String- Specified by:
getUuidAsStringin interfaceRemoteAgentAuthenticationEntity- Returns:
- null iff uuid is null or uuid.toString()
-
setUuidAsString
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
- Specified by:
getIpPatternsin interfaceRemoteAgentAuthentication- Returns:
- list of IP patterns matched for authentication
-
compareTo
- Specified by:
compareToin interfaceComparable<RemoteAgentAuthenticationEntity>
-
equals
- Overrides:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-