mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added QName indexed Properties to AVMNodes.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3357 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
56
source/java/org/alfresco/repo/avm/AVMNodePropertyDAO.java
Normal file
56
source/java/org/alfresco/repo/avm/AVMNodePropertyDAO.java
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (C) 2006 Alfresco, Inc.
|
||||
*
|
||||
* Licensed under the Mozilla Public License version 1.1
|
||||
* with a permitted attribution clause. You may obtain a
|
||||
* copy of the License at
|
||||
*
|
||||
* http://www.alfresco.org/legal/license.txt
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
* either express or implied. See the License for the specific
|
||||
* language governing permissions and limitations under the
|
||||
* License.
|
||||
*/
|
||||
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.service.namespace.QName;
|
||||
|
||||
/**
|
||||
* DAO for AVMNodeProperty.
|
||||
* @author britt
|
||||
*/
|
||||
public interface AVMNodePropertyDAO
|
||||
{
|
||||
/**
|
||||
* Save the given AVMNodeProperty.
|
||||
* @param prop
|
||||
*/
|
||||
public void save(AVMNodeProperty prop);
|
||||
|
||||
/**
|
||||
* Get an AVMNodeProperty by owner and name.
|
||||
* @param owner An AVMNode.
|
||||
* @param name The QName.
|
||||
* @return The found AVMNodeProperty or null if not found.
|
||||
*/
|
||||
public AVMNodeProperty get(AVMNode node, QName name);
|
||||
|
||||
/**
|
||||
* Get a List of all properties for an owning node.
|
||||
* @param node The owning node.
|
||||
* @return A List of properties belonging to the given node.
|
||||
*/
|
||||
public List<AVMNodeProperty> get(AVMNode node);
|
||||
|
||||
/**
|
||||
* Update a property entry.
|
||||
* @param prop The property.
|
||||
*/
|
||||
public void update(AVMNodeProperty prop);
|
||||
}
|
Reference in New Issue
Block a user