Interface CDOAdminHandler2
-
- All Superinterfaces:
CDOAdminHandler
public interface CDOAdminHandler2 extends CDOAdminHandler
An optional extension of theCDOAdminHandlerinterface that provides additional queries and control functions, such as determination of whether deletion of a particular repository is feasible even to attempt.- Since:
- 4.2
- Author:
- Christian W. Damus (CEA LIST)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.server.spi.admin.CDOAdminHandler
CDOAdminHandler.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticateAdministrator()Authenticates the user as a server administrator, if applicable.booleancanDelete(IRepository delegate)Queries whether a givenrepositorycan be deleted.-
Methods inherited from interface org.eclipse.emf.cdo.server.spi.admin.CDOAdminHandler
createRepository, deleteRepository, getType
-
-
-
-
Method Detail
-
canDelete
boolean canDelete(IRepository delegate)
Queries whether a givenrepositorycan be deleted. If it cannot, then it will not be deactivated and the delete operation will fail with an exception back to the client.
-
authenticateAdministrator
void authenticateAdministrator() throws java.lang.SecurityExceptionAuthenticates the user as a server administrator, if applicable.- Throws:
java.lang.SecurityException- if authentication is required and fails
-
-