63838: Add typedoc comments and fix unused method

This commit is contained in:
Yana De Pauw
2019-08-12 15:53:10 +02:00
parent 7d4987da5c
commit 1bf9693952
2 changed files with 9 additions and 5 deletions

View File

@@ -22,11 +22,6 @@ const ITEM_EDIT_DELETE_PATH = 'delete';
const ITEM_EDIT_MOVE_PATH = 'move';
export function getItemEditMovePath(id: string) {
return new URLCombiner(getItemEditPath(id), ITEM_EDIT_MOVE_PATH);
}
/**
* Routing module that handles the routing for the Edit Item page administrator functionality
*/

View File

@@ -122,6 +122,10 @@ export class ItemDataService extends DataService<Item> {
);
}
/**
* Get the endpoint to move the item
* @param itemId
*/
public getMoveItemEndpoint(itemId: string): Observable<string> {
return this.halService.getEndpoint(this.linkPath).pipe(
map((endpoint: string) => this.getIDHref(endpoint, itemId)),
@@ -129,6 +133,11 @@ export class ItemDataService extends DataService<Item> {
);
}
/**
* Move the item to a different owning collection
* @param itemId
* @param collection
*/
public moveToCollection(itemId: string, collection: Collection): Observable<RestResponse> {
const options: HttpOptions = Object.create({});
let headers = new HttpHeaders();