* the entry to convert.
* @return the converted entry dto.
*/
public OAuthDomainEntry convertToEntryDTO(final OAuthEntry entry)
{
OAuthDomainEntry dto = new OAuthDomainEntry();
dto.setAppId(entry.getAppId());
dto.setAuthorized(entry.isAuthorized());
dto.setCallbackToken(entry.getCallbackToken());
dto.setCallbackTokenAttempts(entry.getCallbackTokenAttempts());
dto.setCallbackUrl(entry.getCallbackUrl());
dto.setCallbackUrlSigned(entry.isCallbackUrlSigned());
dto.setConsumer(mapper.execute(entry.getConsumerKey()));
dto.setContainer(entry.getContainer());
dto.setDomain(entry.getDomain());
dto.setIssueTime(entry.getIssueTime());
dto.setOauthVersion(entry.getOauthVersion());
dto.setToken(entry.getToken());
dto.setTokenSecret(entry.getTokenSecret());
dto.setType(entry.getType().toString());
dto.setUserId(entry.getUserId());
return dto;
}