Class PageResourceAccess
java.lang.Object
org.ametys.web.cache.monitoring.process.access.impl.PageResourceAccess
- All Implemented Interfaces:
ResourceAccess
Page resource access. Represent an access to a page on the back-office.
-
Constructor Summary
ConstructorDescriptionPageResourceAccess
(String internalUuid, String pageID, String path) Constructor -
Method Summary
Modifier and TypeMethodDescriptioncreatePageElementAccess
(String pageElementID, PageElementResourceAccess.PageElementType pageElementType) Create a page element resource access for this page resource access.Retrieves the name of the SQL statement to call.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
-
Constructor Details
-
PageResourceAccess
Constructor- Parameters:
internalUuid
- the internal UUIDpageID
- The page's idpath
- The page's path
-
-
Method Details
-
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
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
Set the rendering context- Parameters:
renderingContext
- the rendering context to set
-
setWorkspaceJCR
Set the jcr workspace- Parameters:
workspaceJCR
- The JCR workspace's name
-
setCacheable
Set the resource as cacheable or not.- Parameters:
cacheable
- true to set cacheable
-