コード例 #1
0
        public static WfClientOguObjectBase CreateWrapperObject(string id, string name, ClientOguSchemaType schemaType)
        {
            WfClientOguObjectBase result = null;

            switch (schemaType)
            {
            case ClientOguSchemaType.Organizations:
                result = new WfClientOrganization(id, name);
                break;

            case ClientOguSchemaType.Users:
                result = new WfClientUser(id, name);
                break;

            case ClientOguSchemaType.Groups:
                result = new WfClientGroup(id, name);
                break;

            default:
                throw new ApplicationException(string.Format("schemaType错误{0}", schemaType));
            }

            return(result);
        }
コード例 #2
0
        public static WfClientOguObjectBase CreateWrapperObject(string id, string name, ClientOguSchemaType schemaType)
        {
            WfClientOguObjectBase result = null;

            switch (schemaType)
            {
                case ClientOguSchemaType.Organizations:
                    result = new WfClientOrganization(id, name);
                    break;
                case ClientOguSchemaType.Users:
                    result = new WfClientUser(id, name);
                    break;
                case ClientOguSchemaType.Groups:
                    result = new WfClientGroup(id, name);
                    break;
                default:
                    throw new ApplicationException(string.Format("schemaType错误{0}", schemaType));
            }

            return result;
        }
コード例 #3
0
 public WfClientGroupResourceDescriptor(WfClientGroup group)
 {
     this.Group = group;
 }