org.opencms.cmis
Class CmsCmisRenditionFilter

java.lang.Object
  extended by org.opencms.cmis.CmsCmisRenditionFilter

public class CmsCmisRenditionFilter
extends java.lang.Object

This class encapsulates the filter logic for CMIS rendition filters.


Constructor Summary
CmsCmisRenditionFilter(java.lang.String filterStr)
          Creates a new filter from the given filter string.
 
Method Summary
 boolean accept(java.lang.String kind, java.lang.String mimetype)
          Checks whether this filter accepts a given kind/mimetype combination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsCmisRenditionFilter

public CmsCmisRenditionFilter(java.lang.String filterStr)
Creates a new filter from the given filter string.

Parameters:
filterStr - the CMIS rendition filter string
Method Detail

accept

public boolean accept(java.lang.String kind,
                      java.lang.String mimetype)
Checks whether this filter accepts a given kind/mimetype combination.

Parameters:
kind - the kind
mimetype - the mime type
Returns:
true if the filter accepts the combination