| java.lang.Object com.sun.portal.admin.server.mbeans.PSResource com.sun.portal.desktop.admin.mbeans.DesktopDynamic
Method Summary | |
public void | deleteTempFile(String tempFileName) Delete Temporary File. | public void | exportDesktop(String parFileName, Boolean verbose, Boolean fsOnly, Boolean dpOnly, String searchLevel) Export the desktop data. | public void | exportProvider(String parFileName, Boolean verbose, String dn, Boolean global, byte[][] exportfile) Export the provider/channel data. | public String | getArchiveFileVersion(String parFileName) Reads portal id from the archive file. | public Object | getAttribute(String attribute) | public AttributeList | getAttributes(String[] attributes) | public MBeanInfo | getMBeanInfo() | public void | importDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) Import the desktop data to the Portal Server systems. | public void | importProvider(String parFileName, Boolean verbose, Boolean overwrite, List operations, String dpnode) Import the provider data to the Portal Server systems.
This method is called from the client side which passes in a par file
In the case when the Portal Server Instances are installed in
different hosts, provider data will be restored back to all of the
involved hosts. | public void | init(PSConfigContext cc, PortalDomainContext pdc, List path) | public Object | invoke(String operationName, Object params, String signature) | public void | lImportDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, String portalId, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) Import the desktop data to the Portal Server systems. | public void | lImportProvider(String parFileName, Boolean verbose, Boolean overwrite, String portalId, List operations, String dpnode, Boolean extractDP) Import the provider data to the Portal Server systems to the specified dn. | public String | listPar(String parFileName, Boolean verbose, Boolean dpOnly, Boolean pbfilesOnly, Boolean warOnly, Boolean staticOnly) Describes the archive file. | public void | setAttribute(Attribute attribute) | public AttributeList | setAttributes(AttributeList attributes) |
BUFFER_SIZE | final public static int BUFFER_SIZE(Code) | | |
deleteTempFile | public void deleteTempFile(String tempFileName)(Code) | | Delete Temporary File.
|
exportDesktop | public void exportDesktop(String parFileName, Boolean verbose, Boolean fsOnly, Boolean dpOnly, String searchLevel) throws PSMBeanException(Code) | | Export the desktop data.
The desktop data that will be backed in this method includes:
- Display profiles on global, org, and role levels.
- Desktop service attributes: default channel name, edit
channel name, desktop type, and desktop canView value.
- SSO adapter service attributes: sso adapter templates, and
sso adapter configurations.
- Desktop template data: any files under subdirectory of /portals//desktop
- Desktop configuration file
- Desktop web-src directory
- Portlet war file
Parameters: parFileName - The par file name. Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: fsOnly - If true then only the file system data will bebacked up, otherwise all desktop data will be backed up. exception: PSMBeanException - If the export operation fails. |
exportProvider | public void exportProvider(String parFileName, Boolean verbose, String dn, Boolean global, byte[][] exportfile) throws PSMBeanException(Code) | | Export the provider/channel data.
The provider/channel data that will be backed in this method includes:
- Display profiles fragment for this provider/channel at the specified dn.
- Desktop web-src data
- Static files,templates for this provider/channel
Parameters: parFileName - The par file name. Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: dn - dn from where provider data needs to be backed up. Parameters: global - if global data needs to be backed up. Parameters: exportfile - 2-d array of export files streams . exception: PSMBeanException - If the export operation fails. |
importDesktop | public void importDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) throws PSMBeanException(Code) | | Import the desktop data to the Portal Server systems.
This method is called from the client side which passes in an
byte[] , the cient has to call this multiple times
until all data has been transferred from the client side.
When the portalId is specified, the archive file will be
imported to a specified portal. If the portalId
is null, then the import will be operated on the portal where the
archive file is exported from, and the portalId is read from the
archive file.
In the case when the Portal Server Instances are installed in
different hosts, the display profiles, the service attributes
are going to be restored, and the desktop file system data will
be restored back to all of the involved hosts. This method
handles the import operation for the local host, and then
delegate the call to other host by calling the internal
lImportDesktop() .
Parameters: byteArray - The buffer contains par file data. Parameters: rStr - A random number for the temp file name. Parameters: endOfStream - Indicating if this buffer the last to be passed. Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: fsOnly - If true then only the desktop file system data will be imported. If fasle the display profile and the serviceattributes will also be imported.This parameter is used because in one portal site thatinvolving multiple hosts, the data stored in a centralizedbackend storage will only need to be performed once, but thefile system data needs to be performed in individual host. Parameters: parFileName - The full path of the par file. Parameters: portalId - The portal on which the import operationshould be operated on. Parameters: cont - If there's miss-match of the schema, e.g., someorganizations/roles is missing from the target system, continuethe operation on existing orgs/roles or stop the operation. Parameters: searchLevel - The search level is used to set the scopewhen accessing to the display profile and service attribute data. Parameters: dpnode - The base dn for importing display profiles.when accessing to the display profile and service attribute data. exception: PSMBeanException - If the import operation fails. |
importProvider | public void importProvider(String parFileName, Boolean verbose, Boolean overwrite, List operations, String dpnode) throws PSMBeanException(Code) | | Import the provider data to the Portal Server systems.
This method is called from the client side which passes in a par file
In the case when the Portal Server Instances are installed in
different hosts, provider data will be restored back to all of the
involved hosts. This method handles the import operation for the local host,
and then delegate the call to other host by calling the internal
lImportProvider() .
Parameters: parFileName - The full path of the par file. Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: overwrite - If true then overwrite the entry .default is false. Parameters: operations - The operations used for importing provider data. Parameters: dpnode - The destination dn where provider is imported exception: PSMBeanException - If the import operation fails. |
lImportDesktop | public void lImportDesktop(Boolean verbose, Boolean fsOnly, Boolean dpOnly, Boolean overwrite, Boolean redeploy, String parFileName, String portalId, Boolean cont, String searchLevel, String dpnode, Boolean skipValidation) throws PSMBeanException(Code) | | Import the desktop data to the Portal Server systems.
This method is called from the server side where the par file
can be retrieved locally. This is used from the PortalDomain
MBean where create-portal is executed.
The difference between this method and the importDesktop()
method is:
First, the portalId is the newly created portal, the
portalId read from the archive file is ignored.
Secondly, there will be one Portal Server Instance created
along with the new Portal, so the data will be imported into
the newly created Portal Server Instance, and the file system
data will not be propagated to other hosts.
Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: fsOnly - If true then only the desktop file system data will be imported. If fasle the display profile and the serviceattributes will also be imported.This parameter is used because in one portal site thatinvolving multiple hosts, the data stored in a centralizedbackend storage will only need to be performed once, but thefile system data needs to be performed in individual host. Parameters: portalId - The portal on which the import operationshould be operated on. Parameters: parFileName - The full path of the par file. Parameters: cont - If there's miss-match of the schema, e.g., someorganizations/roles is missing from the target system, continuethe operation on existing orgs/roles or stop the operation. Parameters: searchLevel - The search level is used to set the scopewhen accessing to the display profile and service attribute data. exception: PSMBeanException - If the import operation fails. |
lImportProvider | public void lImportProvider(String parFileName, Boolean verbose, Boolean overwrite, String portalId, List operations, String dpnode, Boolean extractDP) throws PSMBeanException(Code) | | Import the provider data to the Portal Server systems to the specified dn.
This method is called from the server side where the par file
can be retrieved locally.
Parameters: parFileName - The full path of the par file. Parameters: verbose - If true then some par specific debuggingmessages will be generated, also debug level will be set to"FINEST". Parameters: portalId - The portal on which the import operationshould be operated on. Parameters: overwrite - If true then overwrite the entry .default is false. Parameters: operations - used for importing provider. Parameters: dpnode - destination dn where provider is imported Parameters: extractDP - flag to decide if dp related data is to be imported exception: PSMBeanException - If the import operation fails. |
Methods inherited from com.sun.portal.admin.server.mbeans.PSResource | public String getAttributeValue(String type, String name) throws PSMBeanException(Code)(Java Doc) public Set getAttributeValues(String type, String name) throws PSMBeanException(Code)(Java Doc) public String getDomainID()(Code)(Java Doc) public String getID()(Code)(Java Doc) public Map getMultipleAttributeValues(String type, Set names) throws PSMBeanException(Code)(Java Doc) public PSConfigContext getPSConfigContext()(Code)(Java Doc) public List getPath()(Code)(Java Doc) public PortalDomainContext getPortalDomainContext()(Code)(Java Doc) public String getStackTrace(Throwable t)(Code)(Java Doc) public void init(PSConfigContext cc, PortalDomainContext pdc, List path)(Code)(Java Doc) public Object invokeRemoteOperation(String host, ObjectName mBeanName, String operationName, Object[] params, String[] signature) throws PSMBeanException(Code)(Java Doc) protected boolean isResourceAvailable(String type, String id) throws PSMBeanException(Code)(Java Doc) public void setAttributeValue(String type, String name, String value) throws PSMBeanException(Code)(Java Doc) public void setAttributeValues(String type, String name, Set values) throws PSMBeanException(Code)(Java Doc) public void setMultipleAttributeValues(String type, Map attributes) throws PSMBeanException(Code)(Java Doc)
|
|
|