[ADF-2553] added select box and updating role (#3148)

* [ADF-2553] start adding dropdown

* [ADF-2553] added select box and updating role

* [ADF-2553] added some fixes

* [ADF-2554] added test for component phase 1

* [ADF-2553] fixed error and added tests

* [ADF-2553] added documentation and improved api call
This commit is contained in:
Vito
2018-04-08 16:25:51 +01:00
committed by Eugenio Romano
parent 1d517d3a8a
commit 79789cb070
13 changed files with 599 additions and 30 deletions

View File

@@ -15,19 +15,22 @@
* limitations under the License.
*/
export class PermissionDisplayModel {
accessStatus: string;
authorityId: string;
name: string;
import { PermissionElement } from 'alfresco-js-api';
export class PermissionDisplayModel implements PermissionElement {
authorityId?: string;
name?: string;
accessStatus?: PermissionElement.AccessStatusEnum;
isInherited: boolean = false;
icon: string;
constructor(obj?: any) {
if (obj) {
this.accessStatus = obj.accessStatus;
this.authorityId = obj.authorityId;
this.name = obj.name;
this.isInherited = obj.isInherited;
this.accessStatus = obj.accessStatus;
this.isInherited = obj.isInherited !== null && obj.isInherited !== undefined ? obj.isInherited : false;
this.icon = obj.icon ? obj.icon : 'lock_open';
}
}