public void updateAsset(long userId, Foo foo, long[] assetCategoryIds, String[] assetTagNames) throws PortalException, SystemException { assetEntryLocalService.updateEntry( userId, foo.getGroupId(), Foo.class.getName(), foo.getFooId(), foo.getUuid(), 0, assetCategoryIds, assetTagNames, true, null, null, null, null, ContentTypes.TEXT_PLAIN_UTF8, foo.getField1(), null, foo.getField1(), null, null, 0, 0, null, false); }
@Override public void deleteFoo(Foo foo) throws SystemException { try { assetEntryLocalService.deleteEntry(Foo.class.getName(), foo.getFooId()); } catch (PortalException pe) { } fooPersistence.remove(foo); }