Class PageElementResourceAccess
java.lang.Object
org.ametys.web.cache.monitoring.process.access.impl.PageElementResourceAccess
- All Implemented Interfaces:
ResourceAccess
Page element resource access. Represent an access to a element of a page on the back-office.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type of a PageElementAccess. -
Constructor Summary
ConstructorDescriptionPageElementResourceAccess
(String uuid, String pageID, String peid, PageElementResourceAccess.PageElementType pet, RenderingContext rc, String ws) Constructor -
Method Summary
Modifier and TypeMethodDescriptionRetrieves 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
setCacheHit
(boolean hit) Set the cache hit to true/false
-
Constructor Details
-
PageElementResourceAccess
public PageElementResourceAccess(String uuid, String pageID, String peid, PageElementResourceAccess.PageElementType pet, RenderingContext rc, String ws) Constructor- Parameters:
uuid
- The internal UUIDpageID
- the page's idpeid
- the id of page elementpet
- the type of page elementrc
- the rendering contextws
- the JCR workspace's name
-
-
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
-
setCacheable
Set the resource as cacheable or not.- Parameters:
cacheable
- true to set cacheable
-
setCacheHit
Set the cache hit to true/false- Parameters:
hit
- true to enable cache hit
-