mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Got rid of the NewInAVMStore table by folding it into the AVMNode
table. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -62,6 +62,11 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
*/
|
||||
private DbAccessControlList fACL;
|
||||
|
||||
/**
|
||||
* The Store that we're new in.
|
||||
*/
|
||||
private AVMStore fStoreNew;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
@@ -93,6 +98,7 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
time,
|
||||
time,
|
||||
time);
|
||||
fStoreNew = store;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -234,7 +240,7 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
*/
|
||||
public boolean getIsNew()
|
||||
{
|
||||
return AVMContext.fgInstance.fNewInAVMStoreDAO.getByNode(this) != null;
|
||||
return fStoreNew != null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -401,4 +407,22 @@ public abstract class AVMNodeImpl implements AVMNode, Serializable
|
||||
{
|
||||
return fACL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the store we are new in.
|
||||
* @param store The store we are new in.
|
||||
*/
|
||||
public void setStoreNew(AVMStore store)
|
||||
{
|
||||
fStoreNew = store;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the possibly null store we are new in.
|
||||
* @return The store we are new in.
|
||||
*/
|
||||
public AVMStore getStoreNew()
|
||||
{
|
||||
return fStoreNew;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user