Class SaperionClientFactoryImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SaperionClient changePassword​(java.lang.String userName, java.lang.String oldPassword, java.lang.String newPassword, com.lexmark.saperion.LicenseEnumeration licenseType, java.lang.String tenant)
      This method creates a new saperion client with a new session in the context of the given user credentials.
      SaperionClient newClient​(java.lang.String token, com.lexmark.saperion.LicenseEnumeration licenseType, java.lang.String tenant)
      This method creates a new saperion client with a new session in the context of the given user credentials.
      SaperionClient newClient​(java.lang.String userName, java.lang.String password, com.lexmark.saperion.LicenseEnumeration licenseType)
      This method creates a new saperion client with a new session in the context of the given user credentials.
      SaperionClient newClient​(java.lang.String userName, java.lang.String password, com.lexmark.saperion.LicenseEnumeration licenseType, java.lang.String tenant)
      This method creates a new saperion client with a new session in the context of the given user credentials.
      SaperionClient newClient​(java.lang.String userName, java.lang.String password, com.lexmark.saperion.LicenseEnumeration licenseType, java.lang.String tenant, java.lang.String impersonatedUser)
      This method creates a new saperion client with a new session in the context of the given user credentials.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaperionClientFactoryImpl

        public SaperionClientFactoryImpl​(Connector connector)
    • Method Detail

      • newClient

        public SaperionClient newClient​(java.lang.String userName,
                                        java.lang.String password,
                                        com.lexmark.saperion.LicenseEnumeration licenseType,
                                        java.lang.String tenant)
                                 throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: SaperionClientFactory
        This method creates a new saperion client with a new session in the context of the given user credentials.
        Specified by:
        newClient in interface SaperionClientFactory
        Parameters:
        userName - the name of the user
        password - the password of the user
        licenseType - the saperion license to use for the session
        tenant - the name of the tenant
        Returns:
        a client in the context of the given credentials
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • newClient

        public SaperionClient newClient​(java.lang.String userName,
                                        java.lang.String password,
                                        com.lexmark.saperion.LicenseEnumeration licenseType)
                                 throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: SaperionClientFactory
        This method creates a new saperion client with a new session in the context of the given user credentials. On multi-tenant-systems, use SaperionClientFactory.newClient(String, String, LicenseEnumeration, String) instead.
        Specified by:
        newClient in interface SaperionClientFactory
        Parameters:
        userName - the name of the user
        password - the password of the user
        licenseType - the saperion license to use for the session
        Returns:
        a client in the context of the given credentials
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • newClient

        public SaperionClient newClient​(java.lang.String userName,
                                        java.lang.String password,
                                        com.lexmark.saperion.LicenseEnumeration licenseType,
                                        java.lang.String tenant,
                                        java.lang.String impersonatedUser)
                                 throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: SaperionClientFactory
        This method creates a new saperion client with a new session in the context of the given user credentials.
        Specified by:
        newClient in interface SaperionClientFactory
        Parameters:
        userName - the name of the user
        password - the password of the user
        licenseType - the saperion license to use for the session
        tenant - the name of the tenant
        impersonatedUser - the name of the impersonated user
        Returns:
        a client in the context of the given credentials
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • newClient

        public SaperionClient newClient​(java.lang.String token,
                                        com.lexmark.saperion.LicenseEnumeration licenseType,
                                        java.lang.String tenant)
                                 throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: SaperionClientFactory
        This method creates a new saperion client with a new session in the context of the given user credentials.
        Specified by:
        newClient in interface SaperionClientFactory
        Parameters:
        token - a token retrieved from an authorization service
        licenseType - the saperion license to use for the session
        tenant - the name of the tenant
        Returns:
        a client in the context of the given credentials
        Throws:
        com.lexmark.saperion.exceptions.EcmException
      • changePassword

        public SaperionClient changePassword​(java.lang.String userName,
                                             java.lang.String oldPassword,
                                             java.lang.String newPassword,
                                             com.lexmark.saperion.LicenseEnumeration licenseType,
                                             java.lang.String tenant)
                                      throws com.lexmark.saperion.exceptions.EcmException
        Description copied from interface: SaperionClientFactory
        This method creates a new saperion client with a new session in the context of the given user credentials. It also changes the users password. This is the only possibility a user whose password is expired has to log in and change his password.
        Specified by:
        changePassword in interface SaperionClientFactory
        Parameters:
        userName - the name of the user
        oldPassword - the current (possibly expired) password of the user
        newPassword - the new password of the user
        licenseType - the saperion license to use for the session
        tenant - the name of the tenant
        Returns:
        a client in the context of the given credentials
        Throws:
        com.lexmark.saperion.exceptions.EcmException