use of com.liferay.roster.model.RosterMember in project liferay-ide by liferay.
the class RosterMemberModelImpl method toModel.
/**
* Converts the soap model instance into a normal model instance.
*
* @param soapModel the soap model instance to convert
* @return the normal model instance
*/
public static RosterMember toModel(RosterMemberSoap soapModel) {
if (soapModel == null) {
return null;
}
RosterMember model = new RosterMemberImpl();
model.setUuid(soapModel.getUuid());
model.setRosterMemberId(soapModel.getRosterMemberId());
model.setCreateDate(soapModel.getCreateDate());
model.setModifiedDate(soapModel.getModifiedDate());
model.setRosterId(soapModel.getRosterId());
model.setContactId(soapModel.getContactId());
return model;
}
use of com.liferay.roster.model.RosterMember in project liferay-ide by liferay.
the class RosterMemberModelImpl method equals.
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof RosterMember)) {
return false;
}
RosterMember rosterMember = (RosterMember) obj;
long primaryKey = rosterMember.getPrimaryKey();
if (getPrimaryKey() == primaryKey) {
return true;
} else {
return false;
}
}
Aggregations