Package org.nuxeo.launcher.connect
Class ConnectRegistrationBroker
- java.lang.Object
-
- org.nuxeo.launcher.connect.ConnectRegistrationBroker
-
public class ConnectRegistrationBroker extends Object
- Since:
- 8.3
- Author:
- Arnaud Kervern
-
-
Constructor Summary
Constructors Constructor Description ConnectRegistrationBroker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<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
registration()
void
remoteRenewRegistration()
Renews a registration.
-
-
-
Method Detail
-
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.RegistrationException
Renews 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
-
-