public boolean checkin()

in src/main/java/org/apache/sling/servlets/post/impl/helper/JCRSupportImpl.java [71:89]


    public boolean checkin(final Resource rsrc)
    throws PersistenceException {
        final Node node = rsrc.adaptTo(Node.class);
        if (node != null) {
            try {
                if (node.isCheckedOut() && isVersionable(node)) {
                    node.getSession().getWorkspace().getVersionManager().checkin(node.getPath());
                    return true;
                }
            } catch (final AccessDeniedException e) {
                throw new PreconditionViolatedPersistenceException(e.getMessage(), e, rsrc.getPath(), null);
            } catch (final UnsupportedRepositoryOperationException|InvalidItemStateException|LockException e) { 
                throw new TemporaryPersistenceException(e.getMessage(), e, rsrc.getPath(), null);
            } catch ( final RepositoryException re) {
                throw new PersistenceException(re.getMessage(), re, rsrc.getPath(), null);
            }
        }
        return false;
    }