blob: e6b4689e633c1b74f314c982c0c88a12a11faa9b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Tasktop Technologies and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* https://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.commons.identity.core;
import org.eclipse.mylyn.commons.identity.core.Account;
import org.eclipse.mylyn.commons.identity.core.IIdentity;
import org.eclipse.mylyn.commons.identity.core.spi.AbstractIdentityService;
import org.eclipse.mylyn.internal.commons.identity.core.gravatar.GravatarConnector;
/**
* @author Steffen Pingel
*/
public class IdentityService extends AbstractIdentityService {
private final IdentityModel model;
public IdentityService() {
model = new IdentityModel();
model.addConnector(new GravatarConnector());
}
public IIdentity getIdentity(Account account) {
return model.getIdentity(account);
}
public IIdentity[] getIdentities() {
return model.getIdentities();
}
}