package de.passau.uni.sec.compose.id.core.service.reputation;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class ReputationManager 
{
	private static Logger LOG = LoggerFactory.getLogger(ReputationManager.class);
	
	public int getReputationValueforNewUser()
	{
		return 3;
	}
	//TODO fill with calls to the reputation manager or calculations.
	public int getReputationValueForNewServiceObject(String ownerUserId)
	{
		LOG.debug("returning initial reputation for a new service object for user with id"+ownerUserId);
		return 2;
		
	}
	public int getReputationValueForNewSourceCode(String ownerUserId)
	{
		LOG.debug("returning initial reputation for new source code for user with id"+ownerUserId);
		return 2;
	}
	public int getReputationValueForNewApplication(String ownerUserId)
	{
		LOG.debug("returning initial reputation for a new application for user with id"+ownerUserId);
		return 2;
	}
	public int getReputationValueForNewServiceInstance(String ownerUserId) {
		LOG.debug("returning initial reputation for a new service instance for user with id"+ownerUserId);
		return 2;
	}
}

@@ -344,9 +344,9 @@
 urn 
-3
+5
 ;%0A%09%7D
@@ -594,17 +594,17 @@
 %09return 
-2
+5
 ;%0A%09%09%0A%09%7D%0A
@@ -768,33 +768,33 @@
 erId);%0A%09%09return 
-2
+5
 ;%0A%09%7D%0A%09public int
@@ -954,25 +954,25 @@
 );%0A%09%09return 
-2
+5
 ;%0A%09%7D%0A%09public
@@ -1152,9 +1152,9 @@
 urn 
-2
+5
 ;%0A%09%7D

set default rep value