Feature/acs 3555 add custom embedded workflow license code (#1420)

* ACS-3555 Add license code for custom embedded workflow

* ACS-3555 remove unused import
This commit is contained in:
Sara
2022-09-22 11:14:46 +01:00
committed by GitHub
parent b1282cba89
commit 19a061dc04
2 changed files with 17 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
* #%L * #%L
* Alfresco Repository * Alfresco Repository
* %% * %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited * Copyright (C) 2005 - 2022 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
@@ -25,7 +25,6 @@
*/ */
package org.alfresco.repo.descriptor; package org.alfresco.repo.descriptor;
import java.security.Principal;
import java.util.Date; import java.util.Date;
import java.util.Properties; import java.util.Properties;
@@ -125,6 +124,15 @@ public class DescriptorStartupLog extends AbstractLifecycleBean
{ {
msg += ", NO CLUSTER"; msg += ", NO CLUSTER";
} }
if(license.isCustomEmbeddedWorkflowEnabled())
{
msg += ", customEmbeddedWorkflow:enabled";
}
else
{
msg += ", NO CUSTOM EMBEDDED WORKFLOW";
}
String holder = license.getHolderOrganisation(); String holder = license.getHolderOrganisation();
if (holder != null) if (holder != null)

View File

@@ -2,7 +2,7 @@
* #%L * #%L
* Alfresco Repository * Alfresco Repository
* %% * %%
* Copyright (C) 2005 - 2016 Alfresco Software Limited * Copyright (C) 2005 - 2022 Alfresco Software Limited
* %% * %%
* This file is part of the Alfresco software. * This file is part of the Alfresco software.
* If the software was purchased under a paid Alfresco license, the terms of * If the software was purchased under a paid Alfresco license, the terms of
@@ -139,6 +139,12 @@ public interface LicenseDescriptor
* @return <code>true</code> if the license allows cryptodoc * @return <code>true</code> if the license allows cryptodoc
*/ */
boolean isCryptodocEnabled(); boolean isCryptodocEnabled();
/**
* Does this license allow custom embedded workflows?
* @return <code>true</code> if the license allows custom embedded workflows
*/
boolean isCustomEmbeddedWorkflowEnabled();
/** /**
* ATS Transformation Server Expiry Date * ATS Transformation Server Expiry Date