Package org.nuxeo.launcher.connect
Class ConnectRegistrationBroker
java.lang.Object
org.nuxeo.launcher.connect.ConnectRegistrationBroker
- Since:
- 8.3
- Author:
- Arnaud Kervern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.nuxeo.connect.data.ConnectProject>
getAvailableProjects
(String username, char[] password) org.nuxeo.connect.data.ConnectProject
getProjectByName
(String projectName, List<org.nuxeo.connect.data.ConnectProject> availableProjects) Find a project by its symbolic name, ignoring casevoid
registerLocal
(String strCLID, String description) void
registerRemote
(String username, char[] password, String projectId, org.nuxeo.connect.connector.NuxeoClientInstanceType type, String description) protected static org.nuxeo.connect.registration.ConnectRegistrationService
void
Renews a registration.
-
Constructor Details
-
ConnectRegistrationBroker
public ConnectRegistrationBroker()
-
-
Method Details
-
registration
protected static org.nuxeo.connect.registration.ConnectRegistrationService registration() -
registerLocal
public void registerLocal(String strCLID, String description) throws IOException, ConfigurationException - Throws:
IOException
ConfigurationException
-
registerRemote
public void registerRemote(String username, char[] password, String projectId, org.nuxeo.connect.connector.NuxeoClientInstanceType type, String description) throws IOException, ConfigurationException - Throws:
IOException
ConfigurationException
-
remoteRenewRegistration
public void remoteRenewRegistration() throws IOException, org.nuxeo.connect.registration.RegistrationExceptionRenews a registration.- Throws:
IOException
org.nuxeo.connect.registration.RegistrationException
- Since:
- 8.10-HF15
-
getProjectByName
public org.nuxeo.connect.data.ConnectProject getProjectByName(String projectName, List<org.nuxeo.connect.data.ConnectProject> availableProjects) Find a project by its symbolic name, ignoring case- Parameters:
projectName
- project symbolic nameavailableProjects
- projects in which to to look forproject
- Returns:
- the project or null if not found
-
getAvailableProjects
public List<org.nuxeo.connect.data.ConnectProject> getAvailableProjects(String username, char[] password) throws ConfigurationException - Throws:
ConfigurationException
-