org.eclipse.stardust.engine.api.runtime
Class ServiceFactoryLocator

java.lang.Object
  extended by org.eclipse.stardust.engine.api.runtime.ServiceFactoryLocator

public class ServiceFactoryLocator
extends Object

Provides an abstraction to retrieve ServiceFactory instances in plain Java or client container environments.

Version:
$Revision$
Author:
ubirkemeyer, rsauer

Method Summary
static ServiceFactory get(int loginType)
          Retrieves a service factory using separately provided credentials.
static ServiceFactory get(int loginType, Map properties)
          Retrieves a service factory using separately provided credentials.
static ServiceFactory get(Map credentials)
          Retrieves a service factory using explicitly provided credentials.
static ServiceFactory get(Map credentials, Map properties)
          Retrieves a service factory using explicitly provided credentials.
static ServiceFactory get(String user, String password)
          Retrieves a service factory using the given name/password pair as credentials.
static ServiceFactory get(String user, String password, Map properties)
          Retrieves a service factory using the given name/password pair as credentials.
static boolean hasMultipleIdentities()
          Indicates whether the currently configured CARNOT security configuration allows CARNOT services with different principals contrary to a single JVM wide principal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static ServiceFactory get(int loginType)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using separately provided credentials.

Parameters:
loginType -
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

get

public static ServiceFactory get(int loginType,
                                 Map properties)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using separately provided credentials.

Parameters:
loginType -
properties - Additional properties.
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

get

public static ServiceFactory get(Map credentials)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using explicitly provided credentials.

Credential usage is depending on the configured credential provider.

Parameters:
credentials - The credentials to be used.
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

get

public static ServiceFactory get(Map credentials,
                                 Map properties)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using explicitly provided credentials.

Credential usage is depending on the configured credential provider.

Parameters:
credentials - The credentials to be used.
properties - Additional properties.
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

get

public static ServiceFactory get(String user,
                                 String password)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using the given name/password pair as credentials.

Credential usage is depending on the configured credential provider.

Parameters:
user - The user name to be used.
password - The password to be used.
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

get

public static ServiceFactory get(String user,
                                 String password,
                                 Map properties)
                          throws org.eclipse.stardust.common.error.PublicException,
                                 org.eclipse.stardust.common.error.LoginFailedException
Retrieves a service factory using the given name/password pair as credentials.

Credential usage is depending on the configured credential provider.

Parameters:
user - The user name to be used.
password - The password to be used.
properties - Additional properties.
Returns:
A readily usable service factory.
Throws:
org.eclipse.stardust.common.error.PublicException
org.eclipse.stardust.common.error.LoginFailedException

hasMultipleIdentities

public static boolean hasMultipleIdentities()
                                     throws org.eclipse.stardust.common.error.PublicException
Indicates whether the currently configured CARNOT security configuration allows CARNOT services with different principals contrary to a single JVM wide principal.

Returns:
true if different principals are allowed.
Throws:
org.eclipse.stardust.common.error.PublicException


Copyright © 2017 Eclipse Stardust. All Rights Reserved.