@JsonIgnore public List<RoleMenuBridge> getDeletedRoleMenuBridgeList() { List<RoleMenuBridge> rolemenubridgeToRemove = new java.util.ArrayList<RoleMenuBridge>(); for (RoleMenuBridge _rolemenubridge : roleMenuBridge) { if (_rolemenubridge.isHardDelete()) { rolemenubridgeToRemove.add(_rolemenubridge); } } roleMenuBridge.removeAll(rolemenubridgeToRemove); return rolemenubridgeToRemove; }
@Override public void setEntityAudit(int customerId, String userId) { if (entityAudit == null) { entityAudit = new EntityAudit(); } if (getPrimaryKey() == null) { this.entityAudit.setCreatedBy(userId); this.systemInfo.setActiveStatus(1); } else { this.entityAudit.setUpdatedBy(userId); } if (this.roleMenuBridge == null) { this.roleMenuBridge = new java.util.ArrayList<RoleMenuBridge>(); } for (RoleMenuBridge _roleMenuBridge : roleMenuBridge) { _roleMenuBridge.setEntityAudit(customerId, userId); } }
public Roles addRoleMenuBridge(RoleMenuBridge _roleMenuBridge) { if (this.roleMenuBridge == null) { this.roleMenuBridge = new java.util.ArrayList<test.app.shared.authorization.RoleMenuBridge>(); } if (_roleMenuBridge != null) { _roleMenuBridge.setRoles(this); this.roleMenuBridge.add(_roleMenuBridge); } return this; }
public Roles addRoleMenuBridge(RoleMenuBridge _roleMenuBridge) { if (this.roleMenuBridge == null) { this.roleMenuBridge = new java.util.ArrayList<com.app.shared.appbasicsetup.userrolemanagement.RoleMenuBridge>(); } if (_roleMenuBridge != null) { _roleMenuBridge.setRoles(this); this.roleMenuBridge.add(_roleMenuBridge); } return this; }
@Override public void setEntityAudit(int customerId, String userId, RECORD_TYPE recordType) { System.out.println("Setting logged in user info for " + recordType); if (entityAudit == null) { entityAudit = new EntityAudit(); } if (recordType == RECORD_TYPE.ADD) { this.entityAudit.setCreatedBy(userId); } else { this.entityAudit.setUpdatedBy(userId); } setSystemInformation(recordType); if (this.roleMenuBridge == null) { this.roleMenuBridge = new java.util.ArrayList<RoleMenuBridge>(); } for (RoleMenuBridge _roleMenuBridge : roleMenuBridge) { _roleMenuBridge.setEntityAudit(customerId, userId, recordType); _roleMenuBridge.setSystemInformation(recordType); } }