| |
|
| java.lang.Object com.sun.portal.admin.common.util.AdminUtil com.sun.portal.admin.server.AdminServerUtil
AdminServerUtil | public class AdminServerUtil extends AdminUtil (Code) | | This class provides misc. utility methods for portal MBeans.
|
Method Summary | |
public static String | decrypt(String encryptedText) Decrypts the given encrypted text.
Parameters: encryptedText - the encrypted text to be decrypted. | public static String | encrypt(String clearText) Encrypts the given clear text.
Parameters: clearText - the clear text to be encrypted. | public static JMXConnector | getJMXConnector(String host) Returns a connected JMXConnector to the connector server
running on the given host. | public static String | getPassword() Returns the password of the currently authenticated user. | public static Set | getPortalServerInstances(String domainID, String portalID) Returns the portal server instances in the portal with the
given portal ID and in the portal domain with the given domain ID.
Parameters: domainID - domain ID of the portal domain. Parameters: portalID - portal ID of the portal. | public static SSOToken | getSSOToken() Returns the SSO token of the currently authenticated user. |
decrypt | public static String decrypt(String encryptedText)(Code) | | Decrypts the given encrypted text.
Parameters: encryptedText - the encrypted text to be decrypted. the decrypted clear text. |
encrypt | public static String encrypt(String clearText)(Code) | | Encrypts the given clear text.
Parameters: clearText - the clear text to be encrypted. the encrypted text. |
getJMXConnector | public static JMXConnector getJMXConnector(String host) throws SecurityException, IOException(Code) | | Returns a connected JMXConnector to the connector server
running on the given host. The connection is authenticated
using the JASS credentials from the current context. This
method is typically used by a portal MBean to make a connection
to the Portal Admin Server running on another host.
The caller is responsible for obtaining the
MBeanServerConnection and closing the returned JMXConnector.
Parameters: host - the host where the JMX connector server is running on. a connected JMXConnector. exception: NullPointerException - if host is null. exception: SecurityException - if an authentication error occurs. exception: IOException - if a connection error occurs. |
getPassword | public static String getPassword()(Code) | | Returns the password of the currently authenticated user. If
the user has not been authenticated, null is returned.
the password of the currently authenticated user;null if the user has not been authenticated. |
getPortalServerInstances | public static Set getPortalServerInstances(String domainID, String portalID) throws PortalDomainContextException(Code) | | Returns the portal server instances in the portal with the
given portal ID and in the portal domain with the given domain ID.
Parameters: domainID - domain ID of the portal domain. Parameters: portalID - portal ID of the portal. the IDs of the portal server instances. exception: NullPointerException - if domainID or portalID isnull . exception: NoSuchElementException - if there is no portal domainwith the given domain ID or noportal with the given portal ID. exception: PortalDomainContextException - if an error occurs whenreading the instance IDs. |
getSSOToken | public static SSOToken getSSOToken()(Code) | | Returns the SSO token of the currently authenticated user. If
the user has not been authenticated (i.e. no SSO token),
null is returned.
the SSOToken of the currently authenticated user;null if the user has not been authenticated. |
Methods inherited from com.sun.portal.admin.common.util.AdminUtil | public static ObjectName getAllResourcesPattern(String parentType, List parentPath) throws MalformedObjectNameException(Code)(Java Doc) public static List getChildPath(List parentPath, String childID)(Code)(Java Doc) protected static synchronized JMXConnector getConnector(String host, String authID, String password) throws SecurityException, IOException(Code)(Java Doc) public static ObjectName getDisplayProfileMBeanObjectName(String domainId, String portalId) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getInstanceMBeanObjectName(String domainID, String portalID, String instanceID) throws MalformedObjectNameException(Code)(Java Doc) public static String getParentType(String type)(Code)(Java Doc) public static PortalDomainContext getPortalDomainContext() throws Exception(Code)(Java Doc) public static ObjectName getPortalDomainMBeanObjectName(String domainID) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getPortalDomainsPattern() throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getPortalMBeanObjectName(String domainID, String portalID) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getPortalServerInstancesPattern(String domainID, String portalID) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getPortalsPattern(String domainID) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getResourceMBeanObjectName(String type, List path) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getResourcesPattern(String type, List parentPath) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getSearchDatabasePattern(String domainID, String searchServerID) throws MalformedObjectNameException(Code)(Java Doc) public static ObjectName getSearchServerPattern(String domainID) throws MalformedObjectNameException(Code)(Java Doc) public static boolean isLocal(String host) throws UnknownHostException(Code)(Java Doc) public static boolean isOnlySRAInstalled(PSConfigContext cc)(Code)(Java Doc) public static boolean isSRAInstalled(PSConfigContext cc)(Code)(Java Doc) public static boolean isSameHost(String host1, String host2) throws UnknownHostException(Code)(Java Doc)
|
|
|
|