Class GuvnorStructureContext
- java.lang.Object
-
- org.guvnor.structure.client.editors.context.GuvnorStructureContext
-
@ApplicationScoped public class GuvnorStructureContext extends Object
Context that keeps track of repositories and branches. Used in Guvnor Administration perspective, more specifically by the Guvnor Structure module.
-
-
Constructor Summary
Constructors Constructor Description GuvnorStructureContext()GuvnorStructureContext(org.jboss.errai.common.client.api.Caller<org.guvnor.structure.repositories.RepositoryService> repositoryService, org.guvnor.common.services.project.client.context.WorkspaceProjectContext context)
-
Method Summary
-
-
-
Constructor Detail
-
GuvnorStructureContext
public GuvnorStructureContext()
-
GuvnorStructureContext
@Inject public GuvnorStructureContext(org.jboss.errai.common.client.api.Caller<org.guvnor.structure.repositories.RepositoryService> repositoryService, org.guvnor.common.services.project.client.context.WorkspaceProjectContext context)
-
-
Method Detail
-
getRepositories
public void getRepositories(org.uberfire.client.callbacks.Callback<Collection<org.guvnor.structure.repositories.Repository>> callback)
-
addGuvnorStructureContextChangeHandler
public GuvnorStructureContextChangeHandler.HandlerRegistration addGuvnorStructureContextChangeHandler(GuvnorStructureContextChangeHandler handler)
-
addGuvnorStructureContextBranchChangeHandler
public GuvnorStructureContextBranchChangeHandler.HandlerRegistration addGuvnorStructureContextBranchChangeHandler(GuvnorStructureContextBranchChangeHandler handler)
-
onNewRepository
public void onNewRepository(@Observes org.guvnor.structure.repositories.NewRepositoryEvent event)
-
onNewBranch
public void onNewBranch(@Observes org.guvnor.structure.repositories.NewBranchEvent event)
-
onRepositoryRemoved
public void onRepositoryRemoved(@Observes org.guvnor.structure.repositories.RepositoryRemovedEvent event)
-
removeHandler
public void removeHandler(GuvnorStructureContextChangeHandler.HandlerRegistration handlerRegistration)
-
removeHandler
public void removeHandler(GuvnorStructureContextBranchChangeHandler.HandlerRegistration handlerRegistration)
-
-