src/main/java/za/co/grindrodbank/dokuti/document/DocumentEntity.java
public void removePermission(DocumentPermission documentPermissionValue) {
		for (Iterator<DocumentAcl> iterator = documentPermissions.iterator(); iterator.hasNext();) {
			DocumentAcl documentAcl = iterator.next();

			if (documentAcl.getDocument().equals(this)
					&& documentAcl.getPermission().equals(documentPermissionValue.toString())) {
				iterator.remove();
				documentAcl.setDocument(null);
			}
		}
	}
/**
	 * Removes a permission from the document.
	 * 
	 * @param permissionValue The value of the permission to remove from the
	 *                        document.
	 */
Removes a permission from the document.

@param permissionValue The value of the permission to remove from the
document.
Removes a permission from the document . @param permissionValue The value of the permission to remove from the document .
public void removePermission(DocumentPermission documentPermissionValue) {
		for (Iterator<DocumentAcl> iterator = documentPermissions.iterator(); iterator.hasNext();) {
			DocumentAcl documentAcl = iterator.next();
			if (documentAcl.getDocument().equals(this)
					&& documentAcl.getPermission().equals(documentPermissionValue.toString())) {
				iterator.remove();
				documentAcl.setDocument(null);
			}
		}
	}
public void removePermission ( DocumentPermission documentPermissionValue ) { for ( Iterator < DocumentAcl > iterator = documentPermissions . iterator ( ) ; iterator . hasNext ( ) ; ) { DocumentAcl documentAcl = iterator . next ( ) ; if ( documentAcl . getDocument ( ) . equals ( this ) && documentAcl . getPermission ( ) . equals ( documentPermissionValue . toString ( ) ) ) { iterator . remove ( ) ; documentAcl . setDocument ( null ) ; } } }
Removes a permission from the document.
Removes a permission from the document .