use of com.liferay.roster.model.Club in project liferay-ide by liferay.
the class ClubPersistenceImpl method create.
/**
* Creates a new club with the primary key. Does not add the club to the database.
*
* @param clubId the primary key for the new club
* @return the new club
*/
@Override
public Club create(long clubId) {
Club club = new ClubImpl();
club.setNew(true);
club.setPrimaryKey(clubId);
String uuid = PortalUUIDUtil.generate();
club.setUuid(uuid);
return club;
}
use of com.liferay.roster.model.Club in project liferay-ide by liferay.
the class ClubModelImpl 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 Club toModel(ClubSoap soapModel) {
if (soapModel == null) {
return null;
}
Club model = new ClubImpl();
model.setUuid(soapModel.getUuid());
model.setClubId(soapModel.getClubId());
model.setCreateDate(soapModel.getCreateDate());
model.setModifiedDate(soapModel.getModifiedDate());
model.setName(soapModel.getName());
return model;
}
Aggregations