コード例 #1
0
 public Map<String, String> getStoredPasswordsProviders() {
   Map<String, String> results = new HashMap<String, String>();
   results.put(null, user.getUsername());
   for (JCRStoreProvider provider : sessionFactory.getProviders().values()) {
     if ("storedPasswords".equals(provider.getAuthenticationType())) {
       results.put(provider.getKey(), user.getProperty("storedUsername_" + provider.getKey()));
     }
   }
   return results;
 }
コード例 #2
0
 public JCRNodeWrapper getNodeByUUID(String providerKey, String uuid)
     throws ItemNotFoundException, RepositoryException {
   JCRStoreProvider provider = sessionFactory.getProviders().get(providerKey);
   if (provider == null) {
     throw new ItemNotFoundException(uuid);
   }
   Session session = getProviderSession(provider);
   Node n = session.getNodeByIdentifier(uuid);
   return provider.getNodeWrapper(n, this);
 }