Skip to content

Commit

Permalink
Merge pull request #8906 from dotCMS/release-3.3.1
Browse files Browse the repository at this point in the history
Merging into master-3.3 the changes added for the 3.3.1 release
  • Loading branch information
jgambarios committed Apr 18, 2016
2 parents 79a4892 + c051450 commit 55f3f10
Show file tree
Hide file tree
Showing 49 changed files with 1,212 additions and 1,077 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies {

compile group: 'com.dotcms.enterprise', name: 'ee', version: 'ba016a5-SNAPSHOT'
compile group: 'com.dotcms.enterprise', name: 'eelic', version: '5abf2b5-SNAPSHOT'
compile group: 'com.dotcms.enterprise', name: 'ee', version: '933f706'
compile group: 'com.dotcms.enterprise', name: 'eelic', version: '5abf2b5'

compile group: 'com.dotcms', name: 'ant-tooling-log4j', version: '1.1'

Expand Down
3 changes: 3 additions & 0 deletions deploy.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ apply plugin: 'application'

import org.gradle.api.internal.artifacts.publish.DefaultPublishArtifact

//Required for gradle 2.3 and above
mainClassName = ' '

repositories {
maven { url "http://repo.dotcms.com/artifactory/libs-release" }
maven { url "http://repo.dotcms.com/artifactory/libs-snapshot-local" }
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.3rd.party/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.actionlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.custom.dwr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {
dependencies {

compile fileTree(dir: configurations.resourcesLibsFolder, include: '*.jar')
compile(group: 'com.dotcms', name: 'dotcms', version: '3.2.4') {
compile(group: 'com.dotcms', name: 'dotcms', version: '3.3.1') {
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.custom.spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {

//Compile against dotCMS 3.1
compile fileTree(dir: configurations.resourcesLibsFolder, include: '*.jar')
compile(group: 'com.dotcms', name: 'dotcms', version: '3.2.4') {
compile(group: 'com.dotcms', name: 'dotcms', version: '3.3.1') {
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.hooks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,33 @@
package com.dotmarketing.osgi.hooks;

import com.dotcms.repackage.org.apache.logging.log4j.LogManager;
import com.dotcms.repackage.org.apache.logging.log4j.core.LoggerContext;
import com.dotcms.repackage.org.osgi.framework.BundleContext;
import com.dotmarketing.business.APILocator;
import com.dotmarketing.loggers.Log4jUtil;
import com.dotmarketing.osgi.GenericBundleActivator;
import com.dotmarketing.portlets.contentlet.business.ContentletAPI;
import com.dotmarketing.util.Logger;

/**
* Created by Jonathan Gamba
* Date: 6/18/12
*/
public class Activator extends GenericBundleActivator {

private LoggerContext pluginLoggerContext;

@SuppressWarnings ("unchecked")
public void start ( BundleContext context ) throws Exception {

//Initializing log4j...
LoggerContext dotcmsLoggerContext = Log4jUtil.getLoggerContext();
//Initialing the log4j context of this plugin based on the dotCMS logger context
pluginLoggerContext = (LoggerContext) LogManager.getContext(this.getClass().getClassLoader(),
false,
dotcmsLoggerContext,
dotcmsLoggerContext.getConfigLocation());

//Initializing services...
initializeServices ( context );

Expand All @@ -25,13 +39,17 @@ public void start ( BundleContext context ) throws Exception {
ContentletAPI conAPI = APILocator.getContentletAPI();

Long count = conAPI.contentletCount();
System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
System.out.println( "ContentletAPI.contentletCount() = " + count );
System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++");
Logger.info(this, "ContentletAPI.contentletCount() = " + count);
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++");
}

public void stop ( BundleContext context ) throws Exception {

unregisterServices( context );

//Shutting down log4j in order to avoid memory leaks
Log4jUtil.shutdown(pluginLoggerContext);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import com.dotmarketing.beans.Host;
import com.dotmarketing.beans.Permission;
import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
import com.dotmarketing.portlets.categories.model.Category;
import com.dotmarketing.portlets.contentlet.business.ContentletAPIPostHookAbstractImp;
import com.dotmarketing.portlets.contentlet.business.DotReindexStateException;
import com.dotmarketing.portlets.contentlet.model.Contentlet;
import com.dotmarketing.portlets.structure.model.ContentletRelationships;
import com.dotmarketing.util.Logger;
Expand All @@ -22,9 +24,9 @@ public SamplePostContentHook () {
@Override
public long contentletCount ( long returnValue ) throws DotDataException {

System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
System.out.println( "INSIDE SamplePostContentHook.contentletCount() -->" + String.valueOf( returnValue ) );
System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "INSIDE SamplePostContentHook.contentletCount() -->" + String.valueOf( returnValue ) );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );

return super.contentletCount( returnValue );
}
Expand All @@ -35,12 +37,8 @@ public void checkin ( Contentlet currentContentlet, ContentletRelationships rela
Logger.info( this, "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info( this, "INSIDE SamplePostContentHook.checkin()" );
Logger.info( this, "+++++++++++++++++++++++++++++++++++++++++++++++" );
super.checkin( currentContentlet, relationshipsData, cats, selectedPermissions, user, respectFrontendRoles, returnValue );
}

@Override
public void deleteByHost(Host host, User user, boolean respectFrontendRoles) {
// TODO Auto-generated method stub
super.checkin( currentContentlet, relationshipsData, cats, selectedPermissions, user, respectFrontendRoles, returnValue );
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.dotmarketing.osgi.hooks;

import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
import com.dotmarketing.portlets.contentlet.business.ContentletAPIPreHookAbstractImp;
import com.dotmarketing.portlets.contentlet.model.Contentlet;
import com.dotmarketing.portlets.structure.model.ContentletRelationships;
Expand All @@ -24,25 +25,21 @@ public SamplePreContentHook () {
@Override
public boolean contentletCount () throws DotDataException {

System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
System.out.println( "INSIDE SamplePreContentHook.contentletCount()" );
System.out.println( "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "INSIDE SamplePreContentHook.contentletCount()" );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );

return super.contentletCount();
}

@Override
public boolean checkin(Contentlet currentContentlet, ContentletRelationships relationshipsData, List<Category> cats, List<Permission> selectedPermissions, User user, boolean respectFrontendRoles) {
Logger.info(this,"+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this,"INSIDE SamplePreContentHook.checkin()" );
Logger.info(this,"+++++++++++++++++++++++++++++++++++++++++++++++" );
return super.checkin(currentContentlet, relationshipsData, cats,selectedPermissions, user, respectFrontendRoles);
}

@Override
public boolean deleteByHost(Host host, User user, boolean respectFrontendRoles) {
// TODO Auto-generated method stub
return false;
}
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );
Logger.info(this, "INSIDE SamplePreContentHook.checkin()" );
Logger.info(this, "+++++++++++++++++++++++++++++++++++++++++++++++" );

return super.checkin(currentContentlet, relationshipsData, cats,selectedPermissions, user, respectFrontendRoles);
}

}
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.job/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.override/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.portlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.rest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.servlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {
dependencies {
compile fileTree(dir: '../../../../dotCMS/WEB-INF/felix/load', include: '*.jar')//As this example depends on the com.dotcms.service example
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.tuckey/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/osgi/com.dotcms.viewtool/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repositories {

dependencies {
compile fileTree(dir: 'src/main/resources/libs', include: '*.jar')
compile (group: 'com.dotcms', name: 'dotcms', version: '3.2.4'){
compile (group: 'com.dotcms', name: 'dotcms', version: '3.3.1'){
transitive = true
}
providedCompile "javax.servlet:servlet-api:2.5"
Expand Down
16 changes: 8 additions & 8 deletions dotCMS/WEB-INF/log4j/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@

<Properties>
<Property name="DOTCMS_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms.log</Property>
<Property name="DOTCMS_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="DOTCMS_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-%i.log.gz</Property>
<Property name="SECURITY_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-security.log</Property>
<Property name="SECURITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-security-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="SECURITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-security-%i.log.gz</Property>
<Property name="SITESEARCH_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-sitesearch.log</Property>
<Property name="SITESEARCH_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-sitesearch-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="SITESEARCH_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-sitesearch-%i.log.gz</Property>
<Property name="AUDIT_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-adminaudit.log</Property>
<Property name="AUDIT_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-adminaudit-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="AUDIT_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-adminaudit-%i.log.gz</Property>
<Property name="USERACTIVITY_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-userActivity.log</Property>
<Property name="USERACTIVITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-userActivity-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="USERACTIVITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-userActivity-%i.log.gz</Property>
<Property name="TEST_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-test.log</Property>
<Property name="TEST_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-test-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="TEST_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-test-%i.log.gz</Property>
<Property name="PUSHPUBLISH_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-pushpublish.log</Property>
<Property name="PUSHPUBLISH_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-pushpublish-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="PUSHPUBLISH_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-pushpublish-%i{BundleId}.log.gz</Property>
<Property name="VELOCITY_LOG_FILE">${sys:DOTCMS_LOGGING_HOME}/dotcms-velocity.log</Property>
<Property name="VELOCITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/$${date:yyyy-MM}/dotcms-velocity-%d{MM-dd-yyyy}-%i.log.gz</Property>
<Property name="VELOCITY_FILENAME_PATTERN">${sys:DOTCMS_LOGGING_HOME}/archive/dotcms-velocity-%i.log.gz</Property>
<Property name="PATTERN">%-5level %d %c:%M(%L): %m%n</Property>
<Property name="CONSOLE_PATTERN">%-5level %d %c:%M(%L): %m%n</Property>
<Property name="MESSAGE_PATTERN">[%d{dd/MM/yy HH:mm:ss:SSS z}] %5p %c{2}: %m%n</Property>
Expand Down
2 changes: 1 addition & 1 deletion dotCMS/html/common/nav_sub_inc.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ dojo.require("dojo.cookie");
<div style="text-align:center;font-size:77%;color:#999;"><%=LanguageUtil.get(pageContext, "Toll-Free") %>+1 877-936-8267</div>
<div style="text-align:center;font-size:146.5%;color:#999;"><%=LanguageUtil.get(pageContext, "or") %></div>
<div style="text-align:center;">
<a href="http://dotcms.org/enterprise/" target="_blank"><%=LanguageUtil.get(pageContext, "Click-here-to-login-to-your-account") %></a>
<a href="https://my.dotcms.com" target="_blank"><%=LanguageUtil.get(pageContext, "Click-here-to-login-to-your-account") %></a>
</div>
</td>
</tr></table>
Expand Down
4 changes: 2 additions & 2 deletions dotCMS/html/js/dotcms/dijit/FileBrowserDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ dojo.declare("dotcms.dijit.FileBrowserDialog", [dijit._Widget, dijit._Templated]
_initialized: false,
addFileTitle: 'Upload a file',
allowFileUpload: true,
sortBy: "title",
sortByDesc: false,
sortBy: "modDate",
sortByDesc: true,
_browserFolderTree: null,

postCreate: function () {
Expand Down
12 changes: 9 additions & 3 deletions dotCMS/html/portlet/ext/contentlet/contentlet_assign_comment.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,15 @@ function validate() {
</div>
<%}%>
<div class="buttonRow">
<button dojoType="dijit.form.Button" iconClass="saveAssignIcon" onClick="validate()" type="button">
<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "save")) %>
</button>
<% if(hasPushPublishActionlet){ %>
<button dojoType="dijit.form.Button" iconClass="sServerIcon" onClick="validate()" type="button">
<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "publisher_dialog_push")) %>
</button>
<% } else { %>
<button dojoType="dijit.form.Button" iconClass="saveAssignIcon" onClick="validate()" type="button">
<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "save")) %>
</button>
<% } %>
<button dojoType="dijit.form.Button" iconClass="cancelIcon" onClick="dijit.byId('contentletWfDialog').hide()" type="button">
<%= UtilMethods.escapeSingleQuotes(LanguageUtil.get(pageContext, "cancel")) %>
</button>
Expand Down
4 changes: 3 additions & 1 deletion src/com/dotcms/publisher/business/PublishAuditStatus.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.dotcms.publisher.business;

import com.dotmarketing.util.PushPublishLogger;
import java.io.Serializable;
import java.util.Date;

Expand Down Expand Up @@ -55,13 +56,14 @@ public PublishAuditStatus() {}
public PublishAuditStatus(String bundleId) {
this.bundleId = bundleId;
this.createDate = new Date();
PushPublishLogger.log(this.getClass(), "Status Update: Pending.");
this.status = Status.BUNDLE_REQUESTED;
}

/**
* Useful to build a Audit Status with new status attribute
* from an existing status
* @param bundleId
* @param origin
* @param status
*/
public PublishAuditStatus(PublishAuditStatus origin, Status status) {
Expand Down
Loading

0 comments on commit 55f3f10

Please sign in to comment.