public void onResourceAdded(@Observes final ResourceAddedEvent event) { refreshView(event.getPath()); }
public void onResourceAdded(@Observes final ResourceAddedEvent event) { refresh(event.getPath()); }
public void onResourceAdded(@Observes final ResourceAddedEvent event) { refreshView(event.getPath()); }
void onResourceAdded(@Observes ResourceAddedEvent res) { if (lockTarget != null && res.getPath().equals(lockTarget.getPath())) { releaseLock(); } }
@Override public SocialActivitiesEvent toSocial( Object object ) { ResourceAddedEvent event = (ResourceAddedEvent) object; SocialUser socialUser = socialUserRepositoryAPI.findSocialUser( event.getSessionInfo().getIdentity().getIdentifier() ); String additionalInfo = "Added"; String description = getCommitDescription( event ); return new SocialActivitiesEvent( socialUser, HomePageTypes.RESOURCE_ADDED_EVENT.name(), new Date() ).withLink( event.getPath().getFileName(), event.getPath().toURI() ).withAdicionalInfo( additionalInfo ).withDescription( description ); }
private void verifyResourceAddedEvent(String file, String sessionId, String userId, String commitMessage) { verify(resourceAddedEvent, times(1)).fire(resourceAddedEventCaptor.capture()); assertEquals(file, resourceAddedEventCaptor.getValue().getPath().toURI()); assertEquals(sessionId, resourceAddedEventCaptor.getValue().getSessionInfo().getId()); assertEquals(userId, resourceAddedEventCaptor.getValue().getSessionInfo().getIdentity().getIdentifier()); assertEquals(commitMessage, resourceAddedEventCaptor.getValue().getMessage()); }
private void verifyResourceAddedEvent(String file, String sessionId, String userId, String commitMessage) { verify(resourceAddedEvent, times(1)).fire(resourceAddedEventCaptor.capture()); assertEquals(file, resourceAddedEventCaptor.getValue().getPath().toURI()); assertEquals(sessionId, resourceAddedEventCaptor.getValue().getSessionInfo().getId()); assertEquals(userId, resourceAddedEventCaptor.getValue().getSessionInfo().getIdentity().getIdentifier()); assertEquals(commitMessage, resourceAddedEventCaptor.getValue().getMessage()); }