Added comments and some refactoring to new files

This commit is contained in:
lotte
2018-08-09 11:15:58 +02:00
parent cbbdef5cfe
commit 87dcdac551
15 changed files with 263 additions and 30 deletions

View File

@@ -1,20 +1,40 @@
import { CacheableObject } from '../cache/object-cache.reducer';
import { ResourceType } from './resource-type';
import { Group } from '../eperson/models/group.model';
import { ActionType } from '../cache/models/action-type.model';
/**
* Model class for a Resource Policy
*/
export class ResourcePolicy implements CacheableObject {
/**
* The action that is allowed by this Resource Policy
*/
action: ActionType;
action: string;
/**
* The name for this Resource Policy
*/
name: string;
// TODO group should ofcourse become a group object
group: string;
/**
* The Group this Resource Policy applies to
*/
group: Group;
/**
* The link to the rest endpoint where this Resource Policy can be found
*/
self: string;
/**
* A ResourceType representing the kind of Object of this ResourcePolicy
*/
type: ResourceType;
/**
* The universally unique identifier for this Resource Policy
*/
uuid: string;
}