mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.1 to HEAD:
6556: AVM performance tweaks 6557: WCM-758. 6558: Fixes WCM-753. 6559: better handling of rename, copy and paste for form instance data and renditions. addresses WCM-752 and partially addresses WCM-559. 6560: Renamed JndiTest.java until we decide to keep it or not. 6561: Oops. 6562: probable fix WCM-669 6563: Build fix after the removal of flushing suport 6564: Fix for WCM-728 6566: Support for avm index clustering via tracking - WCM-762 6567: Test fix after flush changes 6568: Fixed AWC-1517: Can now create space based on existing top-level space 6569: misc IE fixes. 6570: Various changes to improve AVM import performance and submit performance. 6571: Session flushing is now deprecated and doesn't fail with an exception. 6572: Reduced the iteration count to stress nextResults calls a bit more 6573: WS query sessions put back into cache after more results have been fetched. 6574: AR-1347: RepositoryServiceSoapBindingStub.queryAssociated() returns nothing when direction=target 6575: Fixed AR-1680: XPath metadata extraction now handles Node, NodeList and String return values 6577: Fix for AWC-1518 (User Homes renaming issue, and unreported issue with client config overriding of users home location) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6745 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,259 +1,259 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2007 Alfresco Software Limited.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program 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 General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing" */
|
||||
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* Hold a single version root.
|
||||
* @author britt
|
||||
*/
|
||||
class VersionRootImpl implements VersionRoot, Serializable
|
||||
{
|
||||
static final long serialVersionUID = 8826954538210455917L;
|
||||
|
||||
/**
|
||||
* The object id
|
||||
*/
|
||||
private Long fID;
|
||||
|
||||
/**
|
||||
* The version id.
|
||||
*/
|
||||
private int fVersionID;
|
||||
|
||||
/**
|
||||
* The creation date.
|
||||
*/
|
||||
private long fCreateDate;
|
||||
|
||||
/**
|
||||
* The creator.
|
||||
*/
|
||||
private String fCreator;
|
||||
|
||||
/**
|
||||
* The AVMStore.
|
||||
*/
|
||||
private AVMStore fAVMStore;
|
||||
|
||||
/**
|
||||
* The root node.
|
||||
*/
|
||||
private DirectoryNode fRoot;
|
||||
|
||||
/**
|
||||
* The short description.
|
||||
*/
|
||||
private String fTag;
|
||||
|
||||
/**
|
||||
* The thick description.
|
||||
*/
|
||||
private String fDescription;
|
||||
|
||||
/**
|
||||
* A default constructor.
|
||||
*/
|
||||
public VersionRootImpl()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Rich constructor.
|
||||
* @param store
|
||||
* @param root
|
||||
* @param versionID
|
||||
* @param createDate
|
||||
* @param creator
|
||||
*/
|
||||
public VersionRootImpl(AVMStore store,
|
||||
DirectoryNode root,
|
||||
int versionID,
|
||||
long createDate,
|
||||
String creator,
|
||||
String tag,
|
||||
String description)
|
||||
{
|
||||
fAVMStore = store;
|
||||
fRoot = root;
|
||||
fVersionID = versionID;
|
||||
fCreateDate = createDate;
|
||||
fCreator = creator;
|
||||
fTag = tag;
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
public long getCreateDate()
|
||||
{
|
||||
return fCreateDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(long createDate)
|
||||
{
|
||||
fCreateDate = createDate;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return fCreator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
fCreator = creator;
|
||||
}
|
||||
|
||||
public long getId()
|
||||
{
|
||||
return fID;
|
||||
}
|
||||
|
||||
public void setId(long id)
|
||||
{
|
||||
fID = id;
|
||||
}
|
||||
|
||||
public AVMStore getAvmStore()
|
||||
{
|
||||
return fAVMStore;
|
||||
}
|
||||
|
||||
public void setAvmStore(AVMStore store)
|
||||
{
|
||||
fAVMStore = store;
|
||||
}
|
||||
|
||||
public DirectoryNode getRoot()
|
||||
{
|
||||
return fRoot;
|
||||
}
|
||||
|
||||
public void setRoot(DirectoryNode root)
|
||||
{
|
||||
fRoot = root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the versionID.
|
||||
* @param versionID
|
||||
*/
|
||||
public void setVersionID(int versionID)
|
||||
{
|
||||
fVersionID = versionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the version id.
|
||||
* @return The version id.
|
||||
*/
|
||||
public int getVersionID()
|
||||
{
|
||||
return fVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check equality. Based on AVMStore equality and version id equality.
|
||||
* @param obj
|
||||
* @return Equality.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof VersionRoot))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
VersionRoot other = (VersionRoot)obj;
|
||||
return fAVMStore.equals(other.getAvmStore())
|
||||
&& fVersionID == other.getVersionID();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a hash code.
|
||||
* @return The hash code.
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return fAVMStore.hashCode() + fVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tag (short description).
|
||||
* @return The tag.
|
||||
*/
|
||||
public String getTag()
|
||||
{
|
||||
return fTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tag (short description).
|
||||
* @param tag The short description.
|
||||
*/
|
||||
public void setTag(String tag)
|
||||
{
|
||||
fTag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the thick description.
|
||||
* @return The thick description.
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return fDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the thick description.
|
||||
* @param description The thick discription.
|
||||
*/
|
||||
public void setDescription(String description)
|
||||
{
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("[VersionRoot:");
|
||||
builder.append(fAVMStore.getName());
|
||||
builder.append(':');
|
||||
builder.append(fVersionID);
|
||||
builder.append(']');
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Copyright (C) 2005-2007 Alfresco Software Limited.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program 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 General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing" */
|
||||
|
||||
package org.alfresco.repo.avm;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* Hold a single version root.
|
||||
* @author britt
|
||||
*/
|
||||
public class VersionRootImpl implements VersionRoot, Serializable
|
||||
{
|
||||
static final long serialVersionUID = 8826954538210455917L;
|
||||
|
||||
/**
|
||||
* The object id
|
||||
*/
|
||||
private Long fID;
|
||||
|
||||
/**
|
||||
* The version id.
|
||||
*/
|
||||
private int fVersionID;
|
||||
|
||||
/**
|
||||
* The creation date.
|
||||
*/
|
||||
private long fCreateDate;
|
||||
|
||||
/**
|
||||
* The creator.
|
||||
*/
|
||||
private String fCreator;
|
||||
|
||||
/**
|
||||
* The AVMStore.
|
||||
*/
|
||||
private AVMStore fAVMStore;
|
||||
|
||||
/**
|
||||
* The root node.
|
||||
*/
|
||||
private DirectoryNode fRoot;
|
||||
|
||||
/**
|
||||
* The short description.
|
||||
*/
|
||||
private String fTag;
|
||||
|
||||
/**
|
||||
* The thick description.
|
||||
*/
|
||||
private String fDescription;
|
||||
|
||||
/**
|
||||
* A default constructor.
|
||||
*/
|
||||
public VersionRootImpl()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Rich constructor.
|
||||
* @param store
|
||||
* @param root
|
||||
* @param versionID
|
||||
* @param createDate
|
||||
* @param creator
|
||||
*/
|
||||
public VersionRootImpl(AVMStore store,
|
||||
DirectoryNode root,
|
||||
int versionID,
|
||||
long createDate,
|
||||
String creator,
|
||||
String tag,
|
||||
String description)
|
||||
{
|
||||
fAVMStore = store;
|
||||
fRoot = root;
|
||||
fVersionID = versionID;
|
||||
fCreateDate = createDate;
|
||||
fCreator = creator;
|
||||
fTag = tag;
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
public long getCreateDate()
|
||||
{
|
||||
return fCreateDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(long createDate)
|
||||
{
|
||||
fCreateDate = createDate;
|
||||
}
|
||||
|
||||
public String getCreator()
|
||||
{
|
||||
return fCreator;
|
||||
}
|
||||
|
||||
public void setCreator(String creator)
|
||||
{
|
||||
fCreator = creator;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return fID;
|
||||
}
|
||||
|
||||
public void setId(long id)
|
||||
{
|
||||
fID = id;
|
||||
}
|
||||
|
||||
public AVMStore getAvmStore()
|
||||
{
|
||||
return fAVMStore;
|
||||
}
|
||||
|
||||
public void setAvmStore(AVMStore store)
|
||||
{
|
||||
fAVMStore = store;
|
||||
}
|
||||
|
||||
public DirectoryNode getRoot()
|
||||
{
|
||||
return fRoot;
|
||||
}
|
||||
|
||||
public void setRoot(DirectoryNode root)
|
||||
{
|
||||
fRoot = root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the versionID.
|
||||
* @param versionID
|
||||
*/
|
||||
public void setVersionID(int versionID)
|
||||
{
|
||||
fVersionID = versionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the version id.
|
||||
* @return The version id.
|
||||
*/
|
||||
public int getVersionID()
|
||||
{
|
||||
return fVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check equality. Based on AVMStore equality and version id equality.
|
||||
* @param obj
|
||||
* @return Equality.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof VersionRoot))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
VersionRoot other = (VersionRoot)obj;
|
||||
return fAVMStore.equals(other.getAvmStore())
|
||||
&& fVersionID == other.getVersionID();
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a hash code.
|
||||
* @return The hash code.
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return fAVMStore.hashCode() + fVersionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the tag (short description).
|
||||
* @return The tag.
|
||||
*/
|
||||
public String getTag()
|
||||
{
|
||||
return fTag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the tag (short description).
|
||||
* @param tag The short description.
|
||||
*/
|
||||
public void setTag(String tag)
|
||||
{
|
||||
fTag = tag;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the thick description.
|
||||
* @return The thick description.
|
||||
*/
|
||||
public String getDescription()
|
||||
{
|
||||
return fDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the thick description.
|
||||
* @param description The thick discription.
|
||||
*/
|
||||
public void setDescription(String description)
|
||||
{
|
||||
fDescription = description;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("[VersionRoot:");
|
||||
builder.append(fAVMStore.getName());
|
||||
builder.append(':');
|
||||
builder.append(fVersionID);
|
||||
builder.append(']');
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user