mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2011 Alfresco Software Limited.
|
||||
* Copyright (C) 2005-2013 Alfresco Software Limited.
|
||||
*
|
||||
* This file is part of Alfresco
|
||||
*
|
||||
@@ -18,8 +18,9 @@
|
||||
*/
|
||||
package org.alfresco.service.license;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.alfresco.service.NotAuditable;
|
||||
import org.alfresco.service.PublicService;
|
||||
|
||||
/**
|
||||
* Contract for managing licenses.
|
||||
@@ -28,11 +29,24 @@ import org.alfresco.service.PublicService;
|
||||
*/
|
||||
public interface LicenseService
|
||||
{
|
||||
//Constants for return values when loading a license from an input stream
|
||||
public static final String INPUTSTREAM_SUCCESS = "success";
|
||||
public static final String INPUTSTREAM_FAIL = "fail";
|
||||
public static final String INPUTSTREAM_RELOAD_FAIL = "reload-fail";
|
||||
|
||||
/**
|
||||
* Force license reload
|
||||
*/
|
||||
public String loadLicense();
|
||||
|
||||
/**
|
||||
* Load license from the input stream
|
||||
* @param licenseStream The input stream
|
||||
*
|
||||
* @return confirmation if the license loaded successfully.
|
||||
*/
|
||||
public String loadLicense(InputStream licenseStream);
|
||||
|
||||
/**
|
||||
* Begin the license verification loop. Throws an exception if a new .lic file has been supplied that is invalid.
|
||||
* Will quietly make the repository read only if there is no license and the repository isn't eligible for the free
|
||||
|
Reference in New Issue
Block a user