Package de.xima.fc.handler.entity
Class MandantHandler
- java.lang.Object
-
- de.xima.fc.handler.AMSApiHandler
-
- de.xima.fc.handler.entity.GenericHandler
-
- de.xima.fc.handler.entity.MandantHandler
-
- All Implemented Interfaces:
IAPIHandler
,IGenericHandler
,IMandantHandler
,Serializable
public class MandantHandler extends GenericHandler implements IMandantHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.handler.entity.GenericHandler
LOG
-
-
Constructor Summary
Constructors Constructor Description MandantHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Mandant>
getAllByName(UserContext uc, String name)
Method for determining allMandant
s by name (case insensitive).Mandant
getByName(UserContext uc, String name)
Method for determining aMandant
by his name (case insensitive).Mandant
getByUUID(UserContext uc, String uuid)
Mandant
getByUUID(UserContext uc, UUID uuid)
@NotNull Map<String,String>
getCustomAttributes(UserContext uc, Mandant client)
Gets the custom properties of this client.boolean
isCreationAllowed(UserContext uc, Mandant mandant)
-
Methods inherited from class de.xima.fc.handler.entity.GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, update
-
Methods inherited from class de.xima.fc.handler.AMSApiHandler
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.com.interfaces.IAPIHandler
getName
-
Methods inherited from interface de.xima.fc.handler.interfaces.entity.IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
-
-
-
Method Detail
-
getByName
public Mandant getByName(UserContext uc, String name)
Description copied from interface:IMandantHandler
Method for determining aMandant
by his name (case insensitive).- Specified by:
getByName
in interfaceIMandantHandler
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.name
-String
the name of theMandant
(case insensitive).- Returns:
Mandant
which was searched.
-
getAllByName
public List<Mandant> getAllByName(UserContext uc, String name)
Description copied from interface:IMandantHandler
Method for determining allMandant
s by name (case insensitive).- Specified by:
getAllByName
in interfaceIMandantHandler
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.name
-String
the name which is to searched (case insensitive).- Returns:
List
ofMandant
which were found.
-
getCustomAttributes
@NotNull public @NotNull Map<String,String> getCustomAttributes(UserContext uc, Mandant client)
Description copied from interface:IMandantHandler
Gets the custom properties of this client. This method is needed when the map of the custom properties hasn't yet been initialized.- Specified by:
getCustomAttributes
in interfaceIMandantHandler
- Parameters:
uc
- User context for database transactions.client
- the client to get the custom properties for.- Returns:
- a map of all the custom properties of the client.
-
isCreationAllowed
public boolean isCreationAllowed(UserContext uc, Mandant mandant)
- Specified by:
isCreationAllowed
in interfaceIMandantHandler
-
getByUUID
public Mandant getByUUID(UserContext uc, String uuid)
- Specified by:
getByUUID
in interfaceIMandantHandler
-
getByUUID
public Mandant getByUUID(UserContext uc, UUID uuid)
- Specified by:
getByUUID
in interfaceIMandantHandler
-
-