2.2.4.10. Lock Groups Or Users

This plugin is used to configure predefined groups or users for lock administration. To use the plugin in the component configuration, you must use the following target-component:


<target-component>org.exoplatform.services.cms.lock.LockService</target-component>

The configuration is applied mainly in core/core-configuration/src/main/webapp/WEB-INF/conf/wcm-core/core-services-configuration.xml.

Sample configuration:


<external-component-plugins>
    <target-component>org.exoplatform.services.cms.lock.LockService</target-component>
    <component-plugin>
        <name>predefinedLockGroupsOrUsersPlugin</name>
        <set-method>addLockGroupsOrUsersPlugin</set-method>
        <type>org.exoplatform.services.cms.lock.impl.LockGroupsOrUsersPlugin</type>
        <init-params>
            <object-param>
                <name>LockGroupsOrUsers.configuration</name>
                <description>configuration predefined groups or users for lock administrator</description>
                <object type="org.exoplatform.services.cms.lock.impl.LockGroupsOrUsersConfig">
                    <field name="settingLockList">
                        <collection type="java.util.ArrayList">
                            <value>
                                <string>*:/platform/administrators</string>
                            </value>
                        </collection>
                    </field>
                </object>
            </object-param>
        </init-params>
    </component-plugin>
</external-component-plugins>

In which:

Field Type Value Description
settingLockList ArrayList {java.util.ArrayList} The list of the groups or user to be locked.
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus