Package javax.jcr

Examples of javax.jcr.Session.logout()


      assertNotNull(repos);
      ManageableRepository repo = repos.getDefaultRepository();
      assertNotNull(repo);
      Session session = repo.getSystemSession("portal-test");
      assertNotNull(session);
      session.logout();
   }
}
View Full Code Here


        }

        System.out.println("Total count: " + count);
        System.out.println("Total time: " + time);

        session.logout();
    }

    private Iterator<ItemInfo> getBatch() {
        return filterIterator(itemInfoStore.getItemInfos(), new Predicate<ItemInfo>() {
            public boolean evaluate(ItemInfo value) {
View Full Code Here

                RepositoryUtil.registerSlingNodeTypes(adminSession);
        } catch ( final IOException ioe ) {
            throw new RepositoryException(ioe);
        } finally {
            if ( adminSession != null ) {
                adminSession.logout();
            }
        }
      } else {
        this.repository = repositoryOrNull;
      }
View Full Code Here

            // and compile
            return mapResult(compiler.compile(units, options), srcFiles, units);
        } finally {
            if ( session != null ) {
                session.logout();
            }
        }
    }

    /**
 
View Full Code Here

        dump(session.getRootNode());

        // session.logout();
        logger.info("dumpRepo: ======  END  =====");

        session.logout();
    }

    private void dump(Node node) throws RepositoryException {
        if (node.getPath().equals("/jcr:system")
                || node.getPath().equals("/rep:policy")) {
View Full Code Here

                }
            } catch(RepositoryException re) {
                resultLog.debug("Login as [{}] failed, as expected", username);
            } finally {
                if(s != null) {
                    s.logout();
                }
            }
        }

        if(checked==0) {
View Full Code Here

        Session l = RepositoryProvider.instance().getRepository()
                .loginAdministrative(null);
        try {
            l.removeItem("/var");
            l.save();
            l.logout();
        } catch (Exception e) {
            l.refresh(false);
            l.logout();
        }
        registry = (AnnouncementRegistryImpl) OSGiFactory.createITopologyAnnouncementRegistry(
View Full Code Here

            l.removeItem("/var");
            l.save();
            l.logout();
        } catch (Exception e) {
            l.refresh(false);
            l.logout();
        }
        registry = (AnnouncementRegistryImpl) OSGiFactory.createITopologyAnnouncementRegistry(
                resourceResolverFactory, config, slingId);
    }
View Full Code Here

        } catch (final Exception re) {
            logger.info("authenticate: Generic problem trying grant User "
                + userName + " access to the Web Console", re);
        } finally {
            if (session != null) {
                session.logout();
            }
        }

        // no success (see log)
        return null;
View Full Code Here

            Session l = RepositoryProvider.instance().getRepository()
                    .loginAdministrative(null);
            try {
                l.removeItem("/var");
                l.save();
                l.logout();
            } catch (Exception e) {
                l.refresh(false);
                l.logout();
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.