Class ApiManager

java.lang.Object
cronapi.ApiManager
cronapp.framework.api.ApiManager

public final class ApiManager extends ApiManager
  • Field Details

  • Method Details

    • byUser

      public static ApiManager byUser(String username)
    • byUserAndPassword

      public static ApiManager byUserAndPassword(String username, String password, String type, boolean autoSignUp, com.google.gson.JsonObject details)
    • byUserAndPassword

      public static ApiManager byUserAndPassword(String username, String password)
    • getUserSecurables

      public static Collection<Var> getUserSecurables(String username)
    • getAuthenticatedSecurables

      public static Collection<Var> getAuthenticatedSecurables()
    • getSecurables

      public static Collection<Var> getSecurables(String name)
    • getUserFromProvider

      public static Var getUserFromProvider(String providerName, String providerKey)
    • getSecurableViews

      public static Collection<Var> getSecurableViews(String name)
    • getPublicAuthorities

      public static List<org.springframework.security.core.GrantedAuthority> getPublicAuthorities()
    • getPublicSecurables

      public static Collection<Var> getPublicSecurables()
    • getRoleSecurables

      public static Collection<Var> getRoleSecurables(String rolename)
    • normalize

      public static String normalize(String s)
    • updateDevice

      public static void updateDevice(Device device)
    • passwordMatches

      public boolean passwordMatches(CharSequence rawPassword, String password)
    • getUser

      public User getUser() throws Exception
      Throws:
      Exception
    • getUser

      public User getUser(CronappUserDetails userDetails) throws Exception
      Throws:
      Exception
    • createUser

      public Var createUser(CronappUserDetails userDetails)
    • getRoles

      public Collection<String> getRoles()
    • getAuthorities

      public Set<org.springframework.security.core.GrantedAuthority> getAuthorities()
    • updateTheme

      public void updateTheme(String theme) throws Exception
      Throws:
      Exception
    • lockUser

      public static void lockUser(User user)
    • getFailedAttempts

      public static int getFailedAttempts(User user)
    • isUserLocked

      public static boolean isUserLocked(User user)
    • unlockUser

      public static void unlockUser(User user)
    • attemptFailed

      public static void attemptFailed(User user)
    • setProviderInfo

      public void setProviderInfo(String providerName, String providerKey) throws Exception
      Throws:
      Exception
    • updatePassword

      public void updatePassword(String password) throws Exception
      Throws:
      Exception
    • createUser

      public static void createUser(Var fields) throws Exception
      Throws:
      Exception