Class PropertiesBagResource
- java.lang.Object
-
- org.glassfish.admin.rest.resources.AbstractResource
-
- org.glassfish.admin.rest.resources.PropertiesBagResource
-
public class PropertiesBagResource extends AbstractResource
- Author:
- jasonlee
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertiesBagResource.PropertyResource
-
Field Summary
Fields Modifier and Type Field Description protected List<Dom>
entity
static LocalStringManagerImpl
localStrings
protected Dom
parent
protected String
tagName
-
Fields inherited from class org.glassfish.admin.rest.resources.AbstractResource
locatorBridge, logger, requestHeaders, securityContext, serviceLocator, subjectRef, uriInfo
-
-
Constructor Summary
Constructors Constructor Description PropertiesBagResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ActionReportResult
clearThenSaveProperties(List<Map<String,String>> properties)
ActionReportResult
createProperties(List<Map<String,String>> data)
jakarta.ws.rs.core.Response
delete()
protected void
deleteMissingProperties(Map<String,Property> existing, List<Map<String,String>> properties)
Object
get()
List<Dom>
getEntity()
protected Map<String,Property>
getExistingProperties()
PropertiesBagResource.PropertyResource
getProperty(String id)
ActionReportResult
replaceProperties(List<Map<String,String>> data)
void
setEntity(List<Dom> p)
void
setParentAndTagName(Dom parent, String tagName)
-
Methods inherited from class org.glassfish.admin.rest.resources.AbstractResource
getAuthenticatedUser, getSubject
-
-
-
-
Field Detail
-
parent
protected Dom parent
-
tagName
protected String tagName
-
localStrings
public static final LocalStringManagerImpl localStrings
-
-
Method Detail
-
getProperty
@Path("{Name}/") public PropertiesBagResource.PropertyResource getProperty(@PathParam("Name") String id)
-
get
@GET @Produces({"text/html","application/json","application/xml"}) public Object get()
-
createProperties
@POST @Consumes({"application/json","application/xml","application/x-www-form-urlencoded"}) @Produces({"text/html","application/json","application/xml"}) public ActionReportResult createProperties(List<Map<String,String>> data)
-
replaceProperties
@PUT @Consumes({"application/json","application/xml","application/x-www-form-urlencoded"}) @Produces({"text/html","application/json","application/xml"}) public ActionReportResult replaceProperties(List<Map<String,String>> data)
-
delete
@DELETE @Consumes({"application/json","application/xml","application/x-www-form-urlencoded","application/octet-stream"}) @Produces({"text/html","application/json","application/xml"}) public jakarta.ws.rs.core.Response delete()
-
clearThenSaveProperties
protected ActionReportResult clearThenSaveProperties(List<Map<String,String>> properties)
-
deleteMissingProperties
protected void deleteMissingProperties(Map<String,Property> existing, List<Map<String,String>> properties) throws TransactionFailure
- Throws:
TransactionFailure
-
-