Minor fixes for the hold service

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64903 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-03-19 17:03:46 +00:00
parent 1f24aaab44
commit dd19c12b43
3 changed files with 82 additions and 82 deletions

View File

@@ -160,7 +160,7 @@ public interface RMPermissionModel
String MANAGE_ACCESS_CONTROLS = "ManageAccessControls";
final String CREATE_HOLD = "CreateHold";
final String ADD_TO_HOLD = "AddToHold";
final String REMOVE_FROM_HOLD = "RemoveFromHold";
String CREATE_HOLD = "CreateHold";
String ADD_TO_HOLD = "AddToHold";
String REMOVE_FROM_HOLD = "RemoveFromHold";
}

View File

@@ -450,7 +450,7 @@ public class HoldServiceImpl extends ServiceBaseImpl
}
// check that the node isn't already in the hold
if (getHeld(hold).contains(nodeRef) == false)
if (!getHeld(hold).contains(nodeRef))
{
// Link the record to the hold
nodeService.addChild(hold, nodeRef, ASSOC_FROZEN_RECORDS, ASSOC_FROZEN_RECORDS);
@@ -544,7 +544,7 @@ public class HoldServiceImpl extends ServiceBaseImpl
throw new AlfrescoRuntimeException("Can't remove from hold, because it isn't a hold. (hold=" + hold + ")");
}
if (getHeld(hold).contains(nodeRef) == true)
if (getHeld(hold).contains(nodeRef))
{
// remove from hold
nodeService.removeChild(hold, nodeRef);

View File

@@ -92,7 +92,7 @@ public class ServiceBaseImpl implements RecordsManagementModel
/**
* Indicates whether the given node reference is a hold or not.
* <p>
* Exposed publically in the {@link HoldService}
* Exposed publicly in the {@link HoldService}
*
* @param nodeRef node reference
* @return boolean true if rma:hold or sub-type, false otherwise