Search in sources :

Example 11 with ContentRecordVO

use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.

the class TestContentDAO method insertOnLineContent.

private void insertOnLineContent(Content mockContent) throws ApsSystemException {
    this._contentDao.insertOnLineContent(mockContent);
    ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
    assertTrue(contentRecord.isOnLine());
}
Also used : ContentRecordVO(com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)

Example 12 with ContentRecordVO

use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.

the class TestContentDAO method addContent.

private void addContent(Content mockContent) throws ApsSystemException {
    _contentDao.addEntity(mockContent);
    ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
    assertEquals(mockContent.getDescription(), contentRecord.getDescr());
    assertEquals(mockContent.getStatus(), contentRecord.getStatus());
    assertFalse(contentRecord.isOnLine());
}
Also used : ContentRecordVO(com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)

Example 13 with ContentRecordVO

use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.

the class TestContentDAO method updateContent.

private void updateContent(Content mockContent) throws ApsSystemException {
    this._contentDao.updateEntity(mockContent);
    ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(mockContent.getId());
    assertEquals(mockContent.getDescription(), contentRecord.getDescription());
    assertEquals(mockContent.getStatus(), contentRecord.getStatus());
    assertFalse(contentRecord.isOnLine());
}
Also used : ContentRecordVO(com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)

Example 14 with ContentRecordVO

use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.

the class TestContentDAO method removeOnLineContent.

private void removeOnLineContent(Content content) throws ApsSystemException {
    this._contentDao.removeOnLineContent(content);
    ContentRecordVO contentRecord = (ContentRecordVO) this._contentDao.loadEntityRecord(content.getId());
    assertFalse(contentRecord.isOnLine());
}
Also used : ContentRecordVO(com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)

Example 15 with ContentRecordVO

use of com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO in project entando-core by entando.

the class TestContentEntityManager method verifyOrder.

private void verifyOrder(List<ApsEntityRecord> contents, String[] order) {
    for (int i = 0; i < contents.size(); i++) {
        ContentRecordVO vo = (ContentRecordVO) contents.get(i);
        assertEquals(order[i], vo.getId());
    }
}
Also used : ContentRecordVO(com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)

Aggregations

ContentRecordVO (com.agiletec.plugins.jacms.aps.system.services.content.model.ContentRecordVO)18 Content (com.agiletec.plugins.jacms.aps.system.services.content.model.Content)4 ApsSystemException (com.agiletec.aps.system.exception.ApsSystemException)3 UserDetails (com.agiletec.aps.system.services.user.UserDetails)2 ArrayList (java.util.ArrayList)2 ApiError (org.entando.entando.aps.system.services.api.model.ApiError)2 ApiException (org.entando.entando.aps.system.services.api.model.ApiException)2 StringApiResponse (org.entando.entando.aps.system.services.api.model.StringApiResponse)2 EntitySearchFilter (com.agiletec.aps.system.common.entity.model.EntitySearchFilter)1 ApsProperties (com.agiletec.aps.util.ApsProperties)1 ContentUtilizer (com.agiletec.plugins.jacms.aps.system.services.content.ContentUtilizer)1 IContentManager (com.agiletec.plugins.jacms.aps.system.services.content.IContentManager)1 ResourceUtilizer (com.agiletec.plugins.jacms.aps.system.services.resource.ResourceUtilizer)1 Properties (java.util.Properties)1 JAXBContent (org.entando.entando.plugins.jacms.aps.system.services.api.model.JAXBContent)1 ContentJO (org.entando.entando.plugins.jacms.apsadmin.content.rs.model.ContentJO)1