Package com.helger.phase4.model.pmode
Class PModeParty
java.lang.Object
com.helger.phase4.model.pmode.PModeParty
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable
@NotThreadSafe
@MustImplementEqualsAndHashcode
public class PModeParty
extends Object
implements com.helger.commons.id.IHasID<String>, Serializable
Party within a PMode
- Author:
- Philip Helger
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PModePartycreateSimple(String sIDValue, String sRole) booleanfinal StringgetID()Eitherid-type:id-valueor justid-valueif not id-type is present.final Stringfinal Stringfinal Stringfinal StringgetRole()final StringinthashCode()final booleanfinal booleanfinal booleanfinal com.helger.commons.state.EChangeSet the ID type to use.final com.helger.commons.state.EChangesetIDValue(String sIDValue) Set the ID value to use.final com.helger.commons.state.EChangesetPassword(String sPassword) Set the password to use.final com.helger.commons.state.EChangeSet the role to use.final com.helger.commons.state.EChangesetUserName(String sUserName) Set the user name to use.toString()
-
Constructor Details
-
PModeParty
-
-
Method Details
-
getIDType
- Returns:
- The ID type as passed in the constructor. May be
null.
-
hasIDType
public final boolean hasIDType()- Returns:
trueif an ID type is present,falseif not.
-
setIDType
Set the ID type to use.- Parameters:
sIDType- ID type to use. May benull.- Returns:
EChange.- Since:
- 0.12.0
-
getIDValue
- Returns:
- The ID value. Neither
nullnor empty.
-
setIDValue
@Nonnull public final com.helger.commons.state.EChange setIDValue(@Nonnull @Nonempty String sIDValue) Set the ID value to use.- Parameters:
sIDValue- ID value to use. May neither benullnor empty.- Returns:
EChange.- Since:
- 0.12.0
-
getID
Eitherid-type:id-valueor justid-valueif not id-type is present.- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getRole
- Returns:
- The party role. Never
nullnor empty.
-
setRole
Set the role to use.- Parameters:
sRole- Role to use. May neither benullnor empty.- Returns:
EChange.- Since:
- 0.12.0
-
getUserName
- Returns:
- The user name. May be
null.
-
hasUserName
public final boolean hasUserName()- Returns:
trueif a user name is present,falseif not.
-
setUserName
Set the user name to use.- Parameters:
sUserName- User name to use. May benull.- Returns:
EChange.- Since:
- 0.12.0
-
getPassword
- Returns:
- The password in plain text. May be
null.
-
hasPassword
public final boolean hasPassword()- Returns:
trueif a password is present,falseif not.
-
setPassword
Set the password to use.- Parameters:
sPassword- Password to use. May benull.- Returns:
EChange.- Since:
- 0.12.0
-
equals
-
hashCode
public int hashCode() -
toString
-
createSimple
-