Ignore:
Timestamp:
12/01/11 12:57:50 (13 years ago)
Author:
vmipsl
Message:

BO User _ remove, add, modify
Exceptions

Location:
ether_megapoli/trunk/service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/service/implementation/com/ether/EtherServiceImpl.java

    r268 r275  
    260260    } 
    261261 
     262    @Transactional(rollbackFor = Exception.class) 
     263    public void removeUserById( @NotNull final Integer userId ) 
     264            throws ServiceException 
     265    { 
     266        try 
     267        { 
     268            _userDAO.deleteByPrimaryKey( userId ); 
     269        } 
     270        catch( PersistenceException e ) 
     271        { 
     272            throw new ServiceException( ServiceException.ServiceCode.PERSISTENCE, e ); 
     273        } 
     274    } 
     275 
     276    @Transactional(rollbackFor = Exception.class) 
     277    public void updateUser( @NotNull final User user ) 
     278            throws ServiceException 
     279    { 
     280        try 
     281        { 
     282            _userDAO.update( user ); 
     283        } 
     284        catch( PersistenceException e ) 
     285        { 
     286            throw new ServiceException( ServiceException.ServiceCode.PERSISTENCE, e ); 
     287        } 
     288    } 
     289 
    262290    @Required 
    263291    public void setPlateformDAO( final PlateformDAO plateformDAO ) 
  • ether_megapoli/trunk/service/interface/com/ether/EtherService.java

    r268 r275  
    7777    List<User> getUsersByState( @NotNull UserState userState ) 
    7878            throws ServiceException; 
     79 
     80    void removeUserById( @NotNull final Integer userId ) 
     81            throws ServiceException; 
     82 
     83    void updateUser( @NotNull final User user ) 
     84            throws ServiceException; 
    7985} 
Note: See TracChangeset for help on using the changeset viewer.