com.atlassian.bamboo.buildqueue
Class RemoteAgentAuthenticationImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.buildqueue.RemoteAgentAuthenticationImpl
All Implemented Interfaces:
RemoteAgentAuthentication, RemoteAgentAuthenticationEntity, BambooIdProvider, BambooObject, java.lang.Cloneable, java.lang.Comparable<RemoteAgentAuthenticationEntity>

public class RemoteAgentAuthenticationImpl
extends BambooEntityObject
implements RemoteAgentAuthenticationEntity

Default implementation of RemoteAgentAuthenticationEntity.

Since:
3.4

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
RemoteAgentAuthenticationImpl()
           
 
Method Summary
 int compareTo(RemoteAgentAuthenticationEntity other)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getIp()
          IP address of the agent requesting approval.
 java.util.Set<java.lang.String> getIpPatterns()
           
 java.util.UUID getUuid()
          UUID of this authentication request.
 java.lang.String getUuidAsString()
          UUID converted to String
 int hashCode()
           
 boolean isApproved()
          Whether this request was approved, or is still pending approval
 void setApproved(boolean isApproved)
          Set whether this authentication has been approved.
 void setIp(java.lang.String ip)
          Set IP address of this authentication.
 void setUuid(java.util.UUID uuid)
          Set unique ID of this authentication
 void setUuidAsString(java.lang.String uuidAsString)
          Set value of UUID from String.
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

RemoteAgentAuthenticationImpl

public RemoteAgentAuthenticationImpl()
Method Detail

getIp

public java.lang.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 interface RemoteAgentAuthentication
Returns:
IP address of the remote agent

setIp

public void setIp(@NotNull
                  java.lang.String ip)
Description copied from interface: RemoteAgentAuthenticationEntity
Set IP address of this authentication.

Specified by:
setIp in interface RemoteAgentAuthenticationEntity
Parameters:
ip - IP address

getUuid

public java.util.UUID getUuid()
Description copied from interface: RemoteAgentAuthentication
UUID of this authentication request.

Specified by:
getUuid in interface RemoteAgentAuthentication
Returns:
UUID

setUuid

public void setUuid(java.util.UUID uuid)
Description copied from interface: RemoteAgentAuthenticationEntity
Set unique ID of this authentication

Specified by:
setUuid in interface RemoteAgentAuthenticationEntity
Parameters:
uuid - UUID

getUuidAsString

public java.lang.String getUuidAsString()
Description copied from interface: RemoteAgentAuthenticationEntity
UUID converted to String

Specified by:
getUuidAsString in interface RemoteAgentAuthenticationEntity
Returns:
null iff uuid is null or uuid.toString()

setUuidAsString

public void setUuidAsString(java.lang.String uuidAsString)
Description copied from interface: RemoteAgentAuthenticationEntity
Set value of UUID from String.

Specified by:
setUuidAsString in interface RemoteAgentAuthenticationEntity
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 interface RemoteAgentAuthentication
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 interface RemoteAgentAuthenticationEntity
Parameters:
isApproved - true, if this authentication has been approved

getIpPatterns

public java.util.Set<java.lang.String> getIpPatterns()
Specified by:
getIpPatterns in interface RemoteAgentAuthentication
Returns:
list of IP patterns matched for authentication

compareTo

public int compareTo(RemoteAgentAuthenticationEntity other)
Specified by:
compareTo in interface java.lang.Comparable<RemoteAgentAuthenticationEntity>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject


Copyright © 2012 Atlassian. All Rights Reserved.