public class PageResourceAccess extends Object implements ResourceAccess
Modifier and Type | Field and Description |
---|---|
private boolean |
_cacheable |
private String |
_internalUuid |
private String |
_pageID |
private String |
_path |
private String |
_pathHash |
private RenderingContext |
_renderingContext |
private String |
_workspaceJCR |
Constructor and Description |
---|
PageResourceAccess(String internalUuid,
String pageID,
String path)
Constructor
|
Modifier and Type | Method and Description |
---|---|
PageElementResourceAccess |
createPageElementAccess(String pageElementID,
PageElementResourceAccess.PageElementType pageElementType)
Create a page element resource access for this page resource access.
|
String |
getInsertStatementId()
Retrieves the name of the SQL statement to call.
|
Map<String,Object> |
getInsertStatementParameters()
Retrieves the map of parameters to use when executing the insert statement.
|
void |
setCacheable(boolean cacheable)
Set the resource as cacheable or not.
|
void |
setRenderingContext(RenderingContext renderingContext)
Set the rendering context
|
void |
setWorkspaceJCR(String workspaceJCR)
Set the jcr workspace
|
private final String _internalUuid
private RenderingContext _renderingContext
private String _workspaceJCR
private boolean _cacheable
public PageResourceAccess(String internalUuid, String pageID, String path)
internalUuid
- the internal UUIDpageID
- The page's idpath
- The page's pathpublic String getInsertStatementId()
ResourceAccess
getInsertStatementId
in interface ResourceAccess
public Map<String,Object> getInsertStatementParameters()
ResourceAccess
getInsertStatementParameters
in interface ResourceAccess
public PageElementResourceAccess createPageElementAccess(String pageElementID, PageElementResourceAccess.PageElementType pageElementType)
pageElementID
- the id of page elementpageElementType
- the type of page element resource accesspublic void setRenderingContext(RenderingContext renderingContext)
renderingContext
- the rendering context to setpublic void setWorkspaceJCR(String workspaceJCR)
workspaceJCR
- The JCR workspace's namepublic void setCacheable(boolean cacheable)
cacheable
- true to set cacheable