Package org.opencms.repository
Class A_CmsRepositorySession
- java.lang.Object
-
- org.opencms.repository.A_CmsRepositorySession
-
- All Implemented Interfaces:
I_CmsRepositorySession
- Direct Known Subclasses:
CmsRepositorySession
public abstract class A_CmsRepositorySession extends java.lang.Object implements I_CmsRepositorySession
Abstract implementation of the interfaceI_CmsRepositorySession
to provide the functionality of filtering items.- Since:
- 6.5.6
-
-
Constructor Summary
Constructors Constructor Description A_CmsRepositorySession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsRepositoryFilter
getFilter()
Returns the filter.protected boolean
isFiltered(java.lang.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 Detail
-
A_CmsRepositorySession
public A_CmsRepositorySession()
-
-
Method Detail
-
getFilter
public CmsRepositoryFilter getFilter()
Returns the filter.- Returns:
- the filter
-
setFilter
public void setFilter(CmsRepositoryFilter filter)
Sets the filter.- Parameters:
filter
- the filter to set
-
isFiltered
protected boolean isFiltered(java.lang.String path)
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
-
-