Derek Hulley c72a19b637 Merged DEV to HEAD:
29876: Removed emotive language from build.xml
   29877: Made getter final; should make members final.
   29879: Extra check for erroneous, pre-existing transactions
   29880: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - There is no longer code to change the store ID and UUID for an entry in alf_node
          - During store moves, new node entries are created and node data is moved onto the new node
          - Primarily affects archive/restore use cases
          - Any NodeRef can be tracked using the DB ID associated with it (see NodeService.getNodeStatus)
   29926: Minor toString modification
   29927: Code cleanup: line endings, non-javadoc and isDebugEnabled
   29928: Moved exception absorbtion out of the non-propagating txn (and cleaned up unused code)
   29930: Test for ALF-5714: Write transactions serialized on MySQL
          - The fix is to add this to the MySQL configuration and restart the MySQL server
            innodb_locks_unsafe_for_binlog = true
            See: http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_locks_unsafe_for_binlog
          - The test holds DB resources from one archive process while doing another.  It fails without the setting given.
          - TODO: Documentation required
   29969: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - Fixed timing of circular hierarchy detection
   29972: ALF-8966: RSOLR 042: Node deletes keep DB ID (ALF-8965)
          - Fixed ACL retrieval from old parent node during move
          - Fixes PermissionServiceTest failures
   29979: Fix test's initialization
   29987: Fixed txn demarcation during write of transfer report


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30044 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2011-08-24 23:09:39 +00:00

113 lines
3.0 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;
/**
* Bean to convey <b>alf_node</b> update data. It uses the basic node data, but adds
* information to identify the properties that need updating.
*
* @author Derek Hulley
* @since 3.4
*/
public class NodeUpdateEntity extends NodeEntity
{
private boolean updateTypeQNameId;
private boolean updateLocaleId;
private boolean updateAclId;
private boolean updateDeleted;
private boolean updateTransaction;
private boolean updateAuditableProperties;
/**
* Required default constructor
*/
public NodeUpdateEntity()
{
}
/**
* Determine if this update represents anything new at all
*/
public boolean isUpdateAnything()
{
return updateAuditableProperties || updateTransaction || updateDeleted
|| updateLocaleId || updateAclId || updateTypeQNameId;
}
public boolean isUpdateTypeQNameId()
{
return updateTypeQNameId;
}
public void setUpdateTypeQNameId(boolean updateTypeQNameId)
{
this.updateTypeQNameId = updateTypeQNameId;
}
public boolean isUpdateLocaleId()
{
return updateLocaleId;
}
public void setUpdateLocaleId(boolean updateLocaleId)
{
this.updateLocaleId = updateLocaleId;
}
public boolean isUpdateAclId()
{
return updateAclId;
}
public void setUpdateAclId(boolean updateAclId)
{
this.updateAclId = updateAclId;
}
public boolean isUpdateDeleted()
{
return updateDeleted;
}
public void setUpdateDeleted(boolean updateDeleted)
{
this.updateDeleted = updateDeleted;
}
public boolean isUpdateTransaction()
{
return updateTransaction;
}
public void setUpdateTransaction(boolean updateTransaction)
{
this.updateTransaction = updateTransaction;
}
public boolean isUpdateAuditableProperties()
{
return updateAuditableProperties;
}
public void setUpdateAuditableProperties(boolean updateAuditableProperties)
{
this.updateAuditableProperties = updateAuditableProperties;
}
}