Class SecurityScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Named("security")
    @Singleton
    public class SecurityScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Entry point for all security related script services and for the generic security script APIs.
    Since:
    6.1RC1
    Version:
    $Id: a232ea2ae33e13e6618ab5522cc333aa18ae9dbb $
    • Constructor Detail

      • SecurityScriptService

        public SecurityScriptService()
    • Method Detail

      • get

        public <S extends org.xwiki.script.service.ScriptService> S get​(String serviceName)
        Type Parameters:
        S - the type of the ScriptService
        Parameters:
        serviceName - the name of the sub ScriptService
        Returns:
        the ScriptService or null of none could be found
      • getQueryItemsLimit

        public int getQueryItemsLimit()
        Get the number used to control how many items are retrieved through queries (for example inside Velocity templates). This limit can be customized in the xwiki.properties file in order to allow retrieving more or less items. Default value is 100 (this number corresponds to the LiveTable/LiveData max items view limit). This is to avoid DOS attacks.
        Returns:
        the query items limit number.
        Since:
        13.10RC1