org.alfresco.repo.domain.avm
Class AbstractAVMLockDAOImpl

java.lang.Object
  extended by org.alfresco.repo.domain.avm.AbstractAVMLockDAOImpl
All Implemented Interfaces:
AVMLockDAO
Direct Known Subclasses:
AVMLockDAOImpl

public abstract class AbstractAVMLockDAOImpl
extends java.lang.Object
implements AVMLockDAO

Abstract implementation for AVMLock DAO.

Since:
3.4

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
AbstractAVMLockDAOImpl()
          Default constructor.
 
Method Summary
protected abstract  int deletePropertyUniqueContexts(java.lang.Long avmLocksValueId, java.lang.Long avmStoreNameId, java.lang.String dirPathToMatch, java.lang.String lockDataStoreKey, java.lang.String lockDataStoreValue)
           
 void removeLocks(java.lang.String avmStore, java.lang.String dirPathToMatch, java.util.Map lockDataToMatch)
          Remove all locks for a specific AVM store that start with a given directory path that also optionally match a map of lock data entries.
 void setPropertyValueDAO(PropertyValueDAO propertyValueDAO)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

AbstractAVMLockDAOImpl

public AbstractAVMLockDAOImpl()
Default constructor.

Method Detail

setPropertyValueDAO

public void setPropertyValueDAO(PropertyValueDAO propertyValueDAO)

removeLocks

public void removeLocks(java.lang.String avmStore,
                        java.lang.String dirPathToMatch,
                        java.util.Map lockDataToMatch)
Remove all locks for a specific AVM store that start with a given directory path that also optionally match a map of lock data entries.

Specified by:
removeLocks in interface AVMLockDAO
Parameters:
avmStore - the name of the AVM store
dirPathToMatch - optional - start with given directory path or null to match all
lockDataToMatch - optional - lock data to match (note: all entries must match) or null/empty to match all

deletePropertyUniqueContexts

protected abstract int deletePropertyUniqueContexts(java.lang.Long avmLocksValueId,
                                                    java.lang.Long avmStoreNameId,
                                                    java.lang.String dirPathToMatch,
                                                    java.lang.String lockDataStoreKey,
                                                    java.lang.String lockDataStoreValue)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.