mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
Added comments and some refactoring to new files
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user