Commit b69f4d3c authored by Ate Douma's avatar Ate Douma

TRIVIAL cleanup master

parent 7e0ce1ed

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

*.iml
*.log
*.tmp
/.idea/
.classpath
.project
.settings
.DS_Store
target/
/engine/workspaces/
This diff is collapsed.
Hippo Repository
Copyright 2007-2018 Hippo B.V. (http://www.onehippo.com)
This product includes software developed by:
Hippo B.V., Amsterdam, The Netherlands (http://www.onehippo.com/);
The Apache Software Foundation (http://www.apache.org/).
NOTICE: Only our own original work is licensed under the terms of the
Apache License Version 2.0. The licenses of some libraries might impose
different redistribution or general licensing terms than those stated in the
Apache License. Users and redistributors are hereby requested to verify these
conditions and agree upon them.
========================================
How to test and build Hippo Repository
========================================
1. Introduction
Very brief introduction to how to build and test Hippo Repository!
2. Requirements --
(1) Java 1.8
(2) Maven 3.0.4+
3. Build
(1) Build with short running test but no integration tests
$ mvn clean install
(2) Build with skipping tests
$ mvn clean install -DskipTests
(3) Build with integration tests
$ mvn clean install -Pintegration
(4) Build with Hippo Snapshot Repository Flag
- Note: Mostly you do not need this when you check out and build a released version!
Needed only when you build the TRUNK having snapshot dependencies!
- Note: Please beware that the `-Dhippo.snapshots' option is effective only when you define
a Maven profile with this property in your settings.xml for the Hippo snapshot repository.
For detail, see https://wiki.onehippo.com/display/CMS7/Build+Hippo+CMS+7.5+or+higher+from+scratch
- Add `-Dhippo.snapshots' for snapshot dependencies.
For example,
$ mvn clean install -Dhippo.snapshots -DskipTests
# This is not the branch you're looking for...
BloomReach only provides the git trees for the release tags of Hippo CMS, as explained on https://www.onehippo.org/about/open-source-release-policy.html
To checkout the code for a specific release tag, after cloning this repository, use the following:
## to show the available tags
git tag
## to checkout a specific tag
git checkout <tag name>
## to modify a project
If you want to make modifications to a project, for example to create a patch, create a new fork branch from the specific tag like this:
git checkout -b forked-<tag name> <tag name>
For the latter, also see the **Build from Source** documentation at https://www.onehippo.org/library/development/build-hippo-cms-from-scratch.html
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2007-2018 Hippo B.V. (http://www.onehippo.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-repository</artifactId>
<version>5.3.0-SNAPSHOT</version>
</parent>
<name>Repository API</name>
<description>Hippo Repository specific extensions to the JCR API</description>
<artifactId>hippo-repository-api</artifactId>
<dependencies>
<dependency>
<groupId>javax.jcr</groupId>
<artifactId>jcr</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-cms7-commons</artifactId>
</dependency>
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-services</artifactId>
</dependency>
<!-- test -->
<dependency>
<groupId>org.onehippo.cms7</groupId>
<artifactId>hippo-cms-testutils</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<sourcepath>${basedir}/src/main/java</sourcepath>
</configuration>
</plugin>
</plugins>
</build>
</project>
/*
* Copyright 2008-2013 Hippo B.V. (http://www.onehippo.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.hippoecm.repository;
import javax.jcr.Credentials;
import javax.jcr.LoginException;
import javax.jcr.Node;
import javax.jcr.Repository;
import javax.jcr.RepositoryException;
import javax.jcr.Session;
import javax.jcr.SimpleCredentials;
import javax.transaction.NotSupportedException;
import javax.transaction.TransactionManager;
import javax.transaction.UserTransaction;
import org.onehippo.repository.bootstrap.InitializationProcessor;
import org.hippoecm.repository.api.ReferenceWorkspace;
import org.hippoecm.repository.api.RepositoryMap;
/**
* Instances of this class represent a connection to the Repository. This interface is mainly provided to add some
* convenience methods, additional functionality and provide a basis for starting transactional access to the
* repository. The primary usage is to use create an authenticated session which can be used to retrieve
* and store data. For this usage, some convenience login() methods are accessible though this interface, but these
* are essentially the same as implemented in the JSR-170 based JCR repository, as would be returned by the method
* getRepository().
* @see javax.jcr.Repository
*/
public interface HippoRepository {
/**
* Creates a new Session for the current user, which might involve opening an anonymous session.
* If a user identity and credentials are available through the application container,
* then use JAAS to obtain the credentials and use login(SimpleCredentials).
* @see javax.jcr.Repository#login()
*/
public Session login() throws LoginException, RepositoryException;
/**
* Creates a new Session for the user identifier with the indicated username and password.
* @param username the username to use as part of the credentials
* @param password the password to use as part of the credentials
* @see javax.jcr.Repository#login(javax.jcr.Credentials)
*/
public Session login(String username, char[] password) throws LoginException, RepositoryException;
/**