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 allMandants by name (case insensitive).MandantgetByName(UserContext uc, String name)Method for determining aMandantby his name (case insensitive).MandantgetByUUID(UserContext uc, String uuid)MandantgetByUUID(UserContext uc, UUID uuid)@NotNull Map<String,String>getCustomAttributes(UserContext uc, Mandant client)Gets the custom properties of this client.booleanisCreationAllowed(UserContext uc, Mandant mandant)voidupdateClientLastUserLogin(Collection<Mandant> clients)-
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:IMandantHandlerMethod for determining aMandantby his name (case insensitive).- Specified by:
getByNamein interfaceIMandantHandler- Parameters:
uc-UserContextthe user context in which the action is to be performed.name-Stringthe name of theMandant(case insensitive).- Returns:
Mandantwhich was searched.
-
getAllByName
public List<Mandant> getAllByName(UserContext uc, String name)
Description copied from interface:IMandantHandlerMethod for determining allMandants by name (case insensitive).- Specified by:
getAllByNamein interfaceIMandantHandler- Parameters:
uc-UserContextthe user context in which the action is to be performed.name-Stringthe name which is to searched (case insensitive).- Returns:
ListofMandantwhich were found.
-
getCustomAttributes
@NotNull public @NotNull Map<String,String> getCustomAttributes(UserContext uc, Mandant client)
Description copied from interface:IMandantHandlerGets the custom properties of this client. This method is needed when the map of the custom properties hasn't yet been initialized.- Specified by:
getCustomAttributesin 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:
isCreationAllowedin interfaceIMandantHandler
-
getByUUID
public Mandant getByUUID(UserContext uc, String uuid)
- Specified by:
getByUUIDin interfaceIMandantHandler
-
getByUUID
public Mandant getByUUID(UserContext uc, UUID uuid)
- Specified by:
getByUUIDin interfaceIMandantHandler
-
updateClientLastUserLogin
public void updateClientLastUserLogin(Collection<Mandant> clients)
- Specified by:
updateClientLastUserLoginin interfaceIMandantHandler
-
-