encodeDependencyPath( asset.getName(), isHistoricalVersion() ? Long.toString(asset.getVersionNumber()) : "LATEST"));
encodeDependencyPath( asset.getName(), isHistoricalVersion() ? Long.toString(asset.getVersionNumber()) : "LATEST"));
try { String sql; if (isHistoricalVersion()) { sql = "SELECT * FROM nt:frozenNode"; } else {
/** * Constructs an object of type ModuleItem corresponding the specified * node * * @param rulesRepository the rulesRepository that instantiated this object * @param node the node to which this object corresponds * @throws RulesRepositoryException */ public ModuleItem(RulesRepository rulesRepository, Node node) throws RulesRepositoryException { super(rulesRepository, node); try { //make sure this node is a module node if (!(this.node.getPrimaryNodeType().getName().equals(MODULE_TYPE_NAME) || isHistoricalVersion())) { String message = this.node.getName() + " is not a node of type " + MODULE_TYPE_NAME + ". It is a node of type: " + this.node.getPrimaryNodeType().getName(); log.error(message); throw new RulesRepositoryException(message); } } catch (Exception e) { log.error("Caught exception: " + e); throw new RulesRepositoryException(e); } }
/** * Constructs an object of type ModuleItem corresponding the specified * node * * @param rulesRepository the rulesRepository that instantiated this object * @param node the node to which this object corresponds * @throws RulesRepositoryException */ public ModuleItem(RulesRepository rulesRepository, Node node) throws RulesRepositoryException { super(rulesRepository, node); try { //make sure this node is a module node if (!(this.node.getPrimaryNodeType().getName().equals(MODULE_TYPE_NAME) || isHistoricalVersion())) { String message = this.node.getName() + " is not a node of type " + MODULE_TYPE_NAME + ". It is a node of type: " + this.node.getPrimaryNodeType().getName(); log.error(message); throw new RulesRepositoryException(message); } } catch (Exception e) { log.error("Caught exception: " + e); throw new RulesRepositoryException(e); } }
try { String sql; if (isHistoricalVersion()) { sql = "SELECT * FROM nt:frozenNode"; } else {