diff options
author | Steffen Pingel | 2013-04-30 16:49:15 +0000 |
---|---|---|
committer | Steffen Pingel | 2013-04-30 17:15:17 +0000 |
commit | cc7f9bbdabc41d9ff7c26aaf0973e6e6601fd568 (patch) | |
tree | 2578404e4e2bf982e1342ff4b02a84b23f3dc3ce /stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons | |
parent | c261f6d30c300dc622cf59228da22d84861e345b (diff) | |
download | org.eclipse.mylyn.commons-cc7f9bbdabc41d9ff7c26aaf0973e6e6601fd568.tar.gz org.eclipse.mylyn.commons-cc7f9bbdabc41d9ff7c26aaf0973e6e6601fd568.tar.xz org.eclipse.mylyn.commons-cc7f9bbdabc41d9ff7c26aaf0973e6e6601fd568.zip |
406934: drop stub bundles from distribution
Change-Id: I858bfd1cfdb5aec959d3b0013ca0e34ac520ddc6
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406934
Diffstat (limited to 'stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons')
7 files changed, 0 insertions, 441 deletions
diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/Account.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/Account.java deleted file mode 100644 index 51b47a5b..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/Account.java +++ /dev/null @@ -1,129 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity; - -import java.io.Serializable; - -import org.eclipse.core.runtime.Assert; - -/** - * @author Steffen Pingel - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public class Account implements Serializable { - - private static final long serialVersionUID = 3670630150657553390L; - - public static Account id(String id) { - Assert.isNotNull(id); - return new Account(id); - } - - private final String id; - - private String kind; - - private String name; - - private String url; - - private Account(String id) { - this.id = id; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (obj == null) { - return false; - } - if (getClass() != obj.getClass()) { - return false; - } - Account other = (Account) obj; - if (id == null) { - if (other.id != null) { - return false; - } - } else if (!id.equals(other.id)) { - return false; - } - if (kind == null) { - if (other.kind != null) { - return false; - } - } else if (!kind.equals(other.kind)) { - return false; - } - if (name == null) { - if (other.name != null) { - return false; - } - } else if (!name.equals(other.name)) { - return false; - } - if (url == null) { - if (other.url != null) { - return false; - } - } else if (!url.equals(other.url)) { - return false; - } - return true; - } - - public String getId() { - return id; - } - - public String getKind() { - return kind; - } - - public String getName() { - return name; - } - - public String getUrl() { - return url; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((id == null) ? 0 : id.hashCode()); - result = prime * result + ((kind == null) ? 0 : kind.hashCode()); - result = prime * result + ((name == null) ? 0 : name.hashCode()); - result = prime * result + ((url == null) ? 0 : url.hashCode()); - return result; - } - - public Account kind(String kind) { - this.kind = kind; - return this; - } - - public Account name(String name) { - this.name = name; - return this; - } - - public Account url(String url) { - this.url = url; - return this; - } - -} diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IIdentity.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IIdentity.java deleted file mode 100644 index e29870dc..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IIdentity.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity; - -import java.beans.PropertyChangeListener; -import java.util.UUID; -import java.util.concurrent.Future; - -/** - * @author Steffen Pingel - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public interface IIdentity { - - // public static final String KIND_DEFAULT = "org.eclipse.mylyn.commons.identity.default"; //$NON-NLS-1$ - // - // public static final String KIND_EMAIL = "org.eclipse.mylyn.commons.identity.email"; //$NON-NLS-1$ - - public void addAccount(Account account); - - public void addPropertyChangeListener(PropertyChangeListener listener); - - public Account getAccountById(String id); - - public Account getAccountByKind(String kind); - - public Account[] getAccounts(); - - public String[] getAliases(); - - public UUID getId(); - - public void removeAccount(Account account); - - public void removePropertyChangeListener(PropertyChangeListener listener); - - public Future<IProfileImage> requestImage(int preferredWidth, int preferredHeight); - - public Future<IProfile> requestProfile(); - -} diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfile.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfile.java deleted file mode 100644 index 7da02163..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfile.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity; - -/** - * @author Steffen Pingel - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public interface IProfile { - - public abstract String getCity(); - - public abstract String getCountry(); - - public abstract String getEmail(); - - public abstract IIdentity getIdentity(); - - public abstract String getName(); - -} diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfileImage.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfileImage.java deleted file mode 100644 index 27ddea8c..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/IProfileImage.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity; - -/** - * @author Steffen Pingel - * @noimplement This interface is not intended to be implemented by clients. - * @noextend This interface is not intended to be extended by clients. - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public interface IProfileImage { - - public abstract byte[] getData(); - - public abstract int getWidth(); - - public abstract int getHeight(); - - public abstract String getFormat(); - -}
\ No newline at end of file diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/IdentityConnector.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/IdentityConnector.java deleted file mode 100644 index 7235082e..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/IdentityConnector.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity.spi; - -import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.mylyn.commons.identity.IIdentity; - -/** - * @author Steffen Pingel - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public abstract class IdentityConnector { - - public abstract ProfileImage getImage(IIdentity identity, int preferredWidth, int preferredHeight, - IProgressMonitor monitor) throws CoreException; - - public abstract boolean supportsImageSize(int preferredWidth, int preferredHeight); - - public abstract void updateProfile(Profile profile, IProgressMonitor monitor) throws CoreException; - -} diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/Profile.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/Profile.java deleted file mode 100644 index 6819327c..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/Profile.java +++ /dev/null @@ -1,89 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity.spi; - -import java.io.Serializable; - -import org.eclipse.mylyn.commons.identity.IIdentity; -import org.eclipse.mylyn.commons.identity.IProfile; - -/** - * @author Steffen Pingel - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public final class Profile implements IProfile, Serializable { - - private static final long serialVersionUID = -1079729573911113939L; - - private String city; - - private String country; - - private String email; - - private final IIdentity identity; - - private String name; - - private int timeZoneOffset; - - public Profile(IIdentity identity) { - this.identity = identity; - } - - public String getCity() { - return city; - } - - public String getCountry() { - return country; - } - - public String getEmail() { - return email; - } - - public IIdentity getIdentity() { - return identity; - } - - public String getName() { - return name; - } - - public int getTimeZoneOffset() { - return timeZoneOffset; - } - - public void setCity(String city) { - this.city = city; - } - - public void setCountry(String country) { - this.country = country; - } - - public void setEmail(String email) { - this.email = email; - } - - public void setName(String name) { - this.name = name; - } - - public void setTimeZoneOffset(int timeZoneOffset) { - this.timeZoneOffset = timeZoneOffset; - } - -} diff --git a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/ProfileImage.java b/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/ProfileImage.java deleted file mode 100644 index 3605c43f..00000000 --- a/stubs/org.eclipse.mylyn.commons.identity/src/org/eclipse/mylyn/commons/identity/spi/ProfileImage.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2011 Tasktop Technologies. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Tasktop Technologies - initial API and implementation - *******************************************************************************/ - -package org.eclipse.mylyn.commons.identity.spi; - -import java.io.Serializable; - -import org.eclipse.mylyn.commons.identity.IProfileImage; - -/** - * @author Steffen Pingel - * @since 0.8 - * @deprecated use classes in the <code>org.eclipse.mylyn.commons.identity.ui</code> bundle instead - */ -@Deprecated -public final class ProfileImage implements IProfileImage, Serializable { - - private static final long serialVersionUID = 8211724823497362719L; - - byte[] data; - - int width; - - int height; - - String format; - - long timestamp; - - public ProfileImage(byte[] data, int width, int height, String format) { - this.data = data; - this.width = width; - this.height = height; - this.format = format; - this.timestamp = System.currentTimeMillis(); - } - - public byte[] getData() { - return data; - } - - public int getWidth() { - return width; - } - - public int getHeight() { - return height; - } - - public String getFormat() { - return format; - } - - public long getTimestamp() { - return timestamp; - } - - public void setTimestamp(long timestamp) { - this.timestamp = timestamp; - } - -} |