Class ExternalAccountIdentifier
- java.lang.Object
-
- org.silverpeas.core.socialnetwork.model.ExternalAccountIdentifier
-
- All Implemented Interfaces:
Serializable
,Comparable<EntityIdentifier>
,CompositeEntityIdentifier
,EntityIdentifier
,ExternalEntityIdentifier
,ResourceIdentifier
@Embeddable public class ExternalAccountIdentifier extends Object implements CompositeEntityIdentifier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.persistence.datasource.model.CompositeEntityIdentifier
COMPOSITE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ExternalAccountIdentifier()
ExternalAccountIdentifier(SocialNetworkID networkId, String profileId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Gets the value of this identifier as a String.boolean
equals(Object obj)
ExternalAccountIdentifier
fromString(String... values)
Sets the value of this identifier from the specified values that will be part of this composite identifier.SocialNetworkID
getNetworkId()
String
getProfileId()
int
hashCode()
void
setNetworkId(SocialNetworkID networkId)
void
setProfileId(String profileId)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.CompositeEntityIdentifier
fromString
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.EntityIdentifier
compareTo
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.model.ExternalEntityIdentifier
generateNewId
-
-
-
-
Constructor Detail
-
ExternalAccountIdentifier
public ExternalAccountIdentifier(SocialNetworkID networkId, String profileId)
-
ExternalAccountIdentifier
public ExternalAccountIdentifier()
-
-
Method Detail
-
getProfileId
public String getProfileId()
-
setProfileId
public void setProfileId(String profileId)
-
getNetworkId
public SocialNetworkID getNetworkId()
-
setNetworkId
public void setNetworkId(SocialNetworkID networkId)
-
asString
public String asString()
Description copied from interface:ResourceIdentifier
Gets the value of this identifier as a String.- Specified by:
asString
in interfaceResourceIdentifier
- Returns:
- the String representation of this identifier.
-
fromString
public ExternalAccountIdentifier fromString(String... values)
Description copied from interface:CompositeEntityIdentifier
Sets the value of this identifier from the specified values that will be part of this composite identifier.- Specified by:
fromString
in interfaceCompositeEntityIdentifier
- Parameters:
values
- the identifier values from which this composite identifier will be built.- Returns:
- this entity identifier.
-
-