Class MandantDao
java.lang.Object
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Mandant, Long, IEntityContext>, IGenericDao<Mandant>, IMandantDao
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringBoolean flag that determines whether to delete all users that are only part of the client when deleting clients.static StringCollection of clients to check for user exclusivity when deleting clients and their users.static StringComma separated String of all the usernames that could not be deleted successfully.static StringComma separated String of all the usernames 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 allclientsby its name (case insensitive).getByDefaultFormTheme(IEntityContext ec, FormThemeReference formTheme) Finds all clients that have the given form theme configured as theirdefault form theme.getByDefaultFormThemePlugin(IEntityContext ec, String formThemePluginKey) Finds all clients that have one of the themes from the given form theme plugin configured as theirdefault form theme.getByUUID(IEntityContext ec, String uuid) Returns the client with the given UUIDgetByUUID(IEntityContext ec, UUID uuid) Returns the client with the given UUIDgetDefaultFormFormThemeByClient(IEntityContext ec, Mandant client) Finds the configured default form theme.getLicenseDataSnapshot(IEntityContext ec, Mandant client) protected IFCDaoActionHook<Mandant> protected IFCDaoActionHook<Mandant> longgetUsedFileSize(IEntityContext ec, Mandant mandant) booleanisCreationAllowed(IEntityContext ec, Mandant mandant) readByName(IEntityContext ec, String name) Method for determining aclientsby its name (case insensitive).Methods inherited from class GenericDao
getEntityRefs, readMethods 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, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateMethods inherited from interface IGenericDao
count, createOrUpdate, 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 usernames that have been deleted. -
ENTITY_CONTEXT_PARAM_DELETE_EXCLUSIVE_USERS_RESULT_ERROR
Comma separated String of all the usernames that could not be deleted successfully.
-
-
Constructor Details
-
MandantDao
public MandantDao()
-
-
Method Details
-
isCreationAllowed
- Specified by:
isCreationAllowedin interfaceIMandantDao
-
getDefaultFormFormThemeByClient
Description copied from interface:IMandantDaoFinds the configured default form theme. A default can be configured for each client (optional) and for the entire system as a fallback.- If a client was given and the client has a default form theme, return that.
- If the system-wide form theme was configured, return that.
- Otherwise, the system is misconfigured. Return the modern form theme.
- Specified by:
getDefaultFormFormThemeByClientin interfaceIMandantDao- Parameters:
ec- Entity context to use for accessing the database.client- The client scope where to look for the default form theme. Can be null, then only the system scope is considered.- Returns:
- The default form theme for the given client or the system-wide default form theme.
-
getByDefaultFormTheme
Description copied from interface:IMandantDaoFinds all clients that have the given form theme configured as theirdefault form theme. The returned list does not include clients that use the default system form theme.- Specified by:
getByDefaultFormThemein interfaceIMandantDao- Parameters:
ec- Entity context to use for accessing the database.formTheme- The form theme to search for.- Returns:
- All clients that have the given form theme configured as their default form theme.
-
getByDefaultFormThemePlugin
Description copied from interface:IMandantDaoFinds all clients that have one of the themes from the given form theme plugin configured as theirdefault form theme. The returned list does not include clients that use the default system form theme.- Specified by:
getByDefaultFormThemePluginin interfaceIMandantDao- Parameters:
ec- Entity context to use for accessing the database.formThemePluginKey- The key of the form theme plugin to search for.- Returns:
- All clients that have one of the themes from the given form theme plugin configured as their default form theme.
-
readByName
Description copied from interface:IMandantDaoMethod for determining aclientsby its name (case insensitive).- Specified by:
readByNamein 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
nullif no such client exists.
-
getAllByName
Description copied from interface:IMandantDaoMethod for determining allclientsby its name (case insensitive).- Specified by:
getAllByNamein 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:IMandantDaoReturns the client with the given UUID- Specified by:
getByUUIDin interfaceIMandantDao- Parameters:
ec- Entity context to use for accessing the database.uuid-StringUUID of the client- Returns:
- The client with the given UUID, or
nullwhen no such client exists.
-
getByUUID
Description copied from interface:IMandantDaoReturns the client with the given UUID- Specified by:
getByUUIDin interfaceIMandantDao- Parameters:
ec- Entity context to use for accessing the database.uuid- UUID of the client- Returns:
Mandantfor the given UUID
-
getUsedFileSize
- Specified by:
getUsedFileSizein interfaceIMandantDao
-
getLicenseDataSnapshot
- Specified by:
getLicenseDataSnapshotin interfaceIMandantDao
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<Mandant>
-
getPostActionHook
- Overrides:
getPostActionHookin classGenericDao<Mandant>
-