org.opencms.repository
Class A_CmsRepositorySession

java.lang.Object
  extended by 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 interface I_CmsRepositorySession to provide the functionality of filtering items.

Since:
6.5.6
Version:
$Revision: 1.10 $
Author:
Peter Bonrad

Constructor Summary
A_CmsRepositorySession()
           
 
Method Summary
 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, list, lock, move, save, unlock
 

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