Class DefaultLoadOptions
- java.lang.Object
-
- org.uberfire.security.client.authz.tree.impl.DefaultLoadOptions
-
- All Implemented Interfaces:
LoadOptions
public class DefaultLoadOptions extends Object implements LoadOptions
-
-
Constructor Summary
Constructors Constructor Description DefaultLoadOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxNodes()The maximum number of nodes to load.StringgetNodeNamePattern()A string pattern used to match the nodes to load.Collection<String>getResourceIds()The resource identifiers to take into account when loading the children nodes.voidsetMaxNodes(int maxNodes)voidsetNodeNamePattern(String nodeNamePattern)voidsetResourceIds(Collection<String> resourceIds)
-
-
-
Method Detail
-
getNodeNamePattern
public String getNodeNamePattern()
Description copied from interface:LoadOptionsA string pattern used to match the nodes to load.- Specified by:
getNodeNamePatternin interfaceLoadOptions- Returns:
- A string used to compare against the node name. If null or empty then this option is ruled out.
-
setNodeNamePattern
public void setNodeNamePattern(String nodeNamePattern)
-
getResourceIds
public Collection<String> getResourceIds()
Description copied from interface:LoadOptionsThe resource identifiers to take into account when loading the children nodes.- Specified by:
getResourceIdsin interfaceLoadOptions- Returns:
- A collection of ids If null or empty then this option is ruled out.
-
setResourceIds
public void setResourceIds(Collection<String> resourceIds)
-
getMaxNodes
public int getMaxNodes()
Description copied from interface:LoadOptionsThe maximum number of nodes to load.NOTE: It can only be used in combination with the
LoadOptions.getNodeNamePattern()option.- Specified by:
getMaxNodesin interfaceLoadOptions- Returns:
- A positive integer. If 0 or negative integer then all nodes are loaded.
-
setMaxNodes
public void setMaxNodes(int maxNodes)
-
-