예제 #1
0
def validationActionPointID(ap_id):
    if not ActionPointDao.getActionPointByID(ap_id):
        raise NotFoundException("Unable to find action point with given id")
    else:
        return True
예제 #2
0
def getActionPointByID(ap_id):
    validationActionPointID(ap_id)
    return ActionPointDao.getActionPointByID(ap_id)
예제 #3
0
def deleteActionPoint(ap_id):
    validationActionPointID(ap_id)
    ActionPointDao.deleteActionPoint(ap_id)
예제 #4
0
def updateActionPoint(ap_id, name):
    validationActionPointID(ap_id)
    validationActionPointName(name)
    ActionPointDao.updateActionPoint(ap_id, name)
예제 #5
0
def createActionPoint(name):
    validationActionPointName(name)
    ActionPointDao.createNewActionPoint(name)
예제 #6
0
def getListActionPoint():
    return ActionPointDao.getAllActionPoints()