Ejemplo 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>();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 提供账号验证,登录相关服务
        /// </summary>
        public AuthenticationManagement(OrganizationManagement organizationManager)
        {
            this._userManager = organizationManager.UserManager;

            this._orgMnger = organizationManager;

            this._authedUserManger = new AuthenticatedUserManagement(organizationManager);
        }
Ejemplo n.º 3
0
 public DepartmentUserSearcher(OrganizationManagement organizationManager)
 {
     this._organizationManager = organizationManager;
     if (this._organizationManager == null)
     {
         throw new ArgumentNullException("organizationManager");
     }
 }
Ejemplo 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>();
        }
Ejemplo 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>();
            }
        }
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo n.º 8
0
 public FunctionService(OrganizationManagement orgMnger)
 {
     this._orgMnger = orgMnger;
 }
Ejemplo n.º 9
0
 public DepartmentManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger    = orgMnger;
     this._departments = new List <Department>();
 }
Ejemplo n.º 10
0
 public GroupManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger = orgMnger;
     this._groups   = new List <Group>();
 }
Ejemplo n.º 11
0
 public Authenticator(OrganizationManagement orgManager)
 {
     _orgManager = orgManager;
 }
Ejemplo 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;
 }
Ejemplo n.º 13
0
 public GroupService(OrganizationManagement organizationManager)
 {
     this.OrganizationManager = organizationManager;
 }
Ejemplo n.º 14
0
 public FunctionManagement(OrganizationManagement orgMnger)
 {
     _loaded        = false;
     this._orgMnger = orgMnger;
     _funtions      = new Dictionary <string, Function>();
 }
Ejemplo n.º 15
0
 public PositionManagement(OrganizationManagement orgMnger)
 {
     this._orgMnger  = orgMnger;
     this._positions = new List <Position>();
     this._positionByIdDictionary = new Dictionary <string, Position>();
 }
Ejemplo n.º 16
0
 public EveryoneGroup(OrganizationManagement orgManager)
 {
     this.ID          = "Everyone";
     this.Name        = "Everyone";
     this._orgManager = orgManager;
 }