Team Berechtigung für Ordner eingefügt
This commit is contained in:
@@ -2369,5 +2369,35 @@ namespace BeWo.Service.ServiceImplementations
|
||||
throw Utils.CreateBeWoFaultException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public List<TeamFolderRightDC> GetTeamRightsForFolder(long folderOid)
|
||||
{
|
||||
try
|
||||
{
|
||||
var rights = DAOFactory.SearchDAO.GetTeamRightsForFolder(folderOid);
|
||||
|
||||
return MapperFactory.TeamFolderRight.MapToNewDCs(rights);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw Utils.CreateBeWoFaultException(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public List<TeamFolderRightDC> SaveTeamFolderRights(List<TeamFolderRightDC> list)
|
||||
{
|
||||
try
|
||||
{
|
||||
var originals = DAOFactory.GenericDAO.LoadByIDs<TeamFolderRight>(list.Where(t => t.Oid.HasValue).Select(t2 => t2.Oid.Value));
|
||||
MapperFactory.TeamFolderRight.MergeWithEntitys(list, originals);
|
||||
DAOFactory.GenericDAO.Update(originals);
|
||||
|
||||
return MapperFactory.TeamFolderRight.MapToNewDCs(originals);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw Utils.CreateBeWoFaultException(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user