Package de.xima.fc.dao.impl
Class MandantDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Mandant,
,Long, IEntityContext> IGenericDao<Mandant>
,IMandantDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
Boolean flag that determines whether to delete all users that are only part of the client when deleting clients.static String
Collection of clients to check for user exclusivity when deleting clients and their users.static String
Comma separated String of all the user names that could not be deleted successfully.static String
Comma separated String of all the user names that have been deleted.Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllByName
(IEntityContext ec, String name) Method for determining allclients
by its name (case insensitive).getByUUID
(IEntityContext ec, String uuid) Returns the client with the given UUIDgetByUUID
(IEntityContext ec, UUID uuid) Returns the client with the given UUIDgetLicenseDataSnapshot
(IEntityContext ec, Mandant client) protected IFCDaoActionHook<Mandant>
protected IFCDaoActionHook<Mandant>
long
getUsedFileSize
(IEntityContext ec, Mandant mandant) boolean
isCreationAllowed
(IEntityContext ec, Mandant mandant) readByName
(IEntityContext ec, String name) Method for determining aclients
by its name (case insensitive).Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, read
Methods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Field Details
-
ENTITY_CONTEXT_PARAM_DELETE_EXCLUSIVE_USERS
Boolean flag that determines whether to delete all users that are only part of the client when deleting clients. -
ENTITY_CONTEXT_PARAM_DELETE_EXCLUSIVE_USERS_CLIENTS
Collection of clients to check for user exclusivity when deleting clients and their users. -
ENTITY_CONTEXT_PARAM_DELETE_EXCLUSIVE_USERS_RESULT_SUCCESS
Comma separated String of all the user names that have been deleted. -
ENTITY_CONTEXT_PARAM_DELETE_EXCLUSIVE_USERS_RESULT_ERROR
Comma separated String of all the user names that could not be deleted successfully.
-
-
Constructor Details
-
MandantDao
public MandantDao()
-
-
Method Details
-
isCreationAllowed
- Specified by:
isCreationAllowed
in interfaceIMandantDao
-
getLicenseDataSnapshot
- Specified by:
getLicenseDataSnapshot
in interfaceIMandantDao
-
readByName
Description copied from interface:IMandantDao
Method for determining aclients
by its name (case insensitive).- Specified by:
readByName
in interfaceIMandantDao
- Parameters:
ec
- Entity context to use for accessing the database.name
- The name of the client to search for (case insensitive).- Returns:
- The client with the given name, or
null
if no such client exists.
-
getAllByName
Description copied from interface:IMandantDao
Method for determining allclients
by its name (case insensitive).- Specified by:
getAllByName
in interfaceIMandantDao
- Parameters:
ec
- Entity context to use for accessing the database.name
- The name of the client to search for (case insensitive).- Returns:
- All clients with the given name, never
null
.
-
getByUUID
Description copied from interface:IMandantDao
Returns the client with the given UUID- Specified by:
getByUUID
in interfaceIMandantDao
- Parameters:
ec
- Entity context to use for accessing the database.uuid
-String
UUID of the client- Returns:
- The client with the given UUID, or
null
when no such client exists.
-
getByUUID
Description copied from interface:IMandantDao
Returns the client with the given UUID- Specified by:
getByUUID
in interfaceIMandantDao
- Parameters:
ec
- Entity context to use for accessing the database.uuid
- UUID of the client- Returns:
Mandant
for the given UUID
-
getPreActionHook
- Overrides:
getPreActionHook
in classGenericDao<Mandant>
-
getPostActionHook
- Overrides:
getPostActionHook
in classGenericDao<Mandant>
-
getUsedFileSize
- Specified by:
getUsedFileSize
in interfaceIMandantDao
-