@Test public void testGetPathByService() throws Exception { IPathHelper helper = PathHelper.getPathHelper(EntityType.RULE, "/test"); Assert.assertEquals("/test/Redirector/services/xreGuide/rules", helper.getPathByService("xreGuide")); }
@Override public String getPathByService(String serviceName) { return baseNodePath + DELIMETER + serviceName + getJoinedChildren(entityPath); }
PathHelper implements IPathHelper { @Override public String getPathByService(String serviceName) { return baseNodePath + DELIMETER + serviceName + getJoinedChildren(entityPath); } }
PathHelper implements IPathHelper { @Override public String getPathByService(String serviceName) { return baseNodePath + DELIMETER + serviceName + getJoinedChildren(entityPath); } PathHelper(String basePath, String rootPath, String entityPath); }
PathHelper implements IPathHelper { @Override public String getPathByService(String serviceName) { return baseNodePath + DELIMETER + serviceName + getJoinedChildren(entityPath); } PathHelper(String basePath, String rootPath, String entityPath); static synchronized IPathHelper getOrCreateHelper(String basePath, String rootPath, String entityPath); @Override String getPath(EntityType entityType); @Override String getPath(EntityType entityType, String... childId); @Override String getRawPath(String... childId); @Override String getPath(); @Override String getPath(String... childId); @Override String getPathByService(String serviceName); @Override String getPathByService(String serviceName, String... childId); @Override String getPathByService(String serviceName, EntityType entityType, String... childId); static IPathHelper getPathHelper(EntityType entityType, String basePath); static IPathHelper getPathHelper(EntityCategory entityCategory, String basePath); }
PathHelper implements IPathHelper { @Override public String getPathByService(String serviceName) { return baseNodePath + DELIMETER + serviceName + getJoinedChildren(entityPath); } PathHelper(String basePath, String rootPath, String entityPath); static synchronized IPathHelper getOrCreateHelper(String basePath, String rootPath, String entityPath); @Override String getPath(EntityType entityType); @Override String getPath(EntityType entityType, String... childId); @Override String getRawPath(String... childId); @Override String getPath(); @Override String getPath(String... childId); @Override String getPathByService(String serviceName); @Override String getPathByService(String serviceName, String... childId); @Override String getPathByService(String serviceName, EntityType entityType, String... childId); static IPathHelper getPathHelper(EntityType entityType, String basePath); static IPathHelper getPathHelper(EntityCategory entityCategory, String basePath); static final String DELIMETER; }