Revision 68369e5d
Added by Andreas Kohlbecker over 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/utility/UserHelper.java | ||
---|---|---|
123 | 123 |
*/ |
124 | 124 |
public Collection<CdmAuthority> findUserPermissions(CdmBase cdmEntity, EnumSet<CRUD> crud); |
125 | 125 |
|
126 |
/** |
|
127 |
* Scans the currently authenticated user for CdmAuthorities which match the given parameters |
|
128 |
* |
|
129 |
* @param cdmType |
|
130 |
* @param crud |
|
131 |
* @return |
|
132 |
*/ |
|
133 |
public <T extends CdmBase> Collection<CdmAuthority> findUserPermissions(Class<T> cdmType, EnumSet<CRUD> crud); |
|
134 |
|
|
126 | 135 |
/** |
127 | 136 |
* @param newAuthority |
128 | 137 |
*/ |
Also available in: Unified diff
ref #7833 another method for UserHelper to scan for permissions