Ejemplo n.º 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);
        }
Ejemplo n.º 2
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)));
 }