Package org.alfresco.utility.network
Class TenantConsole
- java.lang.Object
-
- org.alfresco.utility.network.HttpConsoleOperation
-
- org.alfresco.utility.network.TenantConsole
-
@Service public class TenantConsole extends HttpConsoleOperation
-
-
Field Summary
-
Fields inherited from class org.alfresco.utility.network.HttpConsoleOperation
LOG, properties, relativePath
-
-
Constructor Summary
Constructors Constructor Description TenantConsole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserModelcreateRandomTenant()booleancreateTenant(java.lang.String tenant, java.lang.String password)booleantenantExist()booleantenantExist(java.lang.String scheme, java.lang.String server, int port, java.lang.String adminUserName, java.lang.String adminPassword)Helper method that can be executed if TenantConsole is not initialized by @Autowired spring keyword-
Methods inherited from class org.alfresco.utility.network.HttpConsoleOperation
execute, fullResponseDocument, getAdminBasicAuthentication, getAlfrescoConsolePath, getHttpClient, parsedResponse
-
-
-
-
Method Detail
-
tenantExist
public boolean tenantExist() throws java.lang.Exception- Throws:
java.lang.Exception
-
tenantExist
public boolean tenantExist(java.lang.String scheme, java.lang.String server, int port, java.lang.String adminUserName, java.lang.String adminPassword) throws java.lang.ExceptionHelper method that can be executed if TenantConsole is not initialized by @Autowired spring keyword- Throws:
java.lang.Exception
-
createTenant
public boolean createTenant(java.lang.String tenant, java.lang.String password) throws java.lang.Exception- Throws:
java.lang.Exception
-
createRandomTenant
public UserModel createRandomTenant() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-