/src/main/java/com/google/ie/business/service/VoteService.java
http://thoughtsite.googlecode.com/ · Java · 42 lines · 7 code · 5 blank · 30 comment · 0 complexity · 8d68d93605b687d317037de68e664e1a MD5 · raw file
- /* Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS.
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License
- */
- package com.google.ie.business.service;
- import com.google.ie.business.domain.User;
- import com.google.ie.business.domain.Vote;
- import com.google.ie.common.exception.IdeasExchangeException;
- /**
- * A service specification for the Vote entity.
- *
- * @author asirohi
- *
- */
- public interface VoteService {
- /**
- *
- * Add Vote to an Idea/Comment and thereby increase the reputation points
- * of the Idea/Comment owner.
- *
- * @param vote {@link Vote} object
- * @param user {@link User} object
- *
- * @throws IdeasExchangeException
- */
- Vote addVote(Vote vote, User user) throws IdeasExchangeException;
- }