Esempio n. 1
0
 public UserManagement(OrganizationManagement orgMnger)
 {
     this._orgMdl                  = orgMnger;
     this._users                   = new List <User>();
     this._userByIdDictionary      = new Dictionary <string, User>();
     this._userByAccountDictionary = new Dictionary <string, User>();
 }
Esempio n. 2
0
        /// <summary>
        /// 提供账号验证,登录相关服务
        /// </summary>
        public AuthenticationManagement(OrganizationManagement organizationManager)
        {
            this._userManager = organizationManager.UserManager;

            this._orgMnger = organizationManager;

            this._authedUserManger = new AuthenticatedUserManagement(organizationManager);
        }
Esempio n. 3
0
 public DepartmentUserSearcher(OrganizationManagement organizationManager)
 {
     this._organizationManager = organizationManager;
     if (this._organizationManager == null)
     {
         throw new ArgumentNullException("organizationManager");
     }
 }
Esempio n. 4
0
        public Position(string id, string name, string parentId, string remark, OrganizationManagement orgMnger)
        {
            this.ID       = id;
            this.Name     = name;
            this.ParentId = parentId;
            this.Remark   = remark;

            this._orgMnger = orgMnger;
            this._users    = new List <User>();
        }
Esempio n. 5
0
        public Function(string id, string name, string url, string iconClass, int sort, List <Member> ownerMembers, OrganizationManagement orgManager)
        {
            this._orgManager = orgManager;
            this.ID          = id;
            this.Name        = name;
            this.Url         = url;
            this.IconClass   = iconClass;
            this.Sort        = sort;

            this.OwnerMembers = ownerMembers;
            if (this.OwnerMembers == null)
            {
                this.OwnerMembers = new List <Member>();
            }
        }
Esempio n. 6
0
 public User(string id, string name, string account, string password, string email, UserGender gender, UserRole role,
             UserStatus status, DateTime?lastLoginTime, string lastLoginIp, string remark, Position mainPosition, OrganizationManagement orgMnger)
 {
     this.OrgManager    = orgMnger;
     this.ID            = id;
     this.Name          = name;
     this.Account       = account;
     this.Password      = password;
     this.Email         = email;
     this.Gender        = gender;
     this.Role          = role;
     this.Status        = status;
     this.LastLoginTime = lastLoginTime;
     this.LastLoginIp   = lastLoginIp;
     this.Remark        = remark;
     this.MainPosition  = mainPosition;
 }
Esempio n. 7
0
 public Department(OrganizationManagement orgMnger, string id, string name, Position managerPosition, string remark)
 {
     if (string.IsNullOrWhiteSpace(id))
     {
         throw new ArgumentNullException("departmentInfo.ID");
     }
     if (string.IsNullOrWhiteSpace(name))
     {
         throw new ArgumentNullException("name");
     }
     if (managerPosition == null)
     {
         throw new ArgumentNullException("managerPosition");
     }
     this.ManagerPosition = managerPosition;
     this._orgMnger       = orgMnger;
     this.ID     = id;
     this.Name   = name;
     this.Remark = remark;
 }
Esempio n. 8
0
 public FunctionService(OrganizationManagement orgMnger)
 {
     this._orgMnger = orgMnger;
 }
Esempio n. 9
0
 public DepartmentManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger    = orgMnger;
     this._departments = new List <Department>();
 }
Esempio n. 10
0
 public GroupManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger = orgMnger;
     this._groups   = new List <Group>();
 }
Esempio n. 11
0
 public Authenticator(OrganizationManagement orgManager)
 {
     _orgManager = orgManager;
 }
Esempio n. 12
0
 public Group(string id, string name, DateTime createTime, User creator, string remark, GroupType type, OrganizationManagement orgMnger)
 {
     this.ID         = id;
     this.Name       = name;
     this.CreateTime = createTime;
     this.Creator    = creator;
     this.Remark     = remark;
     this.GroupType  = type;
     this._Members   = new List <Member>();
     this._orgMnger  = orgMnger;
 }
Esempio n. 13
0
 public GroupService(OrganizationManagement organizationManager)
 {
     this.OrganizationManager = organizationManager;
 }
Esempio n. 14
0
 public FunctionManagement(OrganizationManagement orgMnger)
 {
     _loaded        = false;
     this._orgMnger = orgMnger;
     _funtions      = new Dictionary <string, Function>();
 }
Esempio n. 15
0
 public PositionManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger  = orgMnger;
     this._positions = new List <Position>();
     this._positionByIdDictionary = new Dictionary <string, Position>();
 }
Esempio n. 16
0
 public EveryoneGroup(OrganizationManagement orgManager)
 {
     this.ID          = "Everyone";
     this.Name        = "Everyone";
     this._orgManager = orgManager;
 }