/// <summary> /// Copies the values of the individual permissions of the specified folder permission /// to this folder permissions. /// </summary> /// <param name="permission">The folder permission to copy the values from.</param> private void AssignIndividualPermissions(FolderPermission permission) { this.canCreateItems = permission.CanCreateItems; this.canCreateSubFolders = permission.CanCreateSubFolders; this.isFolderContact = permission.IsFolderContact; this.isFolderOwner = permission.IsFolderOwner; this.isFolderVisible = permission.IsFolderVisible; this.editItems = permission.EditItems; this.deleteItems = permission.DeleteItems; this.readItems = permission.ReadItems; }
/// <summary> /// Determines whether the specified folder permission is the same as this one. The comparison /// does not take UserId and PermissionLevel into consideration. /// </summary> /// <param name="permission">The folder permission to compare with this folder permission.</param> /// <returns> /// True is the specified folder permission is equal to this one, false otherwise. /// </returns> private bool IsEqualTo(FolderPermission permission) { return (this.CanCreateItems == permission.CanCreateItems && this.CanCreateSubFolders == permission.CanCreateSubFolders && this.IsFolderContact == permission.IsFolderContact && this.IsFolderVisible == permission.IsFolderVisible && this.IsFolderOwner == permission.IsFolderOwner && this.EditItems == permission.EditItems && this.DeleteItems == permission.DeleteItems && this.ReadItems == permission.ReadItems); }
/// <summary> /// Copies the values of the individual permissions of the specified folder permission /// to this folder permissions. /// </summary> /// <param name="permission">The folder permission to copy the values from.</param> private void AssignIndividualPermissions(FolderPermission permission) { this.canCreateItems = permission.CanCreateItems; this.canCreateSubFolders = permission.CanCreateSubFolders; this.isFolderContact = permission.IsFolderContact; this.isFolderOwner = permission.IsFolderOwner; this.isFolderVisible = permission.IsFolderVisible; this.editItems = permission.EditItems; this.deleteItems = permission.DeleteItems; this.readItems = permission.ReadItems; }
/// <summary> /// Determines whether the specified folder permission is the same as this one. The comparison /// does not take UserId and PermissionLevel into consideration. /// </summary> /// <param name="permission">The folder permission to compare with this folder permission.</param> /// <returns> /// True is the specified folder permission is equal to this one, false otherwise. /// </returns> private bool IsEqualTo(FolderPermission permission) { return this.CanCreateItems == permission.CanCreateItems && this.CanCreateSubFolders == permission.CanCreateSubFolders && this.IsFolderContact == permission.IsFolderContact && this.IsFolderVisible == permission.IsFolderVisible && this.IsFolderOwner == permission.IsFolderOwner && this.EditItems == permission.EditItems && this.DeleteItems == permission.DeleteItems && this.ReadItems == permission.ReadItems; }