@ApplicationScoped public class TeamServiceBean extends EntityServiceBase<Team> implements TeamService
TeamService implemented as an injectable bean.| Constructor and Description |
|---|
TeamServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createTeam(Long divisionId,
View teamView) |
void |
deleteTeam(Long id) |
View |
findTeamById(Long id) |
void |
init() |
protected void |
onDelete(Team team) |
View |
updateTeam(Long id,
View teamView) |
create, delete, findById, getEntityManager, getViewContext, newEntity, setEntityManager, setViewContext, update@PostConstruct public void init()
public Object createTeam(Long divisionId, View teamView)
createTeam in interface TeamServicepublic View findTeamById(Long id) throws NoSuchEntityException
findTeamById in interface TeamServiceNoSuchEntityExceptionpublic View updateTeam(Long id, View teamView) throws NoSuchEntityException, UpdateConflictException
updateTeam in interface TeamServiceNoSuchEntityExceptionUpdateConflictExceptionpublic void deleteTeam(Long id)
deleteTeam in interface TeamServiceprotected void onDelete(Team team)
onDelete in class EntityServiceBase<Team>Copyright © 2014–2016. All rights reserved.