Package org.exoplatform.leadcapture.rest
Class LeadCaptureSettingsRest
- java.lang.Object
-
- org.exoplatform.leadcapture.rest.LeadCaptureSettingsRest
-
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class LeadCaptureSettingsRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
-
-
Constructor Summary
Constructors Constructor Description LeadCaptureSettingsRest(LeadCaptureSettingsService leadCaptureSettingsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetContext(javax.ws.rs.core.UriInfo uriInfo)javax.ws.rs.core.ResponsegetSettings(javax.ws.rs.core.UriInfo uriInfo)booleanisConfigured(LeadCaptureSettings settings)booleanisManager(String userName, String group)javax.ws.rs.core.Responsesave(javax.ws.rs.core.UriInfo uriInfo, LeadCaptureSettings settings)
-
-
-
Constructor Detail
-
LeadCaptureSettingsRest
public LeadCaptureSettingsRest(LeadCaptureSettingsService leadCaptureSettingsService)
-
-
Method Detail
-
getSettings
@RolesAllowed("administrators") public javax.ws.rs.core.Response getSettings(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception- Throws:
Exception
-
save
@RolesAllowed("administrators") public javax.ws.rs.core.Response save(@Context javax.ws.rs.core.UriInfo uriInfo, LeadCaptureSettings settings) throws Exception- Throws:
Exception
-
getContext
@RolesAllowed("ux-team") public javax.ws.rs.core.Response getContext(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception- Throws:
Exception
-
isConfigured
public boolean isConfigured(LeadCaptureSettings settings)
-
-