Tabnine Logo
StackPersistedEvent
Code IndexAdd Tabnine to your IDE (free)

How to use
StackPersistedEvent
in
org.eclipse.che.api.workspace.server.event

Best Java code snippets using org.eclipse.che.api.workspace.server.event.StackPersistedEvent (Showing top 3 results out of 315)

origin: org.eclipse.che.core/che-core-api-workspace

@Transactional(rollbackOn = {RuntimeException.class, ApiException.class})
protected void doCreate(StackImpl stack) throws ConflictException, ServerException {
 if (stack.getWorkspaceConfig() != null) {
  stack.getWorkspaceConfig().getProjects().forEach(ProjectConfigImpl::prePersistAttributes);
 }
 EntityManager manager = managerProvider.get();
 manager.persist(stack);
 manager.flush();
 eventService.publish(new StackPersistedEvent(stack)).propagateException();
}
origin: org.eclipse.che.multiuser/che-multiuser-permission-workspace

@Override
public void onCascadeEvent(StackPersistedEvent event) throws Exception {
 final Subject subject = EnvironmentContext.getCurrent().getSubject();
 if (!subject.isAnonymous()) {
  permissionsManager.storePermission(
    new StackPermissionsImpl(
      subject.getUserId(), event.getStack().getId(), StackDomain.getActions()));
 }
}
origin: org.eclipse.che.multiuser/che-multiuser-permission-workspace

@Transactional(rollbackOn = {RuntimeException.class, ApiException.class})
protected void doCreate(StackImpl stack) throws ConflictException, ServerException {
 if (stack.getWorkspaceConfig() != null) {
  stack.getWorkspaceConfig().getProjects().forEach(ProjectConfigImpl::prePersistAttributes);
 }
 EntityManager manager = managerProvider.get();
 manager.persist(stack);
 manager.flush();
 eventService.publish(new StackPersistedEvent(stack)).propagateException();
}
org.eclipse.che.api.workspace.server.eventStackPersistedEvent

Javadoc

Published after stack instance is persisted.

Most used methods

  • <init>
  • propagateException
  • getStack

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now