mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added API methods to query AVM store properties by key pattern.
Cleaned up some warnings in AVMInterpreter. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3765 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -840,6 +840,36 @@ public class AVMServiceImpl implements AVMService
|
||||
return fAVMRepository.getStoreProperty(store, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries a given store for properties with keys that match a given pattern.
|
||||
* @param store The name of the store.
|
||||
* @param keyPattern The sql 'like' pattern, inserted into a QName.
|
||||
* @return A Map of the matching key value pairs.
|
||||
*/
|
||||
public Map<QName, PropertyValue> queryStorePropertyKey(String store, QName keyPattern)
|
||||
{
|
||||
if (store == null || keyPattern == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Illegal null argument.");
|
||||
}
|
||||
return fAVMRepository.queryStorePropertyKey(store, keyPattern);
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries all AVM stores for properties with keys that matcha given pattern.
|
||||
* @param keyPattern The sql 'like' pattern, inserted into a QName.
|
||||
* @return A List of Pairs of Store name, Map.Entry.
|
||||
*/
|
||||
public Map<String, Map<QName, PropertyValue>>
|
||||
queryStoresPropertyKeys(QName keyPattern)
|
||||
{
|
||||
if (keyPattern == null)
|
||||
{
|
||||
throw new AVMBadArgumentException("Illegal null argument.");
|
||||
}
|
||||
return fAVMRepository.queryStoresPropertyKeys(keyPattern);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all the properties associated with a store.
|
||||
* @param store The name of the store.
|
||||
|
Reference in New Issue
Block a user