Package com.mooltiverse.oss.nyx.services
Interface GitHostingService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.mooltiverse.oss.nyx.services.Service
Service.Feature
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GitHostedRepositorycreateGitRepository(String name, String description, boolean restricted, boolean initialize)Creates a new Git repository for the currently authenticated user.voiddeleteGitRepository(String name)Deletes a Git repository for the currently authenticated user.
-
-
-
Method Detail
-
createGitRepository
GitHostedRepository createGitRepository(String name, String description, boolean restricted, boolean initialize) throws SecurityException, TransportException
Creates a new Git repository for the currently authenticated user.
Please note that if the service has been configured with repository owner and name those attributes are ignored by this method as the owner is always the authenticated user (the one owning the configured credentials) and the name is always thenameattribute.- Parameters:
name- the repository name. Cannot benulldescription- the repository description. It may benullrestricted- whentruethe repository will have private visibility, otherwise it will be publicinitialize- whentruethe repository is also initialized (usually with a default README file)- Returns:
- the object representing the newly created repository
- Throws:
SecurityException- if authentication or authorization fails or there is no currently authenticated userTransportException- if communication to the remote endpoint failsUnsupportedOperationException- if the underlying implementation does notsupporttheService.Feature.GIT_HOSTINGfeature.
-
deleteGitRepository
void deleteGitRepository(String name) throws SecurityException, TransportException
Deletes a Git repository for the currently authenticated user.
Please note that if the service has been configured with repository owner and name those attributes are ignored by this method as the owner is always the authenticated user (the one owning the configured credentials) and the name is always thenameattribute.- Parameters:
name- the repository name. Cannot benull- Throws:
SecurityException- if authentication or authorization fails or there is no currently authenticated userTransportException- if communication to the remote endpoint failsUnsupportedOperationException- if the underlying implementation does notsupporttheService.Feature.GIT_HOSTINGfeature.
-
-