All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.anosite.api.session.ContentAwareAttribute Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package net.anotheria.anosite.api.session;

/**
 * Should be implemented by all Objects which are a representation of a content object of some kind.
 * The api will update all content aware attributes of a content change if the ContentChangeListener is connected.
 * @author lrosenberg
 *
 */
public interface ContentAwareAttribute {
	
	/**
	 * Called first, if this returns true, the object will be removed from any cache its in.
	 * @return boolean param
	 */
	boolean deleteOnChange();
	
	/**
	 * If delete on change returns false this method is called.
	 * @param documentName name
	 * @param documentId id
	 */
	void notifyContentChange(String documentName, String documentId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy