예제 #1
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        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);
        }
예제 #2
0
파일: Group.cs 프로젝트: CarverLab/Oyster
 /// <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);
 }
예제 #3
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #4
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #5
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #6
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #7
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #8
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #9
0
파일: Group.cs 프로젝트: CarverLab/Oyster
        /// <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);
        }
예제 #10
0
        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);
        }
예제 #11
0
파일: Source.cs 프로젝트: CarverLab/Oyster
 public OCL.Permission GroupPermission(OCL.User AccessingUser, OCL.Group QueryGroup)
 {
     OCL.Functions F = new OCL.Functions();
     return F.GetPermission(QueryGroup,AccessingUser,this);
 }