Exemple #1
0
 public ContentTypeEntity createContentType(
     Integer key, String name, String contentHandlerClassName, Document data) {
   ContentTypeEntity contenType = new ContentTypeEntity();
   contenType.setKey(key);
   contenType.setName(name);
   contenType.setContentHandler(fixture.findContentHandlerByClassName(contentHandlerClassName));
   contenType.setTimestamp(new Date());
   contenType.setData(data);
   return contenType;
 }
Exemple #2
0
 public ContentTypeEntity createContentType(
     String name, String contentHandlerClassName, Document data) {
   ContentTypeEntity contenType = new ContentTypeEntity();
   contenType.setKey(mockKeyService.generateNextKeySafe("TCONTENTTYPE"));
   contenType.setName(name);
   contenType.setContentHandler(fixture.findContentHandlerByClassName(contentHandlerClassName));
   contenType.setTimestamp(new Date());
   contenType.setData(data);
   return contenType;
 }