public User(String userId, NavigatorConfigurationIF navConf) { if (userId == null) userId = COMMON_USER; this.id = userId; // how many bundles? max_bundles = navConf.getProperty("maxUserBundles", DEFAULT_MAX_BUNDLES); logger.debug("max_bundles: " + max_bundles); // set default values setMVS(DEFAULT_MODEL, DEFAULT_VIEW, DEFAULT_SKIN); // bundle expiry time? bundleExpiryAge = navConf.getProperty("userBundleExpiryTime", DEFAULT_BUNDLE_EXPIRY); initialBundleExpiryAge = bundleExpiryAge; }
private String getCharacterEncoding(NavigatorApplicationIF navApp) { // ensure that request character encoding decoded correctly (bug #622) String charEnc = navApp.getConfiguration().getProperty( "defaultCharacterEncoding"); if (charEnc != null && charEnc.trim().equals("")) charEnc = null; return charEnc; }
/** * INTERNAL: Constructor which tries to retrieve the PSI for the * related topic types from the navigator configuration */ public TypeDecider(NavigatorPageIF contextTag, String type) throws MalformedURLException { if (hierUtils == null) hierUtils = new TypeHierarchyUtils(); // get URIs of reference types NavigatorConfigurationIF navConf = contextTag.getNavigatorConfiguration(); // typingTopic String refTypingTopicURL = null; if (type.equals(OCC_METADATA)) refTypingTopicURL = navConf .getProperty(NavigatorConfigurationIF.OCCTYPE_METADATA, NavigatorConfigurationIF.DEFVAL_OCCTYPE_METADATA); if (type.equals(OCC_DESCRIPTION)) refTypingTopicURL = navConf .getProperty(NavigatorConfigurationIF.OCCTYPE_DESCRIPTION, NavigatorConfigurationIF.DEFVAL_OCCTYPE_DESCRIPTION); refTypingTopicLocator = new URILocator(refTypingTopicURL); }
.getProperty(NavigatorConfigurationIF.MODULE_READER); module = new Module(location, reader_type); module.readIn(); module = (ModuleIF) obj_module; if (navConfig.getProperty(NavigatorConfigurationIF.CHECK_FOR_CHANGED_MODULES, "false").equals("true")) { if (module.hasResourceChanged()) {
ctype = navConf.getProperty(NavigatorConfigurationIF.DEF_CONTENT_TYPE, "text/html"); charEnc = navConf.getProperty(NavigatorConfigurationIF.DEF_CHAR_ENCODING, "utf-8");
String propertyValue = navConf.getProperty(propertyName); if (propertyValue != null) { try {
@Override public String toString(Object object) { if (object != null && !(object instanceof LocatorIF)) throw new OntopiaRuntimeException("Stringifiying " + object + " which is" + " not a locator!"); LocatorIF locator = (LocatorIF) object; String address = null; if (locator != null) address = locator.getExternalForm(); if (relativeToTopicmap) { // TODO: implement when clear how to access base locator. throw new OntopiaRuntimeException("UNIMPLEMENTED FEATURE!!!!"); } // special handling for null and empty locators if (locator == null || address == null || address.equals("")) { NavigatorConfigurationIF navConf = contextTag.getNavigatorConfiguration(); if (navConf != null) { if (locator == null) address = navConf.getProperty(NavigatorConfigurationIF.OCCURRENCE_NULLLOCATOR, NavigatorConfigurationIF.DEFVAL_OCC_NULLLOC); else address = navConf.getProperty(NavigatorConfigurationIF.OCCURRENCE_EMPTYLOCATOR, NavigatorConfigurationIF.DEFVAL_OCC_EMPTYLOC); } } return StringUtils.escapeHTMLEntities(address); }
else functionName = contextTag.getNavigatorConfiguration() .getProperty(NavigatorConfigurationIF.DEF_FUNC_ONTRUNCATE);
if (navConf != null) { if (content == null && NULL_VALUE != null) content = navConf.getProperty(NULL_VALUE, NULL_VALUE_ALT); else if (EMPTY_VALUE != null) content = navConf.getProperty(EMPTY_VALUE, EMPTY_VALUE_ALT);
String charenc = navApp.getConfiguration().getProperty("defaultCharacterEncoding"); if (charenc != null && charenc.trim().equals("")) charenc = null;
.getProperty(NavigatorConfigurationIF.MAX_LIST_LENGTH, NavigatorConfigurationIF.DEF_VAL_MAX_LIST_LENGTH);
.getProperty(NavigatorConfigurationIF.DEF_COMPARATOR, NavigatorConfigurationIF.DEFVAL_COMPARATOR);
.getProperty(decPropName, DEC_INTERSECTION); DeciderIF scopeDecider = null; if (context != null && !context.isEmpty()) {
String str = null; str = navConf.getProperty(NavigatorConfigurationIF.NAMESTRING_NONEXISTENT, null); if (str != null) ((CustomNameStringifier) stringifier).setStringNonExistent(str); str = navConf.getProperty(NavigatorConfigurationIF.NAMESTRING_NULLVALUE, null); if (str != null) ((CustomNameStringifier) stringifier).setStringValueNull(str); str = navConf.getProperty(NavigatorConfigurationIF.NAMESTRING_EMPTYVALUE, null); if (str != null) ((CustomNameStringifier) stringifier).setStringValueEmpty(str);
String charenc = navApp.getConfiguration().getProperty("defaultCharacterEncoding"); try { if (charenc != null && !charenc.equals(""))
String dcn = navConf.getProperty(NavigatorConfigurationIF.DEF_DECIDER, NavigatorConfigurationIF.DEFVAL_DECIDER); if (dcn.equals(NavigatorConfigurationIF.DEFVAL_DECIDER))