Package org.opennms.web.svclayer
Interface AdminCategoryService
-
- All Known Implementing Classes:
DefaultAdminCategoryService
@Transactional(readOnly=true) public interface AdminCategoryService
AdminCategoryService interface.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- DJ Gregor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OnmsCategory
addNewCategory(java.lang.String name)
addNewCategoryjava.util.List<OnmsCategory>
findAllCategories()
findAllCategoriesjava.util.List<OnmsNode>
findAllNodes()
findAllNodesjava.util.List<OnmsCategory>
findByNode(int nodeId)
findByNodeDefaultAdminCategoryService.EditModel
findCategoryAndAllNodes(java.lang.String categoryIdString)
findCategoryAndAllNodesDefaultAdminCategoryService.NodeEditModel
findNodeCategories(java.lang.String nodeIdString)
findNodeCategoriesDefaultAdminCategoryService.CategoryAndMemberNodes
getCategory(java.lang.String categoryIdString)
getCategoryOnmsCategory
getCategoryWithName(java.lang.String newCategoryName)
getCategoryWithNamevoid
performEdit(java.lang.String editAction, java.lang.String editAction2, java.lang.String[] toAdd, java.lang.String[] toDelete)
performEditvoid
performNodeEdit(java.lang.String nodeIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.String[] toDelete)
performNodeEditvoid
removeCategory(java.lang.String categoryIdString)
removeCategory
-
-
-
Method Detail
-
getCategory
DefaultAdminCategoryService.CategoryAndMemberNodes getCategory(java.lang.String categoryIdString)
getCategory
- Parameters:
categoryIdString
- aString
object.- Returns:
- a
DefaultAdminCategoryService.CategoryAndMemberNodes
object.
-
findAllNodes
java.util.List<OnmsNode> findAllNodes()
findAllNodes
- Returns:
- a
List
object.
-
findCategoryAndAllNodes
DefaultAdminCategoryService.EditModel findCategoryAndAllNodes(java.lang.String categoryIdString)
findCategoryAndAllNodes
- Parameters:
categoryIdString
- aString
object.- Returns:
- a
DefaultAdminCategoryService.EditModel
object.
-
performEdit
@Transactional(readOnly=false) void performEdit(java.lang.String editAction, java.lang.String editAction2, java.lang.String[] toAdd, java.lang.String[] toDelete)
performEdit
- Parameters:
editAction
- aString
object.editAction2
- aString
object.toAdd
- an array ofString
objects.toDelete
- an array ofString
objects.
-
addNewCategory
@Transactional(readOnly=false) OnmsCategory addNewCategory(java.lang.String name)
addNewCategory
- Parameters:
name
- aString
object.- Returns:
- a
OnmsCategory
object.
-
getCategoryWithName
OnmsCategory getCategoryWithName(java.lang.String newCategoryName)
getCategoryWithName
- Parameters:
newCategoryName
- aString
object.- Returns:
- a
OnmsCategory
object.
-
findAllCategories
java.util.List<OnmsCategory> findAllCategories()
findAllCategories
- Returns:
- a
List
object.
-
removeCategory
@Transactional(readOnly=false) void removeCategory(java.lang.String categoryIdString)
removeCategory
- Parameters:
categoryIdString
- aString
object.
-
findByNode
java.util.List<OnmsCategory> findByNode(int nodeId)
findByNode
- Parameters:
nodeId
- a int.- Returns:
- a
List
object.
-
findNodeCategories
DefaultAdminCategoryService.NodeEditModel findNodeCategories(java.lang.String nodeIdString)
findNodeCategories
- Parameters:
nodeIdString
- aString
object.- Returns:
- a
DefaultAdminCategoryService.NodeEditModel
object.
-
performNodeEdit
@Transactional(readOnly=false) void performNodeEdit(java.lang.String nodeIdString, java.lang.String editAction, java.lang.String[] toAdd, java.lang.String[] toDelete)
performNodeEdit
- Parameters:
nodeIdString
- aString
object.editAction
- aString
object.toAdd
- an array ofString
objects.toDelete
- an array ofString
objects.
-
-