Search in sources :

Example 1 with CfContentversionPK

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);
}
Also used : CfContentversionPK(io.clownfish.clownfish.dbentities.CfContentversionPK) CfContentversion(io.clownfish.clownfish.dbentities.CfContentversion) Date(java.util.Date)

Example 2 with CfContentversionPK

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);
}
Also used : CfContentversionPK(io.clownfish.clownfish.dbentities.CfContentversionPK) CfContentversion(io.clownfish.clownfish.dbentities.CfContentversion) Date(java.util.Date)

Example 3 with CfContentversionPK

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);
}
Also used : CfContentversionPK(io.clownfish.clownfish.dbentities.CfContentversionPK) CfContentversion(io.clownfish.clownfish.dbentities.CfContentversion) Date(java.util.Date)

Aggregations

CfContentversion (io.clownfish.clownfish.dbentities.CfContentversion)3 CfContentversionPK (io.clownfish.clownfish.dbentities.CfContentversionPK)3 Date (java.util.Date)3