ro.isdc.wro.model.resource.support.change
Class ResourceChangeDetector

java.lang.Object
  extended by ro.isdc.wro.model.resource.support.change.ResourceChangeDetector

public class ResourceChangeDetector
extends Object

Since:
1.6.0
Author:
Alex Objelean

Constructor Summary
ResourceChangeDetector()
           
 
Method Summary
 boolean checkChangeForGroup(String uri, String groupName)
          Check if an uri from a particular group has changed.
 void reset()
          Notifies the ResourceChangeDetector that the change cycle completes and a new one is prepared.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceChangeDetector

public ResourceChangeDetector()
Method Detail

reset

public void reset()
Notifies the ResourceChangeDetector that the change cycle completes and a new one is prepared.


checkChangeForGroup

public boolean checkChangeForGroup(String uri,
                                   String groupName)
                            throws IOException
Check if an uri from a particular group has changed.

Parameters:
uri - the uri to check for change.
groupName - the name of the group where the uri belongs to.
Returns:
true if the change is detected for the provided uri.
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.