DEPRECATION: framework: GenericValue.getRelated/getRelatedCache variants replaced with a single getRelated variant that takes a boolean useCache parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1343509 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -778,7 +778,7 @@ public class EntityPermissionChecker {
|
||||
|
||||
List<GenericValue> purposes = null;
|
||||
try {
|
||||
purposes = entity.getRelatedCache(entityName + "Purpose");
|
||||
purposes = entity.getRelated(entityName + "Purpose", null, null, true);
|
||||
} catch (GenericEntityException e) {
|
||||
Debug.logError(e, "No associated purposes found. ", module);
|
||||
return purposeIds;
|
||||
@@ -820,7 +820,7 @@ public class EntityPermissionChecker {
|
||||
|
||||
String partyId = (String)userLogin.get("partyId");
|
||||
List<GenericValue> relatedRoles = null;
|
||||
List<GenericValue> tmpRelatedRoles = entity.getRelatedCache(entityName + "Role");
|
||||
List<GenericValue> tmpRelatedRoles = entity.getRelated(entityName + "Role", null, null, true);
|
||||
relatedRoles = EntityUtil.filterByDate(tmpRelatedRoles);
|
||||
if (relatedRoles != null) {
|
||||
for (GenericValue contentRole: relatedRoles) {
|
||||
|
||||
@@ -847,9 +847,9 @@ public class EntitySyncContext {
|
||||
|
||||
/** prepare a list of all entities we want to synchronize: remove all view-entities and all entities that don't match the patterns attached to this EntitySync */
|
||||
protected List<ModelEntity> makeEntityModelToUseList() throws GenericEntityException {
|
||||
List<GenericValue> entitySyncIncludes = entitySync.getRelated("EntitySyncInclude");
|
||||
List<GenericValue> entitySyncIncludes = entitySync.getRelated("EntitySyncInclude", null, null, false);
|
||||
// get these ones as well, and just add them to the main list, it will have an extra field but that shouldn't hurt anything in the code below
|
||||
List<GenericValue> entitySyncGroupIncludes = entitySync.getRelated("EntitySyncInclGrpDetailView");
|
||||
List<GenericValue> entitySyncGroupIncludes = entitySync.getRelated("EntitySyncInclGrpDetailView", null, null, false);
|
||||
entitySyncIncludes.addAll(entitySyncGroupIncludes);
|
||||
|
||||
List<ModelEntity> entityModelToUseList = EntityGroupUtil.getModelEntitiesFromRecords(entitySyncIncludes, delegator, true);
|
||||
|
||||
Reference in New Issue
Block a user