Пример #1
0
 public void removeLanguage(Language l) {
   DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
   long id = l.getId();
   String idSt = String.valueOf(l.getId());
   String languageKey = l.getLanguageCode() + "-" + l.getCountryCode();
   cache.remove(getPrimaryGroup() + id, getPrimaryGroup());
   cache.remove(getPrimaryGroup() + idSt, getPrimaryGroup());
   cache.remove(getPrimaryGroup() + languageKey, getPrimaryGroup());
 }
Пример #2
0
 /* (non-Javadoc)
  * @see com.dotmarketing.business.PermissionCache#remove(java.lang.String)
  */
 protected void remove(String key) {
   key = primaryGroup + key;
   try {
     cache.remove(key, primaryGroup);
   } catch (Exception e) {
     Logger.debug(this, "Cache not able to be removed", e);
   }
 }
Пример #3
0
 @Override
 public void removeLanguageKeys(String langCode, String countryCode) {
   DotCacheAdministrator cache = CacheLocator.getCacheAdministrator();
   String languageKey =
       getPrimaryGroup()
           + "_Keys_"
           + (countryCode != null ? langCode + "_" + countryCode : langCode);
   cache.remove(languageKey, getPrimaryGroup());
 }