public class MonitoredAttributeBagResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected List<Dom> |
entity
A list of the monitored attributes in the service.
|
static LocalStringManagerImpl |
LOCAL_STRINGS |
protected Dom |
parent
The service containing the monitored attributes.
|
protected String |
tagName
The name of the element the monitored attributes are stored under.
|
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo| Constructor and Description |
|---|
MonitoredAttributeBagResource() |
| Modifier and Type | Method and Description |
|---|---|
ActionReportResult |
delete()
Deletes all monitored-attributes.
|
ActionReportResult |
get()
Gets the monitored-attributes.
|
List<Map<String,String>> |
getMonitoredAttributes()
Gets all of the monitored attributes in the entity.
|
ActionReportResult |
post(List<Map<String,String>> attributes)
Creates new monitored-attributes.
|
ActionReportResult |
put(List<Map<String,String>> attributes)
Creates new monitored-attributes.
|
void |
setMonitoredAttributes(List<Map<String,String>> attributes)
Sets the monitored attribute list to the specified list.
|
void |
setParentAndTagName(Dom parent,
String tagName)
Sets the parent and the tag name of the resource.
|
getAuthenticatedUser, getSubjectpublic static final LocalStringManagerImpl LOCAL_STRINGS
protected Dom parent
protected String tagName
@GET
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult get()
@PUT
@Consumes(value={"application/json","application/xml","application/x-www-form-urlencoded"})
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult put(List<Map<String,String>> attributes)
attributes - the list of monitored-attributes to be created.@POST
@Consumes(value={"application/json","application/xml","application/x-www-form-urlencoded"})
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult post(List<Map<String,String>> attributes)
attributes - the list of monitored-attributes to be created.@DELETE
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult delete()
public List<Map<String,String>> getMonitoredAttributes()
public void setMonitoredAttributes(List<Map<String,String>> attributes) throws TransactionFailure
attributes - the intended list of attributes.TransactionFailure - if an error occurs in removing or adding
attributes.Copyright © 2019. All rights reserved.