Class PageElementResourceAccess
- java.lang.Object
-
- org.ametys.web.cache.monitoring.process.access.impl.PageElementResourceAccess
-
- All Implemented Interfaces:
ResourceAccess
public class PageElementResourceAccess extends Object implements ResourceAccess
Page element resource access. Represent an access to a element of a page on the back-office.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageElementResourceAccess.PageElementType
Type of a PageElementAccess.
-
Field Summary
Fields Modifier and Type Field Description private boolean
_cacheable
private boolean
_cacheHit
private String
_internalUuid
private String
_pageElementID
private PageElementResourceAccess.PageElementType
_pageElementType
private String
_pageID
private RenderingContext
_renderingContext
private String
_workspaceJCR
-
Constructor Summary
Constructors Constructor Description PageElementResourceAccess(String uuid, String pageID, String peid, PageElementResourceAccess.PageElementType pet, RenderingContext rc, String ws)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
setCacheHit(boolean hit)
Set the cache hit to true/false
-
-
-
Field Detail
-
_internalUuid
private final String _internalUuid
-
_pageElementID
private final String _pageElementID
-
_pageElementType
private final PageElementResourceAccess.PageElementType _pageElementType
-
_renderingContext
private final RenderingContext _renderingContext
-
_workspaceJCR
private final String _workspaceJCR
-
_cacheable
private boolean _cacheable
-
_cacheHit
private boolean _cacheHit
-
-
Constructor Detail
-
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 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
-
setCacheable
public void setCacheable(boolean cacheable)
Set the resource as cacheable or not.- Parameters:
cacheable
- true to set cacheable
-
setCacheHit
public void setCacheHit(boolean hit)
Set the cache hit to true/false- Parameters:
hit
- true to enable cache hit
-
-