Merge remote-tracking branch 'upstream/master' into w2p-70504_New-user-registration

This commit is contained in:
Yana De Pauw
2020-06-29 10:42:16 +02:00
179 changed files with 8448 additions and 4608 deletions

View File

@@ -1,64 +0,0 @@
/**
* Enum representing the Action Type of a Resource Policy
*/
export enum ActionType {
/**
* Action of reading, viewing or downloading something
*/
READ = 0,
/**
* Action of modifying something
*/
WRITE = 1,
/**
* Action of deleting something
*/
DELETE = 2,
/**
* Action of adding something to a container
*/
ADD = 3,
/**
* Action of removing something from a container
*/
REMOVE = 4,
/**
* Action of performing workflow step 1
*/
WORKFLOW_STEP_1 = 5,
/**
* Action of performing workflow step 2
*/
WORKFLOW_STEP_2 = 6,
/**
* Action of performing workflow step 3
*/
WORKFLOW_STEP_3 = 7,
/**
* Action of performing a workflow abort
*/
WORKFLOW_ABORT = 8,
/**
* Default Read policies for Bitstreams submitted to container
*/
DEFAULT_BITSTREAM_READ = 9,
/**
* Default Read policies for Items submitted to container
*/
DEFAULT_ITEM_READ = 10,
/**
* Administrative actions
*/
ADMIN = 11,
}

View File

@@ -2,7 +2,7 @@
/**
* Class representing a query parameter (query?fieldName=fieldValue) used in FindListOptions object
*/
export class SearchParam {
export class RequestParam {
constructor(public fieldName: string, public fieldValue: any) {
}

View File

@@ -6,9 +6,6 @@ import { ConfigObject } from '../config/models/config.model';
import { FacetValue } from '../../shared/search/facet-value.model';
import { SearchFilterConfig } from '../../shared/search/search-filter-config.model';
import { IntegrationModel } from '../integration/models/integration.model';
import { RegistryMetadataschemasResponse } from '../registry/registry-metadataschemas-response.model';
import { RegistryMetadatafieldsResponse } from '../registry/registry-metadatafields-response.model';
import { RegistryBitstreamformatsResponse } from '../registry/registry-bitstreamformats-response.model';
import { PaginatedList } from '../data/paginated-list';
import { SubmissionObject } from '../submission/models/submission-object.model';
import { DSpaceObject } from '../shared/dspace-object.model';
@@ -41,48 +38,6 @@ export class DSOSuccessResponse extends RestResponse {
}
}
/**
* A successful response containing a list of MetadataSchemas wrapped in a RegistryMetadataschemasResponse
*/
export class RegistryMetadataschemasSuccessResponse extends RestResponse {
constructor(
public metadataschemasResponse: RegistryMetadataschemasResponse,
public statusCode: number,
public statusText: string,
public pageInfo?: PageInfo
) {
super(true, statusCode, statusText);
}
}
/**
* A successful response containing a list of MetadataFields wrapped in a RegistryMetadatafieldsResponse
*/
export class RegistryMetadatafieldsSuccessResponse extends RestResponse {
constructor(
public metadatafieldsResponse: RegistryMetadatafieldsResponse,
public statusCode: number,
public statusText: string,
public pageInfo?: PageInfo
) {
super(true, statusCode, statusText);
}
}
/**
* A successful response containing a list of BitstreamFormats wrapped in a RegistryBitstreamformatsResponse
*/
export class RegistryBitstreamformatsSuccessResponse extends RestResponse {
constructor(
public bitstreamformatsResponse: RegistryBitstreamformatsResponse,
public statusCode: number,
public statusText: string,
public pageInfo?: PageInfo
) {
super(true, statusCode, statusText);
}
}
/**
* A successful response containing exactly one MetadataSchema
*/