/**
* For REST calls or anything not using some sort of "session"
*
* @param entity
*/
@Transactional(propagation = Propagation.REQUIRED)
@Override
public void save(T entity, @Nullable TargetList targetList, @Nullable Map<Object, TargetList> otherTargetLists,
@Nullable String stagingUuid, @Nullable String lockId, boolean keepLocked) throws LockedException
{
if( entity.getId() == 0 )
{
final EntityPack<T> pack = new EntityPack<T>(entity, stagingUuid);
pack.setTargetList(targetList);
pack.setOtherTargetLists(otherTargetLists);
doAdd(pack, null, keepLocked);
}
else
{
doStopEditWithLock(entity, targetList, otherTargetLists, stagingUuid, lockId, !keepLocked);
}
}
AbstractEntityServiceImpl.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:Equella
作者:
评论列表
文章目录