Package org.openwms.core.uaa
Interface GrantService
- All Known Implementing Classes:
- GrantServiceImpl
public interface GrantService
A GrantService defines functionality to handle 
GrantServices.- Author:
- Heiko Scherrer
- 
Method SummaryModifier and TypeMethodDescription@NotNull Grantcreate(@NotNull(groups=Create.class) @Valid Grant grant) Create a newGrant.findAllFor(@NotBlank String user) Find and return allGrants assigned to anUser.Find and return all existingGrants.@NotNull GrantfindByPKey(@NotBlank String pKey) Find and return aGrant.
- 
Method Details- 
findByPKeyFind 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
 
- 
findAllGrantsFind and return all existingGrants.- Returns:
- All existing Grants
 
- 
findAllForFind and return allGrants 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
 
 
-