com.atlassian.bamboo.security.trustedapplications
Class BambooTrustedApplicationImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.security.trustedapplications.BambooTrustedApplicationImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, BambooTrustedApplication, NameProvider, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<BambooTrustedApplication>

public class BambooTrustedApplicationImpl
extends BambooEntityObject
implements BambooTrustedApplication

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
BambooTrustedApplicationImpl()
           
BambooTrustedApplicationImpl(java.lang.String applicationId, java.lang.String publicKey, java.lang.String name, java.lang.Long timeout, java.util.Set<java.lang.String> urlPatterns, java.util.Set<java.lang.String> ipPatterns)
           
 
Method Summary
 int compareTo(BambooTrustedApplication o)
           
 boolean equals(java.lang.Object o)
          This method needs to be here in order to use proper id
 java.lang.String getApplicationId()
           
 java.util.Set<java.lang.String> getIpPatterns()
          Get IP patterns allowed for this application.
 java.lang.String getName()
           
 java.lang.String getPublicKey()
          Get the trusted application's public key which is shared with this Bamboo instance.
 java.lang.Long getTimeout()
           
 java.util.Set<java.lang.String> getUrlPatterns()
          Get URL patterns allowed for this application.
 int hashCode()
          This method needs to be here in order to use proper id
 void setApplicationId(java.lang.String applicationId)
           
 void setIpPatterns(java.util.Set<java.lang.String> ipPatterns)
           
 void setName(java.lang.String name)
           
 void setPublicKey(java.lang.String publicKey)
           
 void setTimeout(java.lang.Long timeout)
           
 void setUrlPatterns(java.util.Set<java.lang.String> urlPatterns)
           
 
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

BambooTrustedApplicationImpl

public BambooTrustedApplicationImpl()

BambooTrustedApplicationImpl

public BambooTrustedApplicationImpl(@NotNull
                                    java.lang.String applicationId,
                                    @NotNull
                                    java.lang.String publicKey,
                                    @Nullable
                                    java.lang.String name,
                                    @NotNull
                                    java.lang.Long timeout,
                                    @NotNull
                                    java.util.Set<java.lang.String> urlPatterns,
                                    @NotNull
                                    java.util.Set<java.lang.String> ipPatterns)
Method Detail

getApplicationId

@NotNull
public java.lang.String getApplicationId()
Specified by:
getApplicationId in interface BambooTrustedApplication

setApplicationId

public void setApplicationId(@NotNull
                             java.lang.String applicationId)

getPublicKey

@NotNull
public java.lang.String getPublicKey()
Description copied from interface: BambooTrustedApplication
Get the trusted application's public key which is shared with this Bamboo instance.

Specified by:
getPublicKey in interface BambooTrustedApplication

setPublicKey

public void setPublicKey(@NotNull
                         java.lang.String publicKey)

getName

public java.lang.String getName()
Specified by:
getName in interface BambooTrustedApplication
Specified by:
getName in interface NameProvider

setName

public void setName(java.lang.String name)

getTimeout

@NotNull
public java.lang.Long getTimeout()
Specified by:
getTimeout in interface BambooTrustedApplication

setTimeout

public void setTimeout(@NotNull
                       java.lang.Long timeout)

getUrlPatterns

@NotNull
public java.util.Set<java.lang.String> getUrlPatterns()
Description copied from interface: BambooTrustedApplication
Get URL patterns allowed for this application.

Specified by:
getUrlPatterns in interface BambooTrustedApplication

setUrlPatterns

public void setUrlPatterns(@NotNull
                           java.util.Set<java.lang.String> urlPatterns)

getIpPatterns

@NotNull
public java.util.Set<java.lang.String> getIpPatterns()
Description copied from interface: BambooTrustedApplication
Get IP patterns allowed for this application.

Specified by:
getIpPatterns in interface BambooTrustedApplication

setIpPatterns

public void setIpPatterns(@NotNull
                          java.util.Set<java.lang.String> ipPatterns)

hashCode

public int hashCode()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

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


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.