Package com.axelor.auth.db.repo
Class UserTokenRepository
java.lang.Object
com.axelor.db.JpaRepository<UserToken>
com.axelor.auth.db.repo.AbstractUserTokenRepository
com.axelor.auth.db.repo.UserTokenRepository
- All Implemented Interfaces:
Repository<UserToken>
-
Field Summary
Fields inherited from class com.axelor.db.JpaRepository
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanPopulate the given json map with additional data.Validate the given json map before persisting.Methods inherited from class com.axelor.auth.db.repo.AbstractUserTokenRepository
findByName
-
Constructor Details
-
UserTokenRepository
public UserTokenRepository()
-
-
Method Details
-
findByKey
-
populate
Description copied from interface:RepositoryPopulate the given json map with additional data.This method is called before returning the json data as response.
- Specified by:
populatein interfaceRepository<UserToken>- Overrides:
populatein classJpaRepository<UserToken>- Parameters:
json- the json map to populatecontext- the context- Returns:
- the json map itself
-
validate
Description copied from interface:RepositoryValidate the given json map before persisting.This method is called before the json map is converted to model object.
- Specified by:
validatein interfaceRepository<UserToken>- Overrides:
validatein classJpaRepository<UserToken>- Parameters:
json- the json map to validatecontext- the context- Returns:
- validated json map
-
isPermitted
public boolean isPermitted()
-