public class ConfiguredJcrDeliveryEndpointDefinition extends info.magnolia.rest.registry.ConfiguredEndpointDefinition implements JcrDeliveryEndpointDefinition
Constructor and Description |
---|
ConfiguredJcrDeliveryEndpointDefinition() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getChildNodeTypes() |
int |
getDepth()
Defines the depth for child-nodes to be included in the responses.
|
long |
getLimit()
Defines the amount of results to return in a paginated result set.
|
List<String> |
getNodeTypes() |
int |
getReferenceDepth()
Defines the depth for resolving references..
|
List<ReferenceDefinition> |
getReferences() |
String |
getRootPath()
Defines the root path used to resolve the given node path parameter, and to execute queries.
|
List<String> |
getSystemProperties() |
String |
getWorkspace()
Defines the target workspace to serve content from.
|
boolean |
isBypassWorkspaceAcls()
Defines whether or not workspace permissions (ACLs) should be evaluated.
|
boolean |
isIncludeSystemProperties()
Defines whether jcr:—and mgnl:-prefixed properties will be included in responses.
|
boolean |
isReferenceRepeat() |
boolean |
isStrict()
Specifies whether to include only the exact node type and ignore sub types.
|
void |
setBypassWorkspaceAcls(boolean bypassWorkspaceAcls) |
void |
setChildNodeTypes(List<String> childNodeTypes) |
void |
setDepth(int depth) |
void |
setIncludeSystemProperties(boolean includeSystemProperties) |
void |
setLimit(long limit) |
void |
setNodeTypes(List<String> nodeTypes) |
void |
setReferenceDepth(int referenceDepth) |
void |
setReferenceRepeat(boolean referenceRepeat) |
void |
setReferences(List<ReferenceDefinition> references) |
void |
setRootPath(String rootPath) |
void |
setStrict(boolean strict) |
void |
setSystemProperties(List<String> systemProperties) |
void |
setWorkspace(String workspace) |
getEndpointPath, getImplementationClass, getName, isEnabled, setEnabled, setEndpointPath, setImplementationClass, setName
public ConfiguredJcrDeliveryEndpointDefinition()
public String getWorkspace()
JcrDeliveryEndpointDefinition
getWorkspace
in interface JcrDeliveryEndpointDefinition
public void setWorkspace(String workspace)
public String getRootPath()
JcrDeliveryEndpointDefinition
getRootPath
in interface JcrDeliveryEndpointDefinition
public void setRootPath(String rootPath)
public boolean isStrict()
JcrDeliveryEndpointDefinition
isStrict
in interface JcrDeliveryEndpointDefinition
public void setStrict(boolean strict)
public List<String> getNodeTypes()
getNodeTypes
in interface JcrDeliveryEndpointDefinition
public List<String> getChildNodeTypes()
getChildNodeTypes
in interface JcrDeliveryEndpointDefinition
public int getDepth()
JcrDeliveryEndpointDefinition
getDepth
in interface JcrDeliveryEndpointDefinition
public void setDepth(int depth)
public int getReferenceDepth()
JcrDeliveryEndpointDefinition
getReferenceDepth
in interface JcrDeliveryEndpointDefinition
public void setReferenceDepth(int referenceDepth)
public boolean isReferenceRepeat()
isReferenceRepeat
in interface JcrDeliveryEndpointDefinition
public void setReferenceRepeat(boolean referenceRepeat)
public long getLimit()
JcrDeliveryEndpointDefinition
getLimit
in interface JcrDeliveryEndpointDefinition
public void setLimit(long limit)
public boolean isIncludeSystemProperties()
JcrDeliveryEndpointDefinition
isIncludeSystemProperties
in interface JcrDeliveryEndpointDefinition
public void setIncludeSystemProperties(boolean includeSystemProperties)
public boolean isBypassWorkspaceAcls()
JcrDeliveryEndpointDefinition
This may be used to serve all content for the given workspace params to anonymous users;
until relevant JCR permissions for the anonymous user are set up.
Mind however that URI permissions are still evaluated.
The rest-anonymous role has a GET permission to '/.rest/delivery/*'.
isBypassWorkspaceAcls
in interface JcrDeliveryEndpointDefinition
public void setBypassWorkspaceAcls(boolean bypassWorkspaceAcls)
public List<ReferenceDefinition> getReferences()
getReferences
in interface JcrDeliveryEndpointDefinition
public void setReferences(List<ReferenceDefinition> references)
public List<String> getSystemProperties()
getSystemProperties
in interface JcrDeliveryEndpointDefinition
Copyright © 2020 Magnolia International Ltd.. All rights reserved.