Package org.xwiki.security.script
Class SecurityScriptService
- java.lang.Object
-
- org.xwiki.security.script.SecurityScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("security") @Singleton public class SecurityScriptService extends Object implements org.xwiki.script.service.ScriptServiceEntry point for all security related script services and for the generic security script APIs.- Since:
- 6.1RC1
- Version:
- $Id: f003f9f41931f3d9615c699671ed4dc42c06b4ac $
-
-
Constructor Summary
Constructors Constructor Description SecurityScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S extends org.xwiki.script.service.ScriptService>
Sget(String serviceName)intgetQueryItemsLimit()Get the number used to control how many items are retrieved through queries (for example inside Velocity templates).
-
-
-
Field Detail
-
ROLEHINT
public static final String ROLEHINT
The role hint of this component.- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public <S extends org.xwiki.script.service.ScriptService> S get(String serviceName)
- Type Parameters:
S- the type of theScriptService- Parameters:
serviceName- the name of the subScriptService- Returns:
- the
ScriptServiceor null of none could be found
-
getQueryItemsLimit
@Unstable 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 thexwiki.propertiesfile in order to allow retrieving more or less items. Default value is100(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
-
-