Derek Hulley 87bee8092d Node cache changes (step): properties and aspects are retrieved with the node's version
- Perform basic node version check when reading properties and aspects from DB
 - This is just the start.  Next step is to change the key of the cache itself.
 - Includes fix for rev 31109: Use setNodeAclId() to set ACL IDs


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-10-11 10:58:48 +00:00

63 lines
1.8 KiB
Java

/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco.repo.domain.node;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.util.Pair;
/**
* Interface for beans carrying general information for <b>alf_node</b> data.
*
* @author andyh
*/
public interface Node extends NodeIdAndAclId
{
/**
* Helper method to get a key that includes the node and its current version number
*/
public NodeVersionKey getNodeVersionKey();
/**
* Helper method to force the instance to be read-only
*/
public void lock();
public abstract NodeRef getNodeRef();
public NodeRef.Status getNodeStatus();
public abstract Pair<Long, NodeRef> getNodePair();
public abstract Long getVersion();
public abstract StoreEntity getStore();
public abstract String getUuid();
public abstract Long getTypeQNameId();
public abstract Long getLocaleId();
public abstract Boolean getDeleted();
public abstract TransactionEntity getTransaction();
public abstract AuditablePropertiesEntity getAuditableProperties();
}