Fix ACE model missing license (#1023)

This commit is contained in:
Yi (Alan) Wang 2018-03-12 12:50:06 -07:00 committed by GitHub
parent 2ceb0a086e
commit 2ce34407c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,16 @@
/**
* Copyright 2015 LinkedIn Corp. All rights reserved.
*
* 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.
*/
package wherehows.models.table;
import java.util.List;

View File

@ -35,6 +35,7 @@ import wherehows.dao.table.DictDatasetDao;
import wherehows.dao.view.DataTypesViewDao;
import wherehows.dao.view.DatasetViewDao;
import wherehows.dao.view.OwnerViewDao;
import wherehows.models.table.AccessControlEntry;
import wherehows.models.view.DatasetCompliance;
import wherehows.models.view.DatasetOwner;
import wherehows.models.view.DatasetOwnership;
@ -326,7 +327,7 @@ public class Dataset extends Controller {
}
public static Promise<Result> getDatasetAcls(@Nonnull String datasetUrn) {
final List<?> acls;
final List<AccessControlEntry> acls;
try {
acls = ACL_DAO.getDatasetAcls(datasetUrn);
} catch (Exception e) {