If you are using a portal that is listed in the certification table of the WDK for Portlets release notes, your portal environment is provided by the installer and you can simply use Documentum portlets and components in your application after running the installer.
If you are using a JSR-168 compliant portal that does not have an environment provided by Documentum, you must extend the Jsr168Environment class and provide methods that write user preferences using the portal-specific APIs. For an example, refer to Writing user-level preferences. If you are using a portal that is not JSR-168 compliant, you must extend the PortalEnvironment class and provide methods that both read and write user preferences. For examples, refer to Writing user-level preferences and Reading user-level preferences