Package org.opencms.repository
Class A_CmsRepositorySession
java.lang.Object
org.opencms.repository.A_CmsRepositorySession
- All Implemented Interfaces:
I_CmsRepositorySession
- Direct Known Subclasses:
CmsRepositorySession
Abstract implementation of the interface
I_CmsRepositorySession
to provide
the functionality of filtering items.- Since:
- 6.5.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the filter.protected boolean
isFiltered
(String path) Checks if a path is filtered out of the filter or not.void
setFilter
(CmsRepositoryFilter filter) Sets the filter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.repository.I_CmsRepositorySession
copy, create, delete, exists, getItem, getLock, getProperties, list, lock, move, save, unlock, updateProperties
-
Constructor Details
-
A_CmsRepositorySession
public A_CmsRepositorySession()
-
-
Method Details
-
getFilter
Returns the filter.- Returns:
- the filter
-
setFilter
Sets the filter.- Parameters:
filter
- the filter to set
-
isFiltered
Checks if a path is filtered out of the filter or not.- Parameters:
path
- the path of a resource to check- Returns:
- true if the name matches one of the given filter patterns
-