Package de.xima.fc.dao.interfaces
Interface IIndirectClientAuthorizationDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<IndirectClientAuthorization,
,Long, IEntityContext> IClientAuthorizationDao<IndirectClientAuthorization>
,IGenericDao<IndirectClientAuthorization>
- All Known Implementing Classes:
IndirectClientAuthorizationDao
public interface IIndirectClientAuthorizationDao
extends IClientAuthorizationDao<IndirectClientAuthorization>
DAO for reading and writing
IndirectClientAuthorization
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionfindUniqueName
(IEntityContext ec, Mandant client, String candidate, IndirectClientAuthorization exclude) Returns a name that is not taken by anotherIndirectClientAuthorization
in the given client other than the excluded authorization.getByUserProfile
(IEntityContext ec, org.pac4j.core.profile.UserProfile pac4jProfile) Returns all indirect client authorizations which match the profile based on the configured filter.boolean
isNameExisting
(IEntityContext ec, Mandant client, String name) Returns whether or not the given indirect client authorization name exists within the given clientMethods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from interface de.xima.fc.dao.interfaces.IClientAuthorizationDao
getAllByClient, getByUuid, getByUuid
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Method Details
-
getByUserProfile
List<IndirectClientAuthorization> getByUserProfile(IEntityContext ec, org.pac4j.core.profile.UserProfile pac4jProfile) Returns all indirect client authorizations which match the profile based on the configured filter.- Parameters:
ec
- entity context for database transactionspac4jProfile
- to check for- Returns:
- a list of indirect client authorizations which match the profile based on the configured filter.
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate, IndirectClientAuthorization exclude) Returns a name that is not taken by anotherIndirectClientAuthorization
in the given client other than the excluded authorization. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique indirect client authorization name should be generatedcandidate
-String
indirect client authorization name candiate to be made uniqueexclude
-IndirectClientAuthorization
indirect client authorization to be excluded from search- Returns:
- unique indirect client authorization name in the context of the given client
-
isNameExisting
Returns whether or not the given indirect client authorization name exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
-String
indirect client authorization name to check- Returns:
- whether or not the given name is unique
-