Package fr.openwide.maven.artifact.notifier.core.business.user.exception

Examples of fr.openwide.maven.artifact.notifier.core.business.user.exception.AlreadyFollowedArtifactException


 
  @Override
  public FollowedArtifact followArtifact(User user, Artifact artifact) throws ServiceException, SecurityServiceException {
    FollowedArtifact followedArtifact = getFollowedArtifact(user, artifact);
    if (followedArtifact != null) {
      throw new AlreadyFollowedArtifactException();
    } else {
      followedArtifact = new FollowedArtifact(artifact);
      followedArtifactService.create(followedArtifact);
     
      artifact.setFollowersCount(artifact.getFollowersCount() + 1);
View Full Code Here

TOP

Related Classes of fr.openwide.maven.artifact.notifier.core.business.user.exception.AlreadyFollowedArtifactException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.