Skip to content

Commit ed66d4e

Browse files
authored
UBO-449 Added order annotionen to servflag migration commands (#508)
1 parent 4752587 commit ed66d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ubo-common/src/main/java/org/mycore/ubo/DozBibCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class DozBibCommands {
7474
private static XPathExpression<Element> SERVFLAG_XPATH = XPATH_FACTORY.compile("//servflag[@type='status']",
7575
Filters.element(), null, MODS_NAMESPACE);
7676

77-
@MCRCommand(syntax = "migrate status to state classification of {0}", help = "Migrates the status servflag to a servstate")
77+
@MCRCommand(syntax = "migrate status to state classification of {0}", help = "Migrates the status servflag to a servstate", order = 1)
7878
public static void migrateState(String objectId) {
7979
if (!MCRObjectID.isValid(objectId)) {
8080
LOGGER.error("'{}' is not a valid MCRObjectID", objectId);
@@ -115,7 +115,7 @@ public static void migrateState(String objectId) {
115115
}
116116
}
117117

118-
@MCRCommand(syntax = "migrate status to state classification", help = "Migrates the status servflag to a servstate for all objects")
118+
@MCRCommand(syntax = "migrate status to state classification", help = "Migrates the status servflag to a servstate for all objects", order = 2)
119119
public static List<String> migrateState() {
120120
List<String> commandList = new ArrayList<>();
121121
List<String> mcrids = MCRXMLMetadataManager.getInstance().listIDsOfType("mods");

0 commit comments

Comments
 (0)