@Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink addStorageLink( long classNameId, long classPK, long structureVersionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) { return _ddmStorageLinkLocalService.addStorageLink(classNameId, classPK, structureVersionId, serviceContext); }
@Override public void deleteClassStorageLink(long classPK) { _ddmStorageLinkLocalService.deleteClassStorageLink(classPK); }
@Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink getClassStorageLink( long classPK) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStorageLinkLocalService.getClassStorageLink(classPK); }
protected void updateDDMLinks( long id, long groupId, String ddmStructureKey, String ddmTemplateKey, boolean incrementVersion) throws PortalException { DDMStructure ddmStructure = ddmStructureLocalService.getStructure( PortalUtil.getSiteGroupId(groupId), classNameLocalService.getClassNameId(JournalArticle.class), ddmStructureKey, true); DDMTemplate ddmTemplate = ddmTemplateLocalService.getTemplate( PortalUtil.getSiteGroupId(groupId), classNameLocalService.getClassNameId(DDMStructure.class), ddmTemplateKey, true); if (incrementVersion) { ddmStorageLinkLocalService.addStorageLink( ddmStructure.getClassNameId(), id, ddmStructure.getStructureId(), new ServiceContext()); ddmTemplateLinkLocalService.addTemplateLink( classNameLocalService.getClassNameId(JournalArticle.class), id, ddmTemplate.getTemplateId()); } else { DDMStorageLink ddmStorageLink = ddmStorageLinkLocalService.getClassStorageLink(id); ddmStorageLink.setStructureId(ddmStructure.getStructureId()); ddmStorageLinkLocalService.updateDDMStorageLink(ddmStorageLink); ddmTemplateLinkLocalService.updateTemplateLink( classNameLocalService.getClassNameId(JournalArticle.class), id, ddmTemplate.getTemplateId()); } }
/** * @throws PortalException */ @Override public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException { return ddmStorageLinkLocalService.deleteDDMStorageLink((DDMStorageLink)persistedModel); }
@Override public java.util.List<com.liferay.dynamic.data.mapping.model.DDMStorageLink> getStructureStorageLinks( long structureId) { return _ddmStorageLinkLocalService.getStructureStorageLinks(structureId); }
@Override public int getStructureStorageLinksCount(long structureId) { return _ddmStorageLinkLocalService.getStructureStorageLinksCount( structureId); }
/** * Updates the ddm storage link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param ddmStorageLink the ddm storage link * @return the ddm storage link that was updated */ @Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink updateDDMStorageLink( com.liferay.dynamic.data.mapping.model.DDMStorageLink ddmStorageLink) { return _ddmStorageLinkLocalService.updateDDMStorageLink(ddmStorageLink); }
/** * Adds the ddm storage link to the database. Also notifies the appropriate model listeners. * * @param ddmStorageLink the ddm storage link * @return the ddm storage link that was added */ @Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink addDDMStorageLink( com.liferay.dynamic.data.mapping.model.DDMStorageLink ddmStorageLink) { return _ddmStorageLinkLocalService.addDDMStorageLink(ddmStorageLink); }
/** * Creates a new ddm storage link with the primary key. Does not add the ddm storage link to the database. * * @param storageLinkId the primary key for the new ddm storage link * @return the new ddm storage link */ @Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink createDDMStorageLink( long storageLinkId) { return _ddmStorageLinkLocalService.createDDMStorageLink(storageLinkId); }
/** * Deletes the ddm storage link from the database. Also notifies the appropriate model listeners. * * @param ddmStorageLink the ddm storage link * @return the ddm storage link that was removed */ @Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink deleteDDMStorageLink( com.liferay.dynamic.data.mapping.model.DDMStorageLink ddmStorageLink) { return _ddmStorageLinkLocalService.deleteDDMStorageLink(ddmStorageLink); }
public static java.util.List<com.liferay.dynamic.data.mapping.model.DDMStorageLink> getStructureStorageLinks( long structureId) { return getService().getStructureStorageLinks(structureId); }
@Override public int getStructureStorageLinksCount(long structureId) { return _ddmStorageLinkLocalService.getStructureStorageLinksCount(structureId); }
/** * Updates the ddm storage link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param ddmStorageLink the ddm storage link * @return the ddm storage link that was updated */ public static com.liferay.dynamic.data.mapping.model.DDMStorageLink updateDDMStorageLink( com.liferay.dynamic.data.mapping.model.DDMStorageLink ddmStorageLink) { return getService().updateDDMStorageLink(ddmStorageLink); }
/** * Adds the ddm storage link to the database. Also notifies the appropriate model listeners. * * @param ddmStorageLink the ddm storage link * @return the ddm storage link that was added */ public static com.liferay.dynamic.data.mapping.model.DDMStorageLink addDDMStorageLink( com.liferay.dynamic.data.mapping.model.DDMStorageLink ddmStorageLink) { return getService().addDDMStorageLink(ddmStorageLink); }
/** * Creates a new ddm storage link with the primary key. Does not add the ddm storage link to the database. * * @param storageLinkId the primary key for the new ddm storage link * @return the new ddm storage link */ public static com.liferay.dynamic.data.mapping.model.DDMStorageLink createDDMStorageLink( long storageLinkId) { return getService().createDDMStorageLink(storageLinkId); }
public static com.liferay.dynamic.data.mapping.model.DDMStorageLink getClassStorageLink( long classPK) throws com.liferay.portal.kernel.exception.PortalException { return getService().getClassStorageLink(classPK); }
public static com.liferay.dynamic.data.mapping.model.DDMStorageLink addStorageLink( long classNameId, long classPK, long structureVersionId, com.liferay.portal.kernel.service.ServiceContext serviceContext) { return getService() .addStorageLink(classNameId, classPK, structureVersionId, serviceContext); }
@Override protected void doDeleteByClass(long classPK) throws Exception { _ddmContentLocalService.deleteDDMContent(classPK); _ddmStorageLinkLocalService.deleteClassStorageLink(classPK); }
/** * Deletes the ddm storage link with the primary key from the database. Also notifies the appropriate model listeners. * * @param storageLinkId the primary key of the ddm storage link * @return the ddm storage link that was removed * @throws PortalException if a ddm storage link with the primary key could not be found */ @Override public com.liferay.dynamic.data.mapping.model.DDMStorageLink deleteDDMStorageLink( long storageLinkId) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStorageLinkLocalService.deleteDDMStorageLink(storageLinkId); }