Class ClassificationRestServiceImpl
- java.lang.Object
-
- org.opennms.netmgt.flows.rest.internal.classification.ClassificationRestServiceImpl
-
- All Implemented Interfaces:
ClassificationRestService
public class ClassificationRestServiceImpl extends java.lang.Object implements ClassificationRestService
-
-
Constructor Summary
Constructors Constructor Description ClassificationRestServiceImpl(ClassificationService classificationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
classify(ClassificationRequestDTO classificationRequestDTO)
javax.ws.rs.core.Response
deleteGroup(int groupId)
javax.ws.rs.core.Response
deleteRule(int id)
javax.ws.rs.core.Response
deleteRules(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getGroup(int groupId, java.lang.String format, java.lang.String requestedFilename, java.lang.String acceptHeader)
javax.ws.rs.core.Response
getGroups(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
getProtocols()
javax.ws.rs.core.Response
getRule(int id)
javax.ws.rs.core.Response
getRules(javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
importRules(int groupId, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream inputStream)
javax.ws.rs.core.Response
saveGroup(GroupDTO groupDTO)
javax.ws.rs.core.Response
saveRule(RuleDTO ruleDTO)
javax.ws.rs.core.Response
updateGroup(int id, GroupDTO groupDTO)
javax.ws.rs.core.Response
updateRule(int id, RuleDTO newValue)
-
-
-
Constructor Detail
-
ClassificationRestServiceImpl
public ClassificationRestServiceImpl(ClassificationService classificationService)
-
-
Method Detail
-
getRules
public javax.ws.rs.core.Response getRules(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getRules
in interfaceClassificationRestService
-
getRule
public javax.ws.rs.core.Response getRule(int id)
- Specified by:
getRule
in interfaceClassificationRestService
-
saveRule
public javax.ws.rs.core.Response saveRule(RuleDTO ruleDTO)
- Specified by:
saveRule
in interfaceClassificationRestService
-
importRules
public javax.ws.rs.core.Response importRules(int groupId, javax.ws.rs.core.UriInfo uriInfo, java.io.InputStream inputStream)
- Specified by:
importRules
in interfaceClassificationRestService
-
deleteRules
public javax.ws.rs.core.Response deleteRules(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
deleteRules
in interfaceClassificationRestService
-
deleteRule
public javax.ws.rs.core.Response deleteRule(int id)
- Specified by:
deleteRule
in interfaceClassificationRestService
-
updateRule
public javax.ws.rs.core.Response updateRule(int id, RuleDTO newValue)
- Specified by:
updateRule
in interfaceClassificationRestService
-
classify
public javax.ws.rs.core.Response classify(ClassificationRequestDTO classificationRequestDTO)
- Specified by:
classify
in interfaceClassificationRestService
-
getGroups
public javax.ws.rs.core.Response getGroups(javax.ws.rs.core.UriInfo uriInfo)
- Specified by:
getGroups
in interfaceClassificationRestService
-
getGroup
public javax.ws.rs.core.Response getGroup(int groupId, java.lang.String format, java.lang.String requestedFilename, java.lang.String acceptHeader)
- Specified by:
getGroup
in interfaceClassificationRestService
-
saveGroup
public javax.ws.rs.core.Response saveGroup(GroupDTO groupDTO)
- Specified by:
saveGroup
in interfaceClassificationRestService
-
deleteGroup
public javax.ws.rs.core.Response deleteGroup(int groupId)
- Specified by:
deleteGroup
in interfaceClassificationRestService
-
updateGroup
public javax.ws.rs.core.Response updateGroup(int id, GroupDTO groupDTO)
- Specified by:
updateGroup
in interfaceClassificationRestService
-
getProtocols
public javax.ws.rs.core.Response getProtocols()
- Specified by:
getProtocols
in interfaceClassificationRestService
-
-