/** * Tuigwaa の基本データベースのJDBCドライバー名を返す */ public static String getDriver() { return jdbcSettings.getDriver(); }
public ContentsServiceImpl(ContentsStoreService slideService) { this.storeService = slideService; this.initPagePath = TgwResource.getProperty("tuigwaa-cms.initpagePath"); this.menuPagePath = TgwResource.getProperty("tuigwaa-cms.menupagePath"); }
/** * Tuigwaa の基本データベースの JDBC URL を返す * * @return * @throws UnsupportedEncodingException */ public static String getJdbcUrl() throws UnsupportedEncodingException { return jdbcSettings.getJdbcUrl(); }
public static final boolean isAdminUser() { HttpServletRequest request = getRequest(); String adminRole = TgwResource.getProperty("ldap.admin.rolename"); return request.isUserInRole(adminRole); }
protected Object getBean(CmsRequest req, TgwEntity entity) { TgwModelContext modelCtx = TgwRequestUtils.getCurrent() .getChildRequest(TgwModelContext.class); return modelCtx.getEntityObject(entity); }
public static ActionForward forwardPage(HttpServletRequest request, String pageName) { TgwContext.bindPageName(pageName); return WIKI_FORWARD; }
public static String toDynaConverterName(String name) { return toDynaPropertyName(toConverterFieldName(name)); }
String getJdbcUrl() throws UnsupportedEncodingException { return TgwResource.getPropertyOrNull("database.url"); }
String getJdbcUrl() throws UnsupportedEncodingException { String jdbcUrl = super.getJdbcUrl(); if (isEmbeded()) { jdbcUrl = getJDBCURLBase(); if (!jdbcUrl.endsWith("/")) { jdbcUrl += "/"; } jdbcUrl += DERBY_JDBCURL_INPROCESS_SUFFIX; } return jdbcUrl; }
public static final String getSiteBackupDirPath(String siteName) { return getSiteBackupDirPath(siteName, (String) null); }
/** * @deprecated */ public String getSiteName() { return TgwContext.getDomainName(); // return siteName; }
public TgwLogFactory(){ super(); init(); }
public String[] next() { return parse(currentLine); } // ----- [End] interface methods -----
public static String toPluginEntityName(Class clazz) { return PREFIX_ENTITYNAME + toEntityName(clazz); }
public boolean hasNext() { return getNextLine() != null; }
public static final String getUserColumnPassword() { return getProperty("security.user.column.password"); }
public static final String getUserroleColumnRole() { return getProperty("security.userrole.column.role"); }
public static final String getUserEntityName(){ return getProperty("security.user.entity.name"); }
public static final String getRoleEntityName(){ return getProperty("security.role.entity.name"); }
public static final String getRoleColumnRolename() { return getProperty("security.role.column.rolename"); }