}
public String getResourcesDir(){
- return getConfigRootDir() + File.separator + "resources";
+ return getConfigRootDir() + File.separator + RESOURCES_DIR_NAME;
}
+
+
+ /**
+ * Returns a list of tenant identifiers (tenant IDs).
+ *
+ * @return a list of tenant IDs
+ */
+ public List<String> getTenantIds() {
+ List<String> tenantIds = new ArrayList<String>();
+ String tenantId;
+ Hashtable<String, TenantBindingType> tenantBindings = getTenantBindings();
+ if (tenantBindings != null && !tenantBindings.isEmpty()) {
+ Enumeration keys = tenantBindings.keys();
+ while (keys.hasMoreElements()) {
+ tenantId = (String) keys.nextElement();
+ if (Tools.notBlank(tenantId)) {
+ tenantIds.add(tenantId);
+ }
+ }
+ }
+ return tenantIds;
+ }
}