24 _personService = personService;
50 List<Person> persons = _personService.GetPersons().ToList();
61 return persons.Where(p => p.IsActive).ToArray();
75 ByFirstNameDescending,
DocumentStrategyBase(IWorkspaceService workspaceService, IServiceProvider serviceProvider)
Constructor for the document strategy base class.
override Person[] GetItems()
Return a list of all Person items.
override IEnumerable< Enum > AvailableItemOrderings
Array with all available orderings for the items.If no ordering is supported, this will be null.
DocumentStrategyResultListDetail(IPersonService personService, IWorkspaceService workspaceService, IServiceProvider serviceProvider)
Constructor for the document strategy for a result list with details.
override Enum ItemOrdering
Current ordering for the items.If no ordering is supported, this will be null.
ItemOrderingsResultListDetail
Enum with all available orderings for result lists with details.
override string TemplatePath
Gets the path to the template used for creating the document.
override DocumentCreationTypes DocumentType
Gets the type of document this strategy creates.
override bool CreateMultiplePages
This always returns false
Class describing a person.
Service used to create documents like certificates or start lists.
static string GetDocumentPathAbsolute(string documentCreationSettingKey, IWorkspaceService workspaceService)
Get the absolute path for the requested document creation setting.
Class holding all workspace settings.
Interface for a service used to get and store a list of Person objects.
Interface for a service used to manage a workspace.
DocumentCreationTypes
Different types of documents that can be created.