|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.plugins.rest.admin.globalvariable.RestGlobalVariableServiceImpl
public class RestGlobalVariableServiceImpl
| Field Summary | |
|---|---|
protected static int |
KEY_MAX_LENGTH
|
protected static int |
VALUE_MAX_LENGTH
|
| Constructor Summary | |
|---|---|
RestGlobalVariableServiceImpl(VariableDefinitionManager variableDefinitionManager,
VariableConfigurationService variableConfigurationService,
com.atlassian.struts.TextProvider textProvider,
RestPermissionCheck restPermissionCheck)
|
|
| Method Summary | |
|---|---|
RestGlobalVariable |
createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
RestGlobalVariable restGlobalVariable)
Create a global variable |
void |
deleteGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
Delete a global variable |
RestGlobalVariable |
getGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
Retrieve a global variable definition |
RestGlobalVariables |
getGlobalVariables(javax.ws.rs.core.UriInfo uriInfo)
Retrieve all global variables and values on bamboo server Password variables will be encrypted using salted hash. |
RestGlobalVariable |
updateGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId,
RestGlobalVariable restGlobalVariable)
Update a global variable |
ErrorCollection |
validateVariable(RestGlobalVariable restGlobalVariable)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int VALUE_MAX_LENGTH
protected static final int KEY_MAX_LENGTH
| Constructor Detail |
|---|
public RestGlobalVariableServiceImpl(VariableDefinitionManager variableDefinitionManager,
VariableConfigurationService variableConfigurationService,
com.atlassian.struts.TextProvider textProvider,
RestPermissionCheck restPermissionCheck)
| Method Detail |
|---|
public RestGlobalVariables getGlobalVariables(javax.ws.rs.core.UriInfo uriInfo)
RestGlobalVariableService
getGlobalVariables in interface RestGlobalVariableServiceuriInfo - Object that provides access to information of http request
for how encryption is performed
public RestGlobalVariable getGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
RestGlobalVariableService
getGlobalVariable in interface RestGlobalVariableServiceuriInfo - Object that provides access to information of httpvariableId - id fo the variable
public RestGlobalVariable createGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
RestGlobalVariable restGlobalVariable)
throws WebValidationException
RestGlobalVariableService
createGlobalVariable in interface RestGlobalVariableServiceuriInfo - Object that provides access to information of http requestrestGlobalVariable - The global variable to be created
WebValidationException - If some parameter is illegal, e.g. empty variable name, illegal characters in variable name, etc.
public void deleteGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId)
RestGlobalVariableService
deleteGlobalVariable in interface RestGlobalVariableServiceuriInfo - Object that provides access to information of http requestvariableId - Id of the variable to be removed
public RestGlobalVariable updateGlobalVariable(javax.ws.rs.core.UriInfo uriInfo,
long variableId,
RestGlobalVariable restGlobalVariable)
throws WebValidationException
RestGlobalVariableService
updateGlobalVariable in interface RestGlobalVariableServiceuriInfo - Object that provides access to information of http requestvariableId - Id of the variable to be updatedrestGlobalVariable - New name/value of the global variable
WebValidationException - If the name/value is invalid, e.g. exceeds max value lengthpublic ErrorCollection validateVariable(RestGlobalVariable restGlobalVariable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||