Package org.openwms.core.uaa
Interface GrantService
- All Known Implementing Classes:
GrantServiceImpl
public interface GrantService
A GrantService defines functionality to handle
GrantService
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull Grant
create
(@NotNull(groups=Create.class) @Valid Grant grant) Create a newGrant
.findAllFor
(@NotBlank String user) Find and return allGrant
s assigned to anUser
.Find and return all existingGrant
s.@NotNull Grant
findByPKey
(@NotBlank String pKey) Find and return aGrant
.
-
Method Details
-
findByPKey
Find and return aGrant
.- Parameters:
pKey
- The persistent key of the existing Grant- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- If the Grant does not exist
-
findAllGrants
Find and return all existingGrant
s.- Returns:
- All existing
Grant
s
-
findAllFor
Find and return allGrant
s assigned to anUser
.- Parameters:
user
- The User's name- Returns:
- All Grants assigned to the User
-
create
@NotNull @NotNull Grant create(@NotNull(groups=Create.class) @Valid @NotNull(groups=Create.class) @Valid Grant grant) Create a newGrant
.- Parameters:
grant
- The mandatory Grant- Returns:
- The created Grant instance
-