public IModel<BrixNode> getTemplateModel() { if (templateModel == null) templateModel = new BrixNodeModel(); return templateModel; }
public boolean containsParent(Path path) { for (Path p : this) { if (p.isParentOf(path)) { return true; } } return false; }
/** * Convenience method for obtaining Brix instance. This is the preferred way to obtain the instance. * * @return brix instance */ public Brix getBrix() { return Brix.get(); }
public static MenuPlugin get(Brix brix) { return (MenuPlugin) brix.getPlugin(ID); }
public VariableTag(BrixNode pageNode, Tag delegate) { this.pageNodeModel = new BrixNodeModel(pageNode); this.pageNodeModel.detach(); this.delegate = delegate; }
public Path toAbsolute() { if (!isAbsolute()) { return ROOT.append(this); } else { return this; } }
public String rewriteStaticRelativeUrl(String url, String contextPrefix) { if (prefix.isRoot()) { return contextPrefix + url; } else { return contextPrefix + prefix.toRelative(Path.ROOT) + "/" + url; } } }
public Path canonical() { if (isCanonical()) { return this; } else { return doCanonical(); } }
public void clone(JcrSession src, JcrSession dest) { cleanWorkspace(dest); cloneWorkspace(src, dest); }
public T getObject() { if (node == null) { node = loadNode(id); } return node; }
public final AuthorizationStrategy getAuthorizationStrategy() { if (authorizationStrategy == null) { authorizationStrategy = newAuthorizationStrategy(); } return authorizationStrategy; }
/** * @return instance of {@link BrixBuild} singleton */ public static synchronized BrixBuild instance() { if (instance == null) { instance = new BrixBuild(); } return instance; }
public boolean containsAncestor(Path path) { for (Path p : this) { if (p.isAncestorOf(path)) { return true; } } return false; }
private Brix getBrix() { // TODO: We don't really have a node here return Brix.get(); } }
public VariableText(BrixNode pageNode, String key) { this.pageNodeModel = new BrixNodeModel(pageNode); this.key = key; this.pageNodeModel.detach(); }
public IModel<BrixNode> getNodeModel() { if (nodeModel == null) { nodeModel = new BrixNodeModel(); } return nodeModel; }
private Brix getBrix() { // TODO: We don't really have a node here return Brix.get(); }
public TitleText(AbstractContainer container) { nodeModel = new BrixNodeModel(container); nodeModel.detach(); }