Example #1
0
 public Map<String, String> getBranding() throws Exception {
   String swDir = System.getProperty("simpl4.dir");
   File file = new File(swDir, BRANDING_PATH);
   if (!file.exists()) {
     file = new File(swDir, BRANDING_EXAMPLE_PATH);
   }
   String ret = readFileToString(file);
   return (Map) m_ds.deserialize(ret);
 }
Example #2
0
 public Map<String, List> getNamespace(String name) throws Exception {
   StoreDesc sdesc = StoreDesc.getGlobalData();
   String ret = m_gitService.getContent(sdesc.getRepository(), format(NAMESPACE_PATH, name));
   return (Map) m_ds.deserialize(ret);
 }