Beispiel #1
0
        public WorklistSummary GetWorklistSummary(Worklist worklist, IPersistenceContext context)
        {
            StaffAssembler staffAssembler = new StaffAssembler();
            StaffGroupAssembler groupAssembler = new StaffGroupAssembler();
        	return new WorklistSummary(
        		worklist.GetRef(),
        		worklist.Name,
        		worklist.Description,
        		worklist.ClassName,
				Worklist.GetCategory(worklist.GetClass()),
        		Worklist.GetDisplayName(worklist.GetClass()),
				worklist.Owner.IsStaffOwner ? staffAssembler.CreateStaffSummary(worklist.Owner.Staff, context) : null,
                worklist.Owner.IsGroupOwner ? groupAssembler.CreateSummary(worklist.Owner.Group) : null);
        }
Beispiel #2
0
 /// <summary>
 /// Lists all known worklist classes (extensions of <see cref="WorklistExtensionPoint"/>), optionally
 /// including those marked with the <see cref="StaticWorklistAttribute"/>.
 /// </summary>
 /// <param name="includeStatic"></param>
 /// <returns></returns>
 public Type[] ListWorklistClasses(bool includeStatic)
 {
     return(includeStatic ? _worklistClasses.ToArray() :
            CollectionUtils.Select(_worklistClasses, wc => !Worklist.GetIsStatic(wc)).ToArray());
 }
		private void UpdateWorklistHelper(WorklistAdminDetail detail, Worklist worklist)
		{
			var adminAssembler = new WorklistAdminAssembler();
			adminAssembler.UpdateWorklist(
				worklist,
				detail,
				worklist.Owner.IsAdminOwner,	// only update subscribers iff the worklist is admin owned
				this.PersistenceContext);
		}