/** {@inheritDoc} */ public final boolean execute(final String[] args) { if (args.length != 2) { System.out.println(usage()); System.out.println(help()); return false; } Node node = JcrWrapper.getCurrentNode(); if (node == null) { return false; } String mixinName = args[1]; try { node.removeMixin(mixinName); // TODO, shouldn't be handling cache inside command, move to JcrWrapper JcrWrapper.removeFromCache(node.getPath()); } catch (RepositoryException e) { System.out.println("Failed to remove mixin: " + e.getMessage()); return false; } return true; }
/** {@inheritDoc} */ public final boolean execute(final String[] args) { System.out.println(JcrWrapper.getStatus()); return true; }