예제 #1
0
        /// <summary> Add a new item aggregation to this user group's collection of item aggregationPermissions </summary>
        /// <param name="PermissionedAggregation">Fully permissioned aggregation </param>
        public void Add_Aggregation(User_Permissioned_Aggregation PermissionedAggregation)
        {
            if (aggregations == null)
            {
                aggregations = new User_Aggregation_Permissions();
            }

            aggregations.Add(PermissionedAggregation);
        }
예제 #2
0
        /// <summary> Add a new item aggregation to this user group's collection of item aggregationPermissions </summary>
        /// <param name="Code">Code for this user editable item aggregation</param>
        /// <param name="Aggregation_Name">Name for this user editable item aggregation </param>
        /// <param name="CanSelect">Flag indicates if this user group can add items to this item aggregation</param>
        /// <param name="CanDelete"> Flag indicates if the user group can delete items in this aggregation </param>
        /// <param name="IsCurator"> Flag indicates if this user group is listed as the curator or collection manager for this given digital aggregation </param>
        /// <param name="CanEditMetadata"> Flag indicates if the user group can edit metadata for all items in this aggregation </param>
        /// <param name="CanEditBehaviors"> Flag indicates if the user group can edit behaviors for all items in this aggregation  </param>
        /// <param name="CanPerformQc"> Flag indicates if the user group can edit perform quality control for all items in this aggregation  </param>
        /// <param name="CanUploadFiles"> Flag indicates if the user group can edit upload files for all items in this aggregation  </param>
        /// <param name="CanChangeVisibility"> Flag indicates if the user group can change the visibility for all items in this aggregation  </param>
        /// <param name="IsAdmin"> Flag indicates if membership in this group are administrators on the aggregation </param>
        public void Add_Aggregation(string Code, string Aggregation_Name, bool CanSelect, bool CanEditMetadata, bool CanEditBehaviors, bool CanPerformQc, bool CanUploadFiles, bool CanChangeVisibility, bool CanDelete, bool IsCurator, bool IsAdmin)
        {
            if (aggregations == null)
            {
                aggregations = new User_Aggregation_Permissions();
            }

            aggregations.Add(Code, Aggregation_Name, CanSelect, CanEditMetadata, CanEditBehaviors, CanPerformQc, CanUploadFiles, CanChangeVisibility, CanDelete, IsCurator, false, IsAdmin, true);
        }
 /// <summary> Constructor for a new instance of the User_Object class </summary>
 public User_Object()
 {
     Family_Name = String.Empty;
     Given_Name = String.Empty;
     ShibbID = String.Empty;
     Email = String.Empty;
     Department = String.Empty;
     Nickname = String.Empty;
     Can_Submit = false;
     Is_Just_Registered = false;
     Send_Email_On_Submission = true;
     Is_Temporary_Password = false;
     Is_Internal_User = false;
     UserName = String.Empty;
     Preferred_Language = String.Empty;
     templates = new List<string>();
     defaultMetadataSets = new List<string>();
     bibids = new List<string>();
     bookshelfObjectIds = new List<string>();
     Items_Submitted_Count = 0;
     Organization = String.Empty;
     Department = String.Empty;
     Unit = String.Empty;
     College = String.Empty;
     Organization_Code = String.Empty;
     Edit_Template_Code_Simple = String.Empty;
     Edit_Template_Code_Complex = String.Empty;
     aggregationPermissions = new User_Aggregation_Permissions();
     editableRegexes = new List<string>();
     folders = new SortedList<string, User_Folder>();
     Default_Rights = "All rights reserved by the submitter.";
     Is_System_Admin = false;
     Is_Portal_Admin = false;
     Has_Descriptive_Tags = false;
     userGroups = new List<string>();
     Receive_Stats_Emails = true;
     Has_Item_Stats = false;
     Include_Tracking_In_Standard_Forms = true;
     userSettings = new Dictionary<string, object>();
     Can_Delete_All = false;
     Authentication_Type = User_Authentication_Type_Enum.NONE;
     defaultMetadataSetsFromGroups = new List<string>();
     templates_from_groups = new List<string>();
     LoggedOn = false;
 }
예제 #4
0
        /// <summary> Add a new item aggregation to this user group's collection of item aggregationPermissions </summary>
        /// <param name="PermissionedAggregation">Fully permissioned aggregation </param>
        public void Add_Aggregation(User_Permissioned_Aggregation PermissionedAggregation )
        {
            if (aggregations == null) aggregations = new User_Aggregation_Permissions();

            aggregations.Add(PermissionedAggregation);
        }
예제 #5
0
        /// <summary> Add a new item aggregation to this user group's collection of item aggregationPermissions </summary>
        /// <param name="Code">Code for this user editable item aggregation</param>
        /// <param name="Aggregation_Name">Name for this user editable item aggregation </param>
        /// <param name="CanSelect">Flag indicates if this user group can add items to this item aggregation</param>
        /// <param name="CanDelete"> Flag indicates if the user group can delete items in this aggregation </param>
        /// <param name="IsCurator"> Flag indicates if this user group is listed as the curator or collection manager for this given digital aggregation </param>
        /// <param name="CanEditMetadata"> Flag indicates if the user group can edit metadata for all items in this aggregation </param>
        /// <param name="CanEditBehaviors"> Flag indicates if the user group can edit behaviors for all items in this aggregation  </param>
        /// <param name="CanPerformQc"> Flag indicates if the user group can edit perform quality control for all items in this aggregation  </param>
        /// <param name="CanUploadFiles"> Flag indicates if the user group can edit upload files for all items in this aggregation  </param>
        /// <param name="CanChangeVisibility"> Flag indicates if the user group can change the visibility for all items in this aggregation  </param>
        /// <param name="IsAdmin"> Flag indicates if membership in this group are administrators on the aggregation </param>
        public void Add_Aggregation(string Code, string Aggregation_Name, bool CanSelect, bool CanEditMetadata, bool CanEditBehaviors, bool CanPerformQc, bool CanUploadFiles, bool CanChangeVisibility, bool CanDelete, bool IsCurator, bool IsAdmin)
        {
            if (aggregations == null) aggregations = new User_Aggregation_Permissions();

            aggregations.Add(Code, Aggregation_Name, CanSelect, CanEditMetadata, CanEditBehaviors, CanPerformQc, CanUploadFiles, CanChangeVisibility, CanDelete, IsCurator, false, IsAdmin, true );
        }