mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix compilation errors in CLOUD2 (merge of r46917 missed method NodeDAO.getStorePair(StoreRef storeRef))
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@48615 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -733,6 +733,19 @@ public abstract class AbstractNodeDAOImpl implements NodeDAO, BatchingDAO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Pair<Long, StoreRef> getStorePair(StoreRef storeRef)
|
||||||
|
{
|
||||||
|
Pair<StoreRef, Node> rootNodePair = rootNodesCache.getByKey(storeRef);
|
||||||
|
if (rootNodePair == null)
|
||||||
|
{
|
||||||
|
throw new InvalidStoreRefException(storeRef);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return new Pair<Long, StoreRef>(rootNodePair.getSecond().getStore().getId(), rootNodePair.getFirst());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public boolean exists(StoreRef storeRef)
|
public boolean exists(StoreRef storeRef)
|
||||||
{
|
{
|
||||||
Pair<StoreRef, Node> rootNodePair = rootNodesCache.getByKey(storeRef);
|
Pair<StoreRef, Node> rootNodePair = rootNodesCache.getByKey(storeRef);
|
||||||
|
@@ -96,6 +96,8 @@ public interface NodeDAO extends NodeBulkLoader
|
|||||||
*/
|
*/
|
||||||
public List<Pair<Long, StoreRef>> getStores();
|
public List<Pair<Long, StoreRef>> getStores();
|
||||||
|
|
||||||
|
public Pair<Long, StoreRef> getStorePair(StoreRef storeRef);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find out if a store exists or not
|
* Find out if a store exists or not
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user