Beispiel #1
0
 @Override
 @Transactional
 // @PreAuthorize("hasPermission('" + PayrollSectionName.US_STATE
 // + "', T(com.epayroll.constant.PermissionType).DELETE)")
 public void removeState(Long stateId) throws InstanceNotFoundException {
   stateDao.remove(stateId);
 }
Beispiel #2
0
 @Override
 @Transactional
 // @PreAuthorize("hasPermission('" + PayrollSectionName.US_STATE
 // + "', T(com.epayroll.constant.PermissionType).INSERT)")
 public UsState addState(UsState state) {
   stateDao.save(state);
   return state;
 }
Beispiel #3
0
 @Override
 @Transactional
 public List<UsState> findStates() {
   return stateDao.getEntities();
 }
Beispiel #4
0
 @Override
 @Transactional
 public UsState findState(Long id) throws InstanceNotFoundException {
   return stateDao.find(id);
 }
Beispiel #5
0
 @Override
 @Transactional
 public UsState updateState(UsState state) {
   return stateDao.update(state);
 }