Class PageResourceAccess
- java.lang.Object
-
- org.ametys.web.cache.monitoring.process.access.impl.PageResourceAccess
-
- All Implemented Interfaces:
ResourceAccess
public class PageResourceAccess extends Object implements ResourceAccess
Page resource access. Represent an access to a page on the back-office.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_cacheable
private String
_internalUuid
private String
_pageID
private String
_path
private String
_pathHash
private RenderingContext
_renderingContext
private String
_workspaceJCR
-
Constructor Summary
Constructors Constructor Description PageResourceAccess(String internalUuid, String pageID, String path)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 contextvoid
setWorkspaceJCR(String workspaceJCR)
Set the jcr workspace
-
-
-
Field Detail
-
_internalUuid
private final String _internalUuid
-
_renderingContext
private RenderingContext _renderingContext
-
_workspaceJCR
private String _workspaceJCR
-
_cacheable
private boolean _cacheable
-
-
Constructor Detail
-
PageResourceAccess
public PageResourceAccess(String internalUuid, String pageID, String path)
Constructor- Parameters:
internalUuid
- the internal UUIDpageID
- The page's idpath
- The page's path
-
-
Method Detail
-
getInsertStatementId
public String getInsertStatementId()
Description copied from interface:ResourceAccess
Retrieves the name of the SQL statement to call.- Specified by:
getInsertStatementId
in interfaceResourceAccess
- Returns:
- The name of the SQL statement to call.
-
getInsertStatementParameters
public Map<String,Object> getInsertStatementParameters()
Description copied from interface:ResourceAccess
Retrieves the map of parameters to use when executing the insert statement.- Specified by:
getInsertStatementParameters
in interfaceResourceAccess
- Returns:
- The map of parameters
-
createPageElementAccess
public PageElementResourceAccess createPageElementAccess(String pageElementID, PageElementResourceAccess.PageElementType pageElementType)
Create a page element resource access for this page resource access.- Parameters:
pageElementID
- the id of page elementpageElementType
- the type of page element resource access- Returns:
- the new PageElementAccess
-
setRenderingContext
public void setRenderingContext(RenderingContext renderingContext)
Set the rendering context- Parameters:
renderingContext
- the rendering context to set
-
setWorkspaceJCR
public void setWorkspaceJCR(String workspaceJCR)
Set the jcr workspace- Parameters:
workspaceJCR
- The JCR workspace's name
-
setCacheable
public void setCacheable(boolean cacheable)
Set the resource as cacheable or not.- Parameters:
cacheable
- true to set cacheable
-
-