예제 #1
0
        /* Returns a list of all routines created by the
         * given user that matches the given routine name
         * in model format.
         * @param creatorUsername: The username of the
         * user who created the routine.
         * @param routineName: The routine name to match.
         */
        public List <RoutineModel> getRoutineModelsAssignedToByName(string creatorUsername, string routineName, string assigneeName)
        {
            List <RoutineModel> lst = new List <RoutineModel>();

            foreach (Routine r in getRoutinesAssignedToByName(creatorUsername, routineName, assigneeName))
            {
                lst.Add(ModelCopier.copyRoutineToModel(r));
            }

            return(lst);
        }
예제 #2
0
        /*TODO*/
        public List <RoutineModel> getMostRecentRoutineModels(string creatorUsername)
        {
            return(ModelCopier.copyRoutinesToModels(getMostRecentRoutines(creatorUsername)));

            /*List<RoutineModel> lst = new List<RoutineModel>();
             *
             * foreach (Routine r in getMostRecentRoutines(creatorUsername))
             *  lst.Add(ModelCopier.copyRoutineToModel(r));
             *
             * return lst;*/
        }
예제 #3
0
 /* Returns the most recent routine created by the
  * given user that matches the given routine name
  * (either active or disabled) in model format.
  * @param creatorUsername: The username of the
  * user who created the routine.
  * @param routineName: The routine name to match.
  */
 public RoutineModel getMostRecentRoutineModelAssignedToByName(string creatorUsername, string routineName, string assigneeName)
 {
     return(ModelCopier.copyRoutineToModel(getMostRecentRoutineAssignedToByName(creatorUsername, routineName, assigneeName)));
 }
예제 #4
0
 /*TODO*/
 public List <RoutineModel> getMostRecentRoutineModelsAssignedTo(string creatorUsername, string assigneeUsername)
 {
     return(ModelCopier.copyRoutinesToModels(getMostRecentRoutinesAssignedTo(creatorUsername, assigneeUsername)));
 }
예제 #5
0
 /* Returns a list of all routines created by the
  * given user in model format.
  * @param creatorUsername: The username of the
  * user who created the routine.
  */
 public List <RoutineModel> getRoutineModels(string creatorUsername)
 {
     return(ModelCopier.copyRoutinesToModels(getRoutines(creatorUsername)));
 }