public OCL.Permission GetDefaultVideoStorageServerPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.VideoStorageServer VSS = (OCL.VideoStorageServer)F.GetUnassignedObject(OCL.OysterUnassignedObjects.VideoStorageServer); return F.GetPermission(this,AccessingUser,VSS); }
/// <summary> /// Returns the permission that the AccessingUser has on TargetUser's Group Object /// </summary> /// <param name="AccessingUser"></param> /// <param name="TargetUser"></param> /// <param name="Obj"></param> /// <returns>OCL.Permission if all is well /// Null if Accessing User does not have sufficient priviledge to complete operation /// throws an Exception if Object is not within Group /// </returns> public OCL.Permission GetObjectPermission(OCL.User AccessingUser,OCL.User TargetUser, object Obj) { OCL.Functions F = new OCL.Functions(); return F.GetPermission(this,AccessingUser,TargetUser,Obj); }
/// <summary> /// Returns the AccessingUser's Default Source Permission /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultSourcePermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.Source DS = (OCL.Source)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Source); return F.GetPermission(this,AccessingUser,DS); }
/// <summary> /// Returns the AccessingUser's Default User Permission /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultUserPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.User DU = (OCL.User)F.GetUnassignedObject(OCL.OysterUnassignedObjects.User); return F.GetPermission(this,AccessingUser,DU); }
/// <summary> /// Returns the AccessingUser's Default Note Permission /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultNotePermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.Note DN = (OCL.Note)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Note); return F.GetPermission(this,AccessingUser,DN); }
/// <summary> /// Returns the Accessing User's Default Recording Session Permission /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultRecordingSessionPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.RecordingSession DRS = (OCL.RecordingSession)F.GetUnassignedObject(OCL.OysterUnassignedObjects.RecordingSession); return F.GetPermission(this,AccessingUser,DRS); }
/// <summary> /// Returns the Accessing User's Access Permissions to this Group /// Example: can Accessing User see this Group, edit this Group, delete this Group /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultGroupAccessPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.Group DG = (OCL.Group)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Group); return F.GetPermission(this,AccessingUser,DG); }
/// <summary> /// Returns the AccessingUser's Default Control Permission /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultControlPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.Control DC = (OCL.Control)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Control); return F.GetPermission(this,AccessingUser,DC); }
/// <summary> /// Returns the Accessing User's Default Recording Session Permission /// Example: By default when a recording session is added to this Group the Accessing User can /// see,edit or delete Recordings Sessions based on this permission /// The permissions on a particular Recording Session within this group for this user will override /// the default recording session permissions. /// </summary> /// <param name="AccessingUser"></param> /// <returns></returns> public OCL.Permission GetDefaultAttachmentPermission(OCL.User AccessingUser) { OCL.Functions F = new OCL.Functions(); OCL.Attachment DA = (OCL.Attachment)F.GetUnassignedObject(OCL.OysterUnassignedObjects.Attachment); return F.GetPermission(this,AccessingUser,DA); }
public bool Update(OCL.User AccessingUser, bool IsVisible, bool CanAdd, bool CanEdit, bool CanDelete, bool IsUsable,bool CanEditPermissions, bool CanSeePermissions, bool CanAddObjectA,bool CanEditObjectA, bool CanDeleteObjectA, bool CanAddObjectB,bool CanEditObjectB, bool CanDeleteObjectB) { OCL.Functions F = new OCL.Functions(); /// Check to see if AccessingUser has priviledges in this group to be changing permissions on /// this object type. OCL.Permission P = F.GetPermission(mvarCurrentGroup,AccessingUser,mvarObjectType,mvarObjectId); if(!P.CanEdit) { return false; } return F.UpdatePermission(mvarCurrentGroup,mvarCurrentUser,mvarObjectType,mvarObjectId,IsVisible, CanAdd,CanEdit,CanDelete,IsUsable,CanEditPermissions,CanSeePermissions, CanAddObjectA,CanEditObjectA,CanDeleteObjectA, CanAddObjectB,CanEditObjectB,CanDeleteObjectB, mvarAddedByUserId); }
public OCL.Permission GroupPermission(OCL.User AccessingUser, OCL.Group QueryGroup) { OCL.Functions F = new OCL.Functions(); return F.GetPermission(QueryGroup,AccessingUser,this); }