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:
Samuel Langlois
2013-08-20 17:17:31 +00:00
parent 0a36e2af67
commit ab4ca7177f
1576 changed files with 36419 additions and 8603 deletions

View File

@@ -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