Exemplo n.º 1
0
 @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;
 }
Exemplo n.º 2
0
 @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);
   }
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 @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);
   }
 }