internal static int AccessMaskFromRights(ObjectRights objectRights, AccessControlType controlType) { if ((objectRights < 0) || (objectRights > ObjectRights.FullControl)) { throw new ArgumentOutOfRangeException("objectRights"); } return (int)objectRights; }
internal static int AccessMaskFromRights(ObjectRights objectRights, AccessControlType controlType) { if ((objectRights < 0) || (objectRights > ObjectRights.FullControl)) { throw new ArgumentOutOfRangeException("objectRights"); } return((int)objectRights); }
public void IsPropertyReadOnly_ShouldReturn_True() { var dataObject = new Case(); var requiredFlags = new CasePropertyFlags(); var readOnlyFlags = new CasePropertyFlags { Title = false }; var objectRights = new ObjectRights(); var dataObjectAccess = new En.DataObjectAccess(dataObject, requiredFlags, readOnlyFlags, objectRights); Assert.IsTrue(dataObjectAccess.IsPropertyReadOnly("Title")); }
public override void Deserialize(IPayloadReader reader) { base.Deserialize(reader); this.RequiredRights = (ObjectRights)reader.ReadInt32("RequiredRights"); }
public UnauthorizedErrorPayload(Error errorType, ISharedObjectEntry objectEntry, ObjectRights requiredRights, string description, Guid clientId, ushort payloadId) : base(errorType, objectEntry, description, clientId, payloadId) { this.RequiredRights = requiredRights; }
internal UnauthorizedAccessEventArgs(UnauthorizedErrorPayload data) : base(data) { this.RequiredRights = data.RequiredRights; }
public SharedObjectAccessRule(string identity, ObjectRights objectRights, InheritanceFlags inheritanceFlags, AccessControlType type) : this(identity, AccessMaskFromRights(objectRights, type), false, inheritanceFlags, type) { }
internal SharedObjectAccessRule(string identity, ObjectRights objectRights, bool isInherited, InheritanceFlags inheritanceFlags, AccessControlType type) : base(identity, AccessMaskFromRights(objectRights, type), isInherited, inheritanceFlags, PropagationFlags.None, type) { }
public DataObjectAccess(DataObject dataObject, DataObject requiredFlags, DataObject readOnlyFlags, ObjectRights objectRights) : base(dataObject, requiredFlags, readOnlyFlags) { _objectRights = objectRights; }