Class UsersFactory

java.lang.Object
software.nectar.java.factory.base.BaseFactory<User>
software.nectar.java.factory.UsersFactory

public class UsersFactory
extends BaseFactory<User>
  • Constructor Details

    • UsersFactory

      public UsersFactory​(java.lang.String key, java.lang.String secret)
  • Method Details

    • createUser

      public java.lang.String createUser​(java.lang.String firstName, java.lang.String lastName, java.lang.String username, java.lang.String password, java.lang.String phoneNo, java.lang.String imageUrl, java.lang.String email, boolean activated) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      java.io.IOException
      ApiResponseException
    • getUser

      public User getUser() throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      java.io.IOException
      ApiResponseException
    • updateUser

      public void updateUser​(java.lang.String firstName, java.lang.String lastName, java.lang.String username, java.lang.String password, java.lang.String phoneNo, java.lang.String imageUrl, java.lang.String email, boolean activated) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      java.io.IOException
      ApiResponseException
    • deleteUser

      public void deleteUser() throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.IOException, ApiResponseException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      java.io.IOException
      ApiResponseException
    • extractMultipleFrom

      public java.util.List<User> extractMultipleFrom​(org.json.JSONObject responseObj) throws ApiResponseException
      Specified by:
      extractMultipleFrom in class BaseFactory<User>
      Throws:
      ApiResponseException
    • extractFrom

      public User extractFrom​(org.json.JSONObject responseObj) throws ApiResponseException
      Specified by:
      extractFrom in class BaseFactory<User>
      Throws:
      ApiResponseException