use of io.clownfish.clownfish.dbentities.CfContentversionPK in project Clownfish by rawdog71.
the class ContentList method writeVersion.
public void writeVersion(long ref, long version, byte[] content) {
CfContentversionPK contentversionpk = new CfContentversionPK();
contentversionpk.setContentref(ref);
contentversionpk.setVersion(version);
CfContentversion cfcontentversion = new CfContentversion();
cfcontentversion.setCfContentversionPK(contentversionpk);
cfcontentversion.setContent(content);
cfcontentversion.setTstamp(new Date());
cfcontentversion.setCommitedby(BigInteger.valueOf(loginbean.getCfuser().getId()));
cfcontentversionService.create(cfcontentversion);
}
use of io.clownfish.clownfish.dbentities.CfContentversionPK in project Clownfish by rawdog71.
the class ContentUtil method writeVersion.
@Override
public void writeVersion(long ref, long version, byte[] content, long userid) {
CfContentversionPK contentversionpk = new CfContentversionPK();
contentversionpk.setContentref(ref);
contentversionpk.setVersion(version);
CfContentversion cfcontentversion = new CfContentversion();
cfcontentversion.setCfContentversionPK(contentversionpk);
cfcontentversion.setContent(content);
cfcontentversion.setTstamp(new Date());
cfcontentversion.setCommitedby(BigInteger.valueOf(userid));
cfcontentversionService.create(cfcontentversion);
}
use of io.clownfish.clownfish.dbentities.CfContentversionPK in project Clownfish by rawdog71.
the class RestContent method writeVersion.
private void writeVersion(long ref, long version, byte[] content, long userid) {
CfContentversionPK contentversionpk = new CfContentversionPK();
contentversionpk.setContentref(ref);
contentversionpk.setVersion(version);
CfContentversion cfcontentversion = new CfContentversion();
cfcontentversion.setCfContentversionPK(contentversionpk);
cfcontentversion.setContent(content);
cfcontentversion.setTstamp(new Date());
cfcontentversion.setCommitedby(BigInteger.valueOf(userid));
cfcontentversionService.create(cfcontentversion);
}
Aggregations