Package org.apache.unomi.privacy.rest
Class PrivacyServiceEndPoint
- java.lang.Object
-
- org.apache.unomi.privacy.rest.PrivacyServiceEndPoint
-
@Produces("application/json") @Path("/privacy") public class PrivacyServiceEndPoint extends Object
REST API end point for privacy service
-
-
Constructor Summary
Constructors Constructor Description PrivacyServiceEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
activateAnonymousBrowsing(String profileId, boolean past, String scope)
void
anonymizeProfile(String profileId, String scope)
javax.ws.rs.core.Response
deactivateAnonymousBrowsing(String profileId, String scope)
javax.ws.rs.core.Response
deleteProfileData(String profileId, boolean withData, boolean purgeAll)
List<String>
getEventFilters(String profileId)
ServerInfo
getServerInfo()
List<ServerInfo>
getServerInfos()
Boolean
isAnonymousBrowsing(String profileId)
javax.ws.rs.core.Response
removeProperty(String profileId, String propertyName)
javax.ws.rs.core.Response
setEventFilters(String profileId, List<String> eventFilters)
void
setPrivacyService(PrivacyService privacyService)
-
-
-
Method Detail
-
setPrivacyService
public void setPrivacyService(PrivacyService privacyService)
-
getServerInfo
@GET @Path("/info") public ServerInfo getServerInfo()
-
getServerInfos
@GET @Path("/infos") public List<ServerInfo> getServerInfos()
-
deleteProfileData
@DELETE @Path("/profiles/{profileId}") public javax.ws.rs.core.Response deleteProfileData(@PathParam("profileId") String profileId, @QueryParam("withData") @DefaultValue("false") boolean withData, @QueryParam("purgeAll") @DefaultValue("false") boolean purgeAll)
-
anonymizeProfile
@POST @Path("/profiles/{profileId}/anonymize") public void anonymizeProfile(@PathParam("profileId") String profileId, @QueryParam("scope") String scope)
-
isAnonymousBrowsing
@GET @Path("/profiles/{profileId}/anonymousBrowsing") public Boolean isAnonymousBrowsing(@PathParam("profileId") String profileId)
-
activateAnonymousBrowsing
@POST @Path("/profiles/{profileId}/anonymousBrowsing") public javax.ws.rs.core.Response activateAnonymousBrowsing(@PathParam("profileId") String profileId, @QueryParam("anonymizePastBrowsing") @DefaultValue("false") boolean past, @QueryParam("scope") String scope)
-
deactivateAnonymousBrowsing
@DELETE @Path("/profiles/{profileId}/anonymousBrowsing") public javax.ws.rs.core.Response deactivateAnonymousBrowsing(@PathParam("profileId") String profileId, @QueryParam("scope") String scope)
-
getEventFilters
@GET @Path("/profiles/{profileId}/eventFilters") public List<String> getEventFilters(@PathParam("profileId") String profileId)
-
setEventFilters
@POST @Consumes("application/json") @Path("/profiles/{profileId}/eventFilters") public javax.ws.rs.core.Response setEventFilters(@PathParam("profileId") String profileId, List<String> eventFilters)
-
-