Task_Descriptors.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.Linq;
  2. using InABox.Core;
  3. namespace Comal.Classes
  4. {
  5. [Caption("Configure Task Panel")]
  6. public class CanConfigureTasksPanel : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  7. {
  8. }
  9. public class CanViewTasks : AutoSecurityDescriptor<Kanban, CanView<Kanban>>
  10. {
  11. public override string Code => GetType().EntityName().Split('.').Last();
  12. }
  13. public class CanViewTaskTypes : AutoSecurityDescriptor<KanbanType, CanView<KanbanType>>
  14. {
  15. public override string Code => GetType().EntityName().Split('.').Last();
  16. }
  17. [Caption("View Tasks for Other Employees")]
  18. public class CanViewOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  19. {
  20. }
  21. [Caption("Close Tasks for Other Employees")]
  22. public class CanCloseOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  23. {
  24. }
  25. [Caption("Change all Task Information for Other Employees")]
  26. public class CanChangeOthersTasks : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  27. {
  28. }
  29. [Caption("Allow Task Completed Column to be Hidden")]
  30. public class CanHideTaskCompletedColumn : EnabledSecurityDescriptor<TaskManagementLicense, Kanban>
  31. {
  32. }
  33. [Caption("Can Set Task Completed Date")]
  34. public class CanSetKanbanCompletedDate : DisabledSecurityDescriptor<TaskManagementLicense, Kanban>
  35. {
  36. }
  37. [Caption("Can Share Task Details With Others")]
  38. public class CanShareTaskDetails : DisabledSecurityDescriptor<TaskManagementLicense, Kanban>
  39. {
  40. }
  41. }