com.atlassian.bamboo.rest.model
Class RestKey

java.lang.Object
  extended by com.atlassian.bamboo.rest.model.RestKey
All Implemented Interfaces:
DeploymentKey, Key, Serializable

public class RestKey
extends Object
implements Key, DeploymentKey

Used to represent a Key object in rest. For soy etc we need to mimic the object structure of the actual Key e.g. the get the string from a key object in freemarker it would look like this: "myObject.key.key". So we cannot convert it directly to a string. For Deployments you can use this object directly, for PlanKeys you can use the PlanKeyRestKeyAdapter.

See Also:
Serialized Form

Constructor Summary
RestKey()
           
RestKey(Key key)
           
 
Method Summary
 String getKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestKey

public RestKey(Key key)

RestKey

public RestKey()
Method Detail

getKey

@NotNull
public String getKey()
Specified by:
getKey in interface Key


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.