|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RoleManager<R extends Role<?>>
Provides convenience for dealing with roles assuming that.
| Method Summary | |
|---|---|
R |
getRole(DBReference baseEntry)
returns the first role found of the specified type or null |
Collection<R> |
getRoles(DBReference baseEntry)
returns a collection of roles for the given base entry or an empty collection |
boolean |
hasRoles(DBReference baseEntry)
determines whether there are roles of type R for the given base entry |
boolean |
isAllowMultipleRoles()
determines whether it is allowed or not to have multiple role instances of type R for one instance of the base type |
| Method Detail |
|---|
boolean hasRoles(DBReference baseEntry)
throws DatabaseException
DatabaseException
Collection<R> getRoles(DBReference baseEntry)
throws DatabaseException
DatabaseException
R getRole(DBReference baseEntry)
throws DatabaseException
null
DatabaseExceptionboolean isAllowMultipleRoles()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||