See: Description
| Interface | Description |
|---|---|
| LoginEntry |
Represents information for a single login of a user to mPower Remote Manager
|
| LoginLogManager |
Provides capability for retrieving history of login of users to mPRM.
|
This package provides API for managing login records, stored in particular login database, and describing users that have logged to mPRM. The functionality provided by this package is available through the methods of the LoginLogManager class and it can be accessed in two ways:
|
import com.prosyst.mprm.admin.login.LoginLogManager; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; ..... public LoginLogManager getLoginLogManager(BundleContext context) { LoginLogManager loginManager = null; ServiceReference logRef = context.getServiceReference(LoginLogManager.class.getName()); if (logRef != null) { loginManager = (LoginLogManager)context.getService(logRef); } return loginManager; } ..... |
com.prosyst.mprm.rac.RemoteAccessClient. An external stand-alone application can use this package by including system-rac.jar in its classpath.
|
import com.prosyst.mprm.admin.login.LoginLogManager; import com.prosyst.mprm.rac.RemoteAccessClient; import java.util.Hashtable; ..... public LoginLogManager getLoginLogManager(RemoteAccessClient rac) { LoginLogManager loginManager = null; if (rac != null) { loginManager = (LoginLogManager)rac.getService(LoginLogManager.class.getName()); } return loginManager; } ..... public static void main(String[] args) { //Open session using the system account. Hashtable credentials = new Hashtable(); credentials.put(RemoteAccessClient.USER_PASSWORD, "system"); RemoteAccessClient rac = RemoteAccessClient.connect("socket://mprm.acme.com:11449", "system", credentials, null); ... //Now the application can access mPRM LoginLogManager service LoginLogManager loginManager = getLoginLogManager(rac); ... //closing session rac.close(); } ..... |
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.