public abstract class AbstractAttributeBagResource extends AbstractResource
| Modifier and Type | Field and Description |
|---|---|
protected List<Dom> |
entity
A list of attributes in the service.
|
static LocalStringManagerImpl |
LOCAL_STRINGS |
protected Dom |
parent
The service containing the attributes.
|
protected String |
tagName
The getPropertiesName of the element the attributes are stored under.
|
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo| Constructor and Description |
|---|
AbstractAttributeBagResource() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
attributesAreEqual(Map<String,String> attribute1,
Map<String,String> attribute2) |
ActionReportResult |
delete()
Deletes all attributes.
|
abstract void |
excuteSetCommand(List<Map<String,String>> attributesToAdd,
List<Map<String,String>> attributesToDelete) |
ActionReportResult |
get()
Gets the attributes.
|
abstract List<Map<String,String>> |
getAllAttributes()
Gets all of the attributes in the entity.
|
abstract String |
getDescriptionName() |
abstract String |
getnodeElementName() |
abstract String |
getPropertiesName() |
ActionReportResult |
post(List<Map<String,String>> attributes)
Creates new attributes.
|
ActionReportResult |
put(List<Map<String,String>> attributes)
Creates new attributes.
|
void |
setAttributes(List<Map<String,String>> attributes)
Sets the attribute list to the specified list.
|
void |
setParentAndTagName(Dom parent,
String tagName)
Sets the parent and the tag getPropertiesName of the resource.
|
getAuthenticatedUser, getSubjectpublic static final LocalStringManagerImpl LOCAL_STRINGS
protected Dom parent
protected String tagName
public abstract String getDescriptionName()
public abstract String getPropertiesName()
public abstract String getnodeElementName()
public abstract List<Map<String,String>> getAllAttributes()
@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 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 attributes to be created.@DELETE
@Produces(value={"text/html","application/json","application/xml"})
public ActionReportResult delete()
public void setAttributes(List<Map<String,String>> attributes) throws TransactionFailure
attributes - the intended list of attributes.TransactionFailure - if an error occurs in removing or adding
attributes.public abstract void excuteSetCommand(List<Map<String,String>> attributesToAdd, List<Map<String,String>> attributesToDelete) throws TransactionFailure
TransactionFailurepublic abstract boolean attributesAreEqual(Map<String,String> attribute1, Map<String,String> attribute2)
Copyright © 2021. All rights reserved.