Package cronapp.framework.api
Class ApiManager
java.lang.Object
cronapi.ApiManager
cronapp.framework.api.ApiManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class cronapi.ApiManager
INTERVAL -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattemptFailed(User user) static ApiManagerstatic ApiManagerbyUserAndPassword(String username, String password) static ApiManagerbyUserAndPassword(String username, String password, String type, boolean autoSignUp, com.google.gson.JsonObject details) static voidcreateUser(Var fields) createUser(CronappUserDetails userDetails) static Collection<Var> Set<org.springframework.security.core.GrantedAuthority> static intgetFailedAttempts(User user) static List<org.springframework.security.core.GrantedAuthority> static Collection<Var> getRoles()static Collection<Var> getRoleSecurables(String rolename) static Collection<Var> getSecurables(String name) static Collection<Var> getSecurableViews(String name) getUser()getUser(CronappUserDetails userDetails) static VargetUserFromProvider(String providerName, String providerKey) static Collection<Var> getUserSecurables(String username) static booleanisUserLocked(User user) static voidstatic StringbooleanpasswordMatches(CharSequence rawPassword, String password) voidsetProviderInfo(String providerName, String providerKey) static voidunlockUser(User user) static voidupdateDevice(Device device) voidupdatePassword(String password) voidupdateTheme(String theme) Methods inherited from class cronapi.ApiManager
addInvalidatedToken, getInvalidatedTokens, isInvalidatedTokenCacheEnabled
-
Field Details
-
SECURABLE_ATTRIBUTE_NAME
- See Also:
-
SECURABLE_ATTRIBUTE_PATTERN
- See Also:
-
SECURABLE_ATTRIBUTE_TYPE
- See Also:
-
SECURABLE_TYPE_VIEW
- See Also:
-
-
Method Details
-
byUser
-
byUserAndPassword
public static ApiManager byUserAndPassword(String username, String password, String type, boolean autoSignUp, com.google.gson.JsonObject details) -
byUserAndPassword
-
getUserSecurables
-
getAuthenticatedSecurables
-
getSecurables
-
getUserFromProvider
-
getSecurableViews
-
getPublicAuthorities
-
getPublicSecurables
-
getRoleSecurables
-
normalize
-
updateDevice
-
passwordMatches
-
getUser
- Throws:
Exception
-
getUser
- Throws:
Exception
-
createUser
-
getRoles
-
getAuthorities
-
updateTheme
- Throws:
Exception
-
lockUser
-
getFailedAttempts
-
isUserLocked
-
unlockUser
-
attemptFailed
-
setProviderInfo
- Throws:
Exception
-
updatePassword
- Throws:
Exception
-
createUser
- Throws:
Exception
-