mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
[CST-9636] WIP add bulk-access-config-data.service
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import { autoserialize, autoserializeAs, deserialize } from 'cerialize';
|
||||
import { typedObject } from '../../cache/builders/build-decorators';
|
||||
import { excludeFromEquals } from '../../utilities/equals.decorators';
|
||||
import { ResourceType } from '../../shared/resource-type';
|
||||
import { HALLink } from '../../shared/hal-link.model';
|
||||
import { ConfigObject } from './config.model';
|
||||
import { AccessesConditionOption } from './config-accesses-conditions-options.model';
|
||||
|
||||
export const BULK_ACCESS_CONDITION_OPTIONS = new ResourceType('bulkAccessConditionOptions');
|
||||
|
||||
/**
|
||||
* Model class for a bulk access condition options
|
||||
*/
|
||||
@typedObject
|
||||
export class BulkAccessConditionOptions extends ConfigObject {
|
||||
static type = BULK_ACCESS_CONDITION_OPTIONS;
|
||||
|
||||
/**
|
||||
* The object type
|
||||
*/
|
||||
@excludeFromEquals
|
||||
@autoserialize
|
||||
type: ResourceType;
|
||||
|
||||
@autoserializeAs(String, 'name')
|
||||
uuid: string;
|
||||
|
||||
@autoserialize
|
||||
id: string;
|
||||
|
||||
@deserialize
|
||||
itemAccessConditionOptions: AccessesConditionOption[];
|
||||
|
||||
@deserialize
|
||||
bitstreamAccessConditionOptions: AccessesConditionOption[];
|
||||
|
||||
_links: { self: HALLink };
|
||||
}
|
Reference in New Issue
Block a user