-
Added package com.imcode.imcms.api.contrib,
containing class DateTextFieldTextDocumentComparator,
contributed by Anders Flodell and Pontus Amberg at Vetenskapsrådet.
(Bug 2897)
-
Added class ContentManagementSystemRunnable and
method ContentManagementSystem.runAsSuperadmin(ContentManagementSystemRunnable)
to allow code that has been signed by an administrator to run with superadmin-privileges.
The following things are required to run code with superadmin-privileges:
-
KeyStorePath in server.properties must be the path of a keystore.
- The class implementing ContentManagementSystemRunnable must be signed (e.g. inside a signed jar-file).
- All certificates used for signing the class must be found in the keystore.
See http://java.sun.com/docs/books/tutorial/jar/sign/
for more information about signing jar files.
(Bug 2875)
-
Made it possible to edit categories through the API.
Added methods setName(), setDescription(),
and setImage() to Category.
Added method DocumentService.saveCategory(Category).
Deprecated method DocumentService.createNewCategory(String, String, String, CategoryType).
Use Category.Category(String, CategoryType)
and DocumentService.saveCategory(Category) instead.
(Bug 2790)
-
Methods UserService.getRole(int) and UserService.getRole(String)
no longer require superadmin-permissions.
(Bug 2884)
-
Methods TextDocument.Menu.addDocument(Document)
and TextDocument.Menu.removeDocument(Document) erroneously required
edit-permissions for the document added or removed, instead of the menu document as intended.
(Bug 2893)
-
Added fields section_id, category, category_type,
and category_type_id to search index.
(Bug 2887)
-
Added the constants Document.LifeCyclePhase.NEW,
Document.LifeCyclePhase.APPROVED,
Document.LifeCyclePhase.DISAPPROVED,
Document.LifeCyclePhase.PUBLISHED,
Document.LifeCyclePhase.ARCHIVED,
and Document.LifeCyclePhase.UNPUBLISHED,
to be used as values in searches on the field "phase".
(Bug 2880)