|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.service.spring.RoleServiceImpl
@Transactional @Service(value="roleService") public class RoleServiceImpl
A RoleServiceImpl is a Spring supported transactional implementation of a
general RoleService
. Using Spring 2 annotation support autowires
collaborators, therefore XML configuration becomes obsolete. This class is
marked with Springs Service
annotation to benefit from Springs
exception translation intercepter. Traditional CRUD operations are delegated
to a RoleDao
instance.
This implementation can be autowired with the name "roleService".
RoleDao
Field Summary | |
---|---|
static String |
COMPONENT_NAME
Springs service name. |
Constructor Summary | |
---|---|
RoleServiceImpl()
|
Method Summary | |
---|---|
List<Role> |
findAll()
Return a list of all existing Role s. |
void |
remove(List<Role> roles)
Remove a list of Role s. |
Role |
save(Role role)
Save an already existed Role and return the saved instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMPONENT_NAME
Constructor Detail |
---|
public RoleServiceImpl()
Method Detail |
---|
public void remove(List<Role> roles)
Role
s.
remove
in interface RoleService
roles
- The list of Role
s to remove.
IllegalArgumentException
- when roles
is null
public Role save(Role role)
Role
and return the saved instance.
save
in interface RoleService
role
- The Role
to be saved
Role
IllegalArgumentException
- when role
is null
@Transactional(readOnly=true) public List<Role> findAll()
Role
s.
Marked as readOnly
transactional method.
findAll
in interface RoleService
Role
s or an empty list when no Role
s
exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |