Commit 24f0536d authored by Ate Douma's avatar Ate Douma

TRIVIAL cleanup master

parent 681d1e0a
* text=auto !eol
/LICENSE -text
/NOTICE -text
/pom.xml -text
src/main/java/org/hippoecm/hst/core/parameters/Color.java -text
src/main/java/org/hippoecm/hst/core/parameters/DocumentLink.java -text
src/main/java/org/hippoecm/hst/core/parameters/DropDownList.java -text
src/main/java/org/hippoecm/hst/core/parameters/EmptyPropertyEditor.java -text
src/main/java/org/hippoecm/hst/core/parameters/FieldGroup.java -text
src/main/java/org/hippoecm/hst/core/parameters/FieldGroupList.java -text
src/main/java/org/hippoecm/hst/core/parameters/ImageSetPath.java -text
src/main/java/org/hippoecm/hst/core/parameters/JcrPath.java -text
src/main/java/org/hippoecm/hst/core/parameters/Parameter.java -text
src/main/java/org/hippoecm/hst/core/parameters/ParametersInfo.java -text
src/main/java/org/hippoecm/hst/diagnosis/DefaultTaskImpl.java -text svneol=unset#text/plain
src/main/java/org/hippoecm/hst/diagnosis/HDC.java -text svneol=unset#text/plain
src/main/java/org/hippoecm/hst/diagnosis/NOOPTaskImpl.java -text svneol=unset#text/plain
src/main/java/org/hippoecm/hst/diagnosis/Task.java -text svneol=unset#text/plain
src/main/java/org/hippoecm/hst/diagnosis/TaskLogFormatUtils.java -text svneol=unset#text/plain
src/main/java/org/hippoecm/hst/security/AuthenticationProvider.java -text
src/main/java/org/hippoecm/hst/security/Role.java -text
src/main/java/org/hippoecm/hst/security/TransientRole.java -text
src/main/java/org/hippoecm/hst/security/TransientUser.java -text
src/main/java/org/hippoecm/hst/security/User.java -text
src/main/java/org/onehippo/cms7/event/HippoEvent.java -text
src/main/java/org/onehippo/cms7/event/HippoEventConstants.java -text
src/main/java/org/onehippo/cms7/event/HippoSecurityEvent.java -text
src/main/java/org/onehippo/cms7/event/HippoSecurityEventConstants.java -text
src/main/java/org/onehippo/cms7/logging/log4j/AbstractPropertyFilter.java -text
src/main/java/org/onehippo/cms7/logging/log4j/JndiPropertyFilter.java -text
src/main/java/org/onehippo/cms7/logging/log4j/MdcOrJndiPropertyFilter.java -text
src/main/java/org/onehippo/cms7/logging/log4j/MdcPropertyFilter.java -text
src/main/java/org/onehippo/cms7/util/WeakIdentityMap.java -text
src/main/java/org/onehippo/sso/UrlSafeBase64.java -text
src/test/java/org/hippoecm/hst/diagnosis/TestCustomHDC.java -text
src/test/java/org/hippoecm/hst/diagnosis/TestHDC.java -text svneol=unset#text/plain
src/test/java/org/onehippo/cms7/event/HippoEventTest.java -text
src/test/java/org/onehippo/sso/CredentialCipherTest.java -text
/.classpath
/.idea
/.project
/.settings
/hippo-cms7-commons.iml
/target
This diff is collapsed.
Hippo CMS7 Commons
Copyright 2012-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.
# 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 2012-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-cms7-project</artifactId>
<version>29.4-SNAPSHOT</version>
</parent>
<name>Hippo CMS7 Commons</name>
<description>Hippo CMS7 Commons</description>
<packaging>jar</packaging>
<inceptionYear>2012</inceptionYear>
<artifactId>hippo-cms7-commons</artifactId>
<version>4.3.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>provided</scope>
</dependency>
<!-- deprecated but needed for log4j1.x runtime usage supporting JndiPropertyFilter -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-1.2-api</artifactId>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>always</forkMode>
<workingDirectory>${project.build.directory}</workingDirectory>
</configuration>
</plugin>
</plugins>
</build>
<!--
Software configuration management (scm): where to find and how to get acces to the source repository
This is used by normal plugins, but also to autogenerate documentation in .../target/site/source-repository.html
-->
<scm>
<connection>scm:git:https://code.onehippo.org/cms-community/hippo-cms-commons.git</connection>
<developerConnection>scm:git:git@code.onehippo.org:cms-community/hippo-cms-commons.git</developerConnection>
<url>https://code.onehippo.org/cms-community/hippo-cms-commons</url>
</scm>
<repositories>
<repository>
<id>hippo</id>
<name>Hippo Maven 2</name>
<url>https://maven.onehippo.com/maven2/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<updatePolicy>never</updatePolicy>
</releases>
</repository>
</repositories>
<profiles>
<profile>
<id>pedantic</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<inherited>false</inherited>
<configuration>
<excludes combine.children="append">
<!-- forked AS-IS from Apache Lucene retaining its original AS2.0 license header
-->
<exclude>src/main/java/org/onehippo/cms7/util/WeakIdentityMap.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Color {
}
/*
* Copyright 2011-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.
*/
package org.hippoecm.hst.core.parameters;
import java.lang.String;import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @deprecated use {@link JcrPath} instead for picking documents. Use the {@code HstManageContentTag} to create
* documents from the channel manager.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Deprecated
public @interface DocumentLink {
/**
* Specifies the node type of the document to be searched for.
* @return the document type String
*/
String docType() default ""; //Document type is only used when a DOCUMENT type is used.
/**
* @return specifies whether to show a link to create a new document of the type as specified by the docType
*/
boolean allowCreation() default false;
/**
* @return the relative path of the folder where the document is created
*/
String docLocation() default "";
}
/*
* Copyright 2011-2017 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.hst.core.parameters;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the value of the annotated method should be selected from a drop-down list. The available options
* in the drop-down list are specified as an array of Strings.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface DropDownList {
/**
* Static list of options to show in the drop-down list. The selected option value is converted from a
* {@link String} to the return type of the annotated method.
*
* @return the options to show in the drop-down list.
*/
String[] value() default {};
/**
* Dynamic value list provider class that can return a list of options to show in the drop-down list dynamically
* from any data sources. The selected option value is converted from a {@link String} to the return type
* of the annotated method.
*
* @return dynamic value list provider class that can return a list of options to show in the drop-down list
* dynamically from any data sources.
*/
Class<? extends ValueListProvider> valueListProvider() default EmptyValueListProvider.class;
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.beans.PropertyEditor;
/**
* Marker interface for what doesn't support custom property editor
* @version $Id$
*/
public interface EmptyPropertyEditor extends PropertyEditor {
}
/*
* Copyright 2017 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.hst.core.parameters;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
/**
* A NOP implementation that can be used as the default {@link ValueListProvider} to indicate that there's no
* custom {@link ValueListProvider} configured in an annotation.
*/
public class EmptyValueListProvider implements ValueListProvider {
@Override
public List<String> getValues() {
return Collections.emptyList();
}
@Override
public String getDisplayValue(final String value) {
return getDisplayValue(value, null);
}
@Override
public String getDisplayValue(final String value, final Locale locale) {
return value;
}
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.lang.String;import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the annotated class contains a set of channel properties that have to be rendered as a group in a
* certain order. This annotation should only be used on interfaces that map to channel information.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface FieldGroup {
/**
* Returns the array of channel property names in this field group. The properties should be rendered as a group
* in the array order.
*
* @return the array of channel property names in this field group.
*/
String[] value();
/**
* Returns the title key of this field group. If the title key is present in the resource bundle of the channel
* properties class, that translated title will be rendered above the properties in this field group. By default,
* the title key of a field group is an empty string.
*
* @return the title key of this field group.
*/
String titleKey() default "";
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the annotated class contains a set of field groups that have to be rendered in a
* certain order. This annotation should only be used on interfaces that map to channel information.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface FieldGroupList {
/**
* @return the array of {@link FieldGroup}s that should be rendered in the array order.
*/
FieldGroup[] value();
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.lang.String;import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the annotated method returns the absolute path to the handle of an image set.
* This annotation should only be used on public getter methods.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface ImageSetPath {
/**
* The variant in the image set to use as the preview image in the CMS (i.e. the CND child node name).
* By default an empty string is returned, which means "use the primary item". If the given variant cannot be
* found, the primary item is used instead.
*
* @return the CND name of the image set variant to use as the preview image in the CMS.
*/
String previewVariant() default "";
/**
* The root path of the CMS configuration to use for the image picker dialog, relative to
* '/hippo:configuration/hippo:frontend/cms'. The default picker configuration is 'cms-pickers/images'.
*
* @return the root path of the CMS configuration to use for the image picker dialog, relative to
* '/hippo:configuration/hippo:frontend/cms'.
*
*/
String pickerConfiguration() default "cms-pickers/images";
/**
* The initial path to use in the CMS image picker if nothing has been selected yet. Use the path to a folder
* to initially open the image picker dialog in that folder. Use the path to the handle of an image set to
* preselect that image set.
*
* @return the initial path to use in the CMS image picker, or an empty string if the default initial path of
* the image picker should be used.
*/
String pickerInitialPath() default "";
/**
* Whether the image picker remembers the last visited folder and image. The default is 'true'.
*
* @return whether the image picker remembers the last visited folder and image.
*/
boolean pickerRemembersLastVisited() default true;
/**
* Types of nodes to be able to select in the CMS image picker. The default node type is 'hippogallery:imageset'.
*
* @return the node types to be able to select in the CMS image picker.
*/
String[] pickerSelectableNodeTypes() default { "hippogallery:imageset" };
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.lang.String;import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Indicates that the annotated method returns a JCR path that can be selected via a 'picker'. The path can be
* absolute, or relative (see {@link #isRelative()}) to the picker content root path (see {@link #pickerRootPath()}).
*
* This annotation should only be used on public getter methods.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface JcrPath {
/**
* The root path of the CMS configuration to use for the picker, relative to
* '/hippo:configuration/hippo:frontend/cms'. The default picker configuration is 'cms-pickers/documents'.
*
* @return the root path of the CMS configuration to use for the picker, relative to
* '/hippo:configuration/hippo:frontend/cms'.
*
*/
String pickerConfiguration() default "cms-pickers/documents";
/**
* The initial path to use in the picker if nothing has been selected yet. Use the path to a folder
* to initially open the picker in that folder. Use the path to the handle of a document to
* preselect that document.
*
* @return the initial path to use in the picker, or an empty string if the default initial path of
* the picker should be used.
*/
String pickerInitialPath() default "";
/**
* Whether the picker remembers the last visited path. The default is 'true'.
*
* @return whether the picker remembers the last visited path.
*/
boolean pickerRemembersLastVisited() default true;
/**
* Types of nodes to be able to select in the picker. The default list is empty, resulting in the default
* behavior of the picker.
*
* @return the node types to be able to select in the picker.
*/
String[] pickerSelectableNodeTypes() default {};
/**
* Whether this path is relative to the canonical content root path of the channel in which this annotation is
* used. The default is 'false', i.e. the path is absolute.
*
* @return whether this path is relative to the canonical content root path of the channel in which this annotation
* is used.
*/
boolean isRelative() default false;
/**
* <p>
* The root absolute path to use in the picker. This parameter allows the picker to select documents outside the channel
* content path scope. However it is still restricted by authorization rules. The default value is empty, it means that
* the picker will use the canonical content path of the channel as the root path.
* </p>
* @return the absolute root path to use in the picker, or an empty string if the channel content path is used. If configured
* it <strong>must</strong> start with a "/".
*/
String pickerRootPath() default "";
}
/*
* Copyright 2011-2015 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.hst.core.parameters;
import java.beans.PropertyEditor;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation indicating that a getter method returns the value of an HST parameter.
*
* @see ParametersInfo
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface Parameter {
/**
* @return the name of the parameter used, also see org.hippoecm.hst.configuration.components.HstComponentConfiguration#getParameter( String ). This element is mandatory.
*/
String name();
/**
* @return <code>true</code> if this is a required parameter for the org.hippoecm.hst.core.component.HstComponent to work
*/
boolean required() default false;
/**
* @return the default value of this parameter when it is not present in the backing org.hippoecm.hst.configuration.components.HstComponentConfiguration#getParameters(). If there is
* no defaultValue defined, it is an empty String <code>""</code>
*/
String defaultValue() default "";
/**
* @return the displayName of this parameter. This can be the 'pretty' name for {@link #name()}. If missing, implementations can do
* a fallback to {@link #name()}
*/
String displayName() default "";
/**
* @return the description for this {@link org.hippoecm.hst.core.parameters.Parameter}
*/
String description() default "";
/**
* @return <code>true</code> if the parameter should not be shown in the channel manager UI
*/
boolean hideInChannelManager() default false;