Package net.solarnetwork.ocpp.dao
Interface SystemUserDao
- All Superinterfaces:
net.solarnetwork.dao.GenericDao<SystemUser,Long>
DAO for
SystemUser entities.
The username property is expected to be treated as a unique key.
- Version:
- 1.1
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.dao.GenericDao
net.solarnetwork.dao.GenericDao.EntityEventType, net.solarnetwork.dao.GenericDao.StandardSortKey -
Field Summary
Fields inherited from interface net.solarnetwork.dao.GenericDao
ENTITY_EVENT_ENTITY_ID_PROPERTY, ENTITY_EVENT_ENTITY_PROPERTY, ENTITY_EVENT_TOPIC_TEMPLATE, SORT_BY_CREATED_ASCENDING, SORT_BY_CREATED_DESCENDING, SORT_BY_CREATED_ID_ASCENDING, SORT_BY_CREATED_ID_DESCENDING, SORT_BY_ID_ASCENDING, SORT_BY_ID_DESCENDING -
Method Summary
Modifier and TypeMethodDescriptiongetForUsername(String username) Get a system user by its unique username.getForUsernameAndChargePoint(String username, String chargePointIdentifier) Get a system user for a unique username that is associated with a given charge point.Methods inherited from interface net.solarnetwork.dao.GenericDao
delete, entityEventTopic, get, getAll, getObjectType, save
-
Method Details
-
getForUsername
Get a system user by its unique username.- Parameters:
username- the username to look for- Returns:
- the matching system user, or null if not found
-
getForUsernameAndChargePoint
Get a system user for a unique username that is associated with a given charge point.This method should only return the system user if it user exists and has
chargePointIdentifierconfigured inSystemUser.getAllowedChargePoints()and the charge point is not disabled (ChargePoint.isEnabled()is true).- Parameters:
username- the username to look forchargePointIdentifier- the associated charge point to restrict to- Returns:
- the matching system user, or null if not found
- Since:
- 1.1
-