blob: 928d59d8c1a52e55e055a77ab8dbef18c2b0314c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* Copyright (c) 2013 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Christian W. Damus (CEA LIST) - initial API and implementation
*/
package org.eclipse.emf.cdo.server.spi.admin;
import org.eclipse.emf.cdo.server.IRepository;
/**
* An optional extension of the {@link CDOAdminHandler} interface that provides
* additional queries and control functions, such as determination of whether
* deletion of a particular repository is feasible even to attempt.
*
* @author Christian W. Damus (CEA LIST)
* @since 4.2
*/
public interface CDOAdminHandler2 extends CDOAdminHandler
{
/**
* Queries whether a given {@code repository} can be deleted. If it cannot,
* then it will not be deactivated and the delete operation will fail with
* an exception back to the client.
*/
public boolean canDelete(IRepository delegate);
/**
* Authenticates the user as a server administrator, if applicable.
*
* @throws SecurityException if authentication is required and fails
*/
public void authenticateAdministrator() throws SecurityException;
}
|