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 classPropertiesBagResource.PropertyResource
-
Field Summary
Fields Modifier and Type Field Description protected List<Dom>entitystatic LocalStringManagerImpllocalStringsprotected Domparentprotected StringtagName-
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 ActionReportResultclearThenSaveProperties(List<Map<String,String>> properties)ActionReportResultcreateProperties(List<Map<String,String>> data)jakarta.ws.rs.core.Responsedelete()protected voiddeleteMissingProperties(Map<String,Property> existing, List<Map<String,String>> properties)Objectget()List<Dom>getEntity()protected Map<String,Property>getExistingProperties()PropertiesBagResource.PropertyResourcegetProperty(String id)ActionReportResultreplaceProperties(List<Map<String,String>> data)voidsetEntity(List<Dom> p)voidsetParentAndTagName(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
-
-