| java.lang.Object com.sun.portal.admin.common.util.AdminUtil com.sun.portal.admin.common.util.AdminClientUtil
AdminClientUtil | public class AdminClientUtil extends AdminUtil (Code) | | This class provides misc. utility methods for Portal Admin Server clients.
|
Method Summary | |
public static long | downloadFile(MBeanServerConnection msc, String domainId, String fileName, int downloadSize, String destFileName) | public static String | encodeAuthenticationId(String userName, String domainID) Returns the encoded SASL authenticationID containing the given
user name and domainID.
Parameters: userName - user name of the user. Parameters: domainID - ID of the portal domain the user belongs to. | public static String | encodePassword(String password) Returns the encoded SASL password containing the given password.
Parameters: password - the password to log into the portal domain. | public static JMXConnector | getJMXConnector(String host, String domainID, String userID, String password) Returns a connected JMXConnector to the connector server
running on the given host. | public static JMXConnector | getJMXConnector(String domainID, String userID, String password) Returns a connected JMXConnector to the connector server
running on the local host. | public static JMXConnector | getJMXConnector(String userID, String password) Returns a connected JMXConnector to the connector server
running on the local host. | public static void | uploadDownloadCleanUp(MBeanServerConnection msc, String domainId, String id) | public static String[] | uploadFile(MBeanServerConnection msc, String domainId, File file, int uploadSize) |
encodeAuthenticationId | public static String encodeAuthenticationId(String userName, String domainID)(Code) | | Returns the encoded SASL authenticationID containing the given
user name and domainID.
Parameters: userName - user name of the user. Parameters: domainID - ID of the portal domain the user belongs to. the encoded SASL authenticationID. |
encodePassword | public static String encodePassword(String password)(Code) | | Returns the encoded SASL password containing the given password.
Parameters: password - the password to log into the portal domain. the encoded SASL password. |
getJMXConnector | public static JMXConnector getJMXConnector(String host, String domainID, String userID, String password) throws SecurityException, IOException(Code) | | Returns a connected JMXConnector to the connector server
running on the given host. The connection is authenticated
against the portal domain with the given domain ID using the
given user ID and password. The given user ID can either be
the user DN, or the uid attribute value (in that case, the
default org in the portal domain is assumed).
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. Parameters: domainID - the ID of the portal domain to authenticate against. Parameters: userID - the user ID (user DN or the uid attribute value). Parameters: password - the user password. a connected JMXConnector. exception: NullPointerException - if host, domainID, userID orpassword is null. exception: SecurityException - if an authentication error occurs. exception: IOException - if a connection error occurs. |
getJMXConnector | public static JMXConnector getJMXConnector(String domainID, String userID, String password) throws SecurityException, IOException(Code) | | Returns a connected JMXConnector to the connector server
running on the local host. The connection is authenticated
against the portal domain with the given domain ID using the
given user ID and password. The given user ID can either be
the user DN, or the uid attribute value (in that case, the
default org in the portal domain is assumed).
The caller is responsible for obtaining the
MBeanServerConnection and closing the returned JMXConnector.
Parameters: domainID - the ID of the portal domain to authenticate against. Parameters: userID - the user ID (user DN or the uid attribute value). Parameters: password - the user password. a connected JMXConnector. exception: NullPointerException - if domainID, userID or password is null. exception: SecurityException - if an authentication error occurs. exception: IOException - if a connection error occurs. |
getJMXConnector | public static JMXConnector getJMXConnector(String userID, String password) throws SecurityException, IOException(Code) | | Returns a connected JMXConnector to the connector server
running on the local host. The connection is authenticated
against the default portal domain using the given user ID and
password. The given user ID can either be the user DN, or the
uid attribute value (in that case, the default org in the
default portal domain is assumed).
The caller is responsible for obtaining the
MBeanServerConnection and closing the returned JMXConnector.
Parameters: userID - the user ID (user DN or the uid attribute value). Parameters: password - the user password. a connected JMXConnector. exception: NullPointerException - if userID or password is null. exception: SecurityException - if an authentication error occurs. exception: IOException - if a connection error occurs. |
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)
|
|
|