mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
finalize config and mapping
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { AdminNotifyMessage } from "./admin-notify-message.model";
|
||||
import { searchResultFor } from "../../../shared/search/search-result-element-decorator";
|
||||
import { SearchResult } from "../../../shared/search/models/search-result.model";
|
||||
|
||||
|
||||
@searchResultFor(AdminNotifyMessage)
|
||||
export class AdminNotifySearchResult extends SearchResult<AdminNotifyMessage> {
|
||||
}
|
@@ -0,0 +1,31 @@
|
||||
import { deserialize, inheritSerialization } from 'cerialize';
|
||||
import { typedObject } from "../../../core/cache/builders/build-decorators";
|
||||
import { ADMIN_NOTIFY_MESSAGE } from "./admin-notify-message.resource-type";
|
||||
import { excludeFromEquals } from "../../../core/utilities/equals.decorators";
|
||||
import { DSpaceObject } from "../../../core/shared/dspace-object.model";
|
||||
|
||||
/**
|
||||
* A message that includes admin notify info
|
||||
*/
|
||||
@typedObject
|
||||
@inheritSerialization(DSpaceObject)
|
||||
export class AdminNotifyMessage extends DSpaceObject {
|
||||
static type = ADMIN_NOTIFY_MESSAGE;
|
||||
|
||||
/**
|
||||
* The type of the message
|
||||
*/
|
||||
@excludeFromEquals
|
||||
type = ADMIN_NOTIFY_MESSAGE;
|
||||
|
||||
@deserialize
|
||||
_links: {
|
||||
self: {
|
||||
href: string;
|
||||
};
|
||||
};
|
||||
|
||||
get self(): string {
|
||||
return this._links.self.href;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
import { ResourceType } from "../../../core/shared/resource-type";
|
||||
|
||||
/**
|
||||
* The resource type for AdminNotifyMessage
|
||||
*
|
||||
* Needs to be in a separate file to prevent circular
|
||||
* dependencies in webpack.
|
||||
*/
|
||||
export const ADMIN_NOTIFY_MESSAGE = new ResourceType('message');
|
Reference in New Issue
Block a user