Class PreferencesManager

    • Constructor Detail

      • PreferencesManager

        public PreferencesManager()
    • Method Detail

      • getPreferences

        @Deprecated
        public IPreferences getPreferences​(SessionConfig sessionConfig,
                                           java.lang.String resourceId,
                                           int resourceType)
                                    throws PortalException
        Deprecated.
        Description copied from interface: IPreferencesManager
        Returns the user preferences for a specified resource.
        Specified by:
        getPreferences in interface IPreferencesManager
        Parameters:
        sessionConfig - the user session information.
        resourceId - the resource id.
        resourceType - the resource type.
        Returns:
        the requested preferences.
        Throws:
        PortalException
      • delete

        @Deprecated
        public void delete​(SessionConfig sessionConfig,
                           java.lang.String resourceId,
                           int resourceType,
                           ITransaction transaction)
                    throws PortalException
        Deprecated.
        Description copied from interface: IPreferencesManager
        Deletes all preferences associated with the specified resource.
        Specified by:
        delete in interface IPreferencesManager
        Parameters:
        sessionConfig - the user session information.
        resourceId - the resource id.
        resourceType - the resource type. One of the IPreferences constants.
        transaction - transaction for persistence access.
        Throws:
        PortalException
      • copySharedInterfaceInstancePreferences

        public void copySharedInterfaceInstancePreferences​(java.lang.String srcInterfaceInstanceId,
                                                           java.lang.String destInterfaceInstanceId)
                                                    throws PortalException
        Description copied from interface: IPreferencesManagerSPI
        Copies the shared interface instance preferences from an interface instance to another.
        Specified by:
        copySharedInterfaceInstancePreferences in interface IPreferencesManagerSPI
        Parameters:
        srcInterfaceInstanceId - the source interface instance identifier.
        destInterfaceInstanceId - the destination interface instance identifier.
        Throws:
        PortalException
      • setSharedInterfaceInstancePreferences

        public void setSharedInterfaceInstancePreferences​(java.lang.String interfaceInstanceId,
                                                          java.util.Map<java.lang.String,​java.lang.String[]> sharedPreferences)
                                                   throws PortalException
        Description copied from interface: IPreferencesManagerSPI
        Sets the shared interface instance preferences for the given interface instance identifier. All existing shared preferences are removed or set to the given values.
        Specified by:
        setSharedInterfaceInstancePreferences in interface IPreferencesManagerSPI
        Parameters:
        interfaceInstanceId - the interface instance for which to set shared preferences
        sharedPreferences - the shared preferences
        Throws:
        PortalException