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 TypeMethodDescriptionboolean
Populate 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:Repository
Populate the given json map with additional data.This method is called before returning the json data as response.
- Specified by:
populate
in interfaceRepository<UserToken>
- Overrides:
populate
in classJpaRepository<UserToken>
- Parameters:
json
- the json map to populatecontext
- the context- Returns:
- the json map itself
-
validate
Description copied from interface:Repository
Validate the given json map before persisting.This method is called before the json map is converted to model object.
- Specified by:
validate
in interfaceRepository<UserToken>
- Overrides:
validate
in classJpaRepository<UserToken>
- Parameters:
json
- the json map to validatecontext
- the context- Returns:
- validated json map
-
isPermitted
public boolean isPermitted()
-