mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Got rid of a lot of no longer needed work in Lookup.add(). Minimized
the number of explicit session.flush()s. Fixed several places that were throwing uninformative exceptions. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3227 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -38,21 +38,6 @@ class LookupComponent
|
||||
*/
|
||||
private String fIndirection;
|
||||
|
||||
/**
|
||||
* The lowest layer index.
|
||||
*/
|
||||
private int fLowestLayerIndex;
|
||||
|
||||
/**
|
||||
* Whether this node is in a layer.
|
||||
*/
|
||||
private boolean fLayered;
|
||||
|
||||
/**
|
||||
* Whether this needs copying.
|
||||
*/
|
||||
private boolean fNeedsCopy;
|
||||
|
||||
/**
|
||||
* Create a new empty lookup component.
|
||||
*/
|
||||
@@ -78,45 +63,6 @@ class LookupComponent
|
||||
fIndirection = indirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is this component layered. I.e. has it seen a layer yet in
|
||||
* its lookup.
|
||||
* @return Whether this component is layered.
|
||||
*/
|
||||
public boolean isLayered()
|
||||
{
|
||||
return fLayered;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set whether this node is layered.
|
||||
* @param layered
|
||||
*/
|
||||
public void setLayered(boolean layered)
|
||||
{
|
||||
fLayered = layered;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the index of the lowest (in the path lookup sense) layer
|
||||
* seen at this component's point in the lookup.
|
||||
* @return the lowestLayerIndex
|
||||
*/
|
||||
public int getLowestLayerIndex()
|
||||
{
|
||||
return fLowestLayerIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the index of the lowest (in the path lookup sense) layer
|
||||
* seen at this components's point in the lookup.
|
||||
* @param lowestLayerIndex the lowestLayerIndex to set
|
||||
*/
|
||||
public void setLowestLayerIndex(int lowestLayerIndex)
|
||||
{
|
||||
fLowestLayerIndex = lowestLayerIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the path component name.
|
||||
* @return the name
|
||||
@@ -152,22 +98,4 @@ class LookupComponent
|
||||
{
|
||||
fNode = node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the needs copy bit.
|
||||
* @param needs Whether this component needs to be copied.
|
||||
*/
|
||||
public void setNeedsCopy(boolean needs)
|
||||
{
|
||||
fNeedsCopy = needs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Does this component need a copy.
|
||||
* @return Whether it does.
|
||||
*/
|
||||
public boolean getNeedsCopy()
|
||||
{
|
||||
return fNeedsCopy;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user