private static string PageStatusTypeToString(PageStatusType pageStatus)
        {
            switch (pageStatus)
            {
            case PageStatusType.WaitingForCorrection:
                return("waitingforcorrection");

            case PageStatusType.WaitingForRelease:
                return("waitingforrelease");

            case PageStatusType.SavedAsDraft:
                return("checkedout");

            case PageStatusType.Released:
                return("released");

            case PageStatusType.Resubmitted:
                return("resubmitted");

            case PageStatusType.InWorkflow:
                return("pagesinworkflow");

            default:
                throw new ArgumentException(String.Format("Unknown page status {0}", pageStatus));
            }
        }
Beispiel #2
0
        private static string PageStatusTypeToString(PageStatusType pageStatus)
        {
            switch (pageStatus)
            {
                case PageStatusType.WaitingForCorrection:
                    return "waitingforcorrection";
                case PageStatusType.WaitingForRelease:
                    return "waitingforrelease";
                case PageStatusType.SavedAsDraft:
                    return "checkedout";
                case PageStatusType.Released:
                    return "released";
                case PageStatusType.Resubmitted:
                    return "resubmitted";
                case PageStatusType.InWorkflow:
                    return "pagesinworkflow";

                default:
                    throw new ArgumentException(String.Format("Unknown page status {0}", pageStatus));
            }
        }
 public PageStatusFilter(PageStatusType pageStatus, UserType user)
 {
     PageStatus = pageStatus;
     User       = user;
 }
Beispiel #4
0
 public PageStatusFilter(PageStatusType pageStatus, UserType user)
 {
     PageStatus = pageStatus;
     User = user;
 }