Examples of AlreadyFollowedArtifactException


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
Copyright © 2018 www.massapi.com. 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.