mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
* [ADF-2432] start adding demo shell changes for permissions * [ADF-2432] permission display component - phase 1 * [ADF-2432] added permissions to node query| * [ADF-2432] display permission table for node - phase 2 * [ADF-2432] fixed layout for display permissions * [ADF-2432] added test and documentation for permission display * [ADF-2432] fixed wrong rebase changes * [ADF-2432] added peer review changes * [ADF-2432] added license header to mock file
186 lines
4.8 KiB
TypeScript
186 lines
4.8 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2016 Alfresco Software, Ltd.
|
|
*
|
|
* 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.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
export const fakeNodeWithPermissions: any = {
|
|
'aspectNames': [
|
|
'cm:auditable',
|
|
'cm:taggable',
|
|
'cm:author',
|
|
'cm:titled',
|
|
'app:uifacets'
|
|
],
|
|
'createdAt': '2017-11-16T16:29:38.638+0000',
|
|
'isFolder': true,
|
|
'isFile': false,
|
|
'createdByUser': {
|
|
'id': 'System',
|
|
'displayName': 'System'
|
|
},
|
|
'modifiedAt': '2018-03-21T03:17:58.783+0000',
|
|
'permissions': {
|
|
'inherited': [
|
|
{
|
|
'authorityId': 'guest',
|
|
'name': 'Read',
|
|
'accessStatus': 'ALLOWED'
|
|
},
|
|
{
|
|
'authorityId': 'GROUP_EVERYONE',
|
|
'name': 'Read',
|
|
'accessStatus': 'ALLOWED'
|
|
}
|
|
],
|
|
'locallySet': [
|
|
{
|
|
'authorityId': 'GROUP_EVERYONE',
|
|
'name': 'Contributor',
|
|
'accessStatus': 'ALLOWED'
|
|
}
|
|
],
|
|
'settable': [
|
|
'Contributor',
|
|
'Collaborator',
|
|
'Coordinator',
|
|
'Editor',
|
|
'Consumer'
|
|
],
|
|
'isInheritanceEnabled': true
|
|
},
|
|
'modifiedByUser': {
|
|
'id': 'admin',
|
|
'displayName': 'PedroH Hernandez'
|
|
},
|
|
'name': 'test',
|
|
'id': 'f472543f-7218-403d-917b-7a5861257244',
|
|
'nodeType': 'cm:folder',
|
|
'properties': {
|
|
'cm:title': 'test',
|
|
'cm:author': 'yagud',
|
|
'cm:taggable': [
|
|
'e8c8fbba-03ba-4fa6-86b1-f7ad7c296409'
|
|
],
|
|
'cm:description': 'sleepery',
|
|
'app:icon': 'space-icon-default'
|
|
}
|
|
};
|
|
|
|
export const fakeNodeInheritedOnly: any = {
|
|
'aspectNames': [
|
|
'cm:auditable',
|
|
'cm:taggable',
|
|
'cm:author',
|
|
'cm:titled',
|
|
'app:uifacets'
|
|
],
|
|
'createdAt': '2017-11-16T16:29:38.638+0000',
|
|
'isFolder': true,
|
|
'isFile': false,
|
|
'createdByUser': {
|
|
'id': 'System',
|
|
'displayName': 'System'
|
|
},
|
|
'modifiedAt': '2018-03-21T03:17:58.783+0000',
|
|
'permissions': {
|
|
'inherited': [
|
|
{
|
|
'authorityId': 'guest',
|
|
'name': 'Read',
|
|
'accessStatus': 'ALLOWED'
|
|
},
|
|
{
|
|
'authorityId': 'GROUP_EVERYONE',
|
|
'name': 'Read',
|
|
'accessStatus': 'ALLOWED'
|
|
}
|
|
],
|
|
'settable': [
|
|
'Contributor',
|
|
'Collaborator',
|
|
'Coordinator',
|
|
'Editor',
|
|
'Consumer'
|
|
],
|
|
'isInheritanceEnabled': true
|
|
},
|
|
'modifiedByUser': {
|
|
'id': 'admin',
|
|
'displayName': 'PedroH Hernandez'
|
|
},
|
|
'name': 'test',
|
|
'id': 'f472543f-7218-403d-917b-7a5861257244',
|
|
'nodeType': 'cm:folder',
|
|
'properties': {
|
|
'cm:title': 'test',
|
|
'cm:author': 'yagud',
|
|
'cm:taggable': [
|
|
'e8c8fbba-03ba-4fa6-86b1-f7ad7c296409'
|
|
],
|
|
'cm:description': 'sleepery',
|
|
'app:icon': 'space-icon-default'
|
|
}
|
|
};
|
|
export const fakeNodeWithOnlyLocally: any = {
|
|
'aspectNames': [
|
|
'cm:auditable',
|
|
'cm:taggable',
|
|
'cm:author',
|
|
'cm:titled',
|
|
'app:uifacets'
|
|
],
|
|
'createdAt': '2017-11-16T16:29:38.638+0000',
|
|
'isFolder': true,
|
|
'isFile': false,
|
|
'createdByUser': {
|
|
'id': 'System',
|
|
'displayName': 'System'
|
|
},
|
|
'modifiedAt': '2018-03-21T03:17:58.783+0000',
|
|
'permissions': {
|
|
'locallySet': [
|
|
{
|
|
'authorityId': 'GROUP_EVERYONE',
|
|
'name': 'Contributor',
|
|
'accessStatus': 'ALLOWED'
|
|
}
|
|
],
|
|
'settable': [
|
|
'Contributor',
|
|
'Collaborator',
|
|
'Coordinator',
|
|
'Editor',
|
|
'Consumer'
|
|
],
|
|
'isInheritanceEnabled': true
|
|
},
|
|
'modifiedByUser': {
|
|
'id': 'admin',
|
|
'displayName': 'PedroH Hernandez'
|
|
},
|
|
'name': 'test',
|
|
'id': 'f472543f-7218-403d-917b-7a5861257244',
|
|
'nodeType': 'cm:folder',
|
|
'properties': {
|
|
'cm:title': 'test',
|
|
'cm:author': 'yagud',
|
|
'cm:taggable': [
|
|
'e8c8fbba-03ba-4fa6-86b1-f7ad7c296409'
|
|
],
|
|
'cm:description': 'sleepery',
|
|
'app:icon': 'space-icon-default'
|
|
}
|
|
};
|