Package org.pau.assetmanager.entities

Examples of org.pau.assetmanager.entities.UserClientAssociation


  }

  @NotifyChange({"clientsFromSelectedUser", "relationshipClients"})
  @Command
  public void removeClientRelationship(@BindingParam("client") Client client){
    UserClientAssociation userClientAssociation = UserClientAssociationBusiness.getUserClientAssociationFromClientAndUser(client, selectedUser);
    UserClientAssociationBusiness.delete(userClientAssociation);
  }
View Full Code Here


 
  @NotifyChange({ "relationshipClientActive", "relationshipClients",
  "relationshipSelectedClient", "clientsFromSelectedUser" })
  @Command
  public void relateClient(){
    UserClientAssociation userClientAssociation = new UserClientAssociation();
    userClientAssociation.setClient(relationshipSelectedClient);
    userClientAssociation.setUser(selectedUser);
    clientsFromSelectedUser = ClientsBusiness.getClientsFromUser(selectedUser);
    UserClientAssociationBusiness.createUserClientAssociation(userClientAssociation);
    setRelationshipClientWindowToDefaults();
  }
View Full Code Here

      protected Client doInTransaction(
          EntityManager entityManager, String clientName) {
        Client client = new Client();
        client.setName(clientName);
        entityManager.persist(client);
        UserClientAssociation userClientAssociation = new UserClientAssociation();     
        userClientAssociation.setUser(user);
        userClientAssociation.setClient(client);
        entityManager.persist(userClientAssociation);
        return client;
      }
    };
    return addClientFuncion.apply(clientName);
View Full Code Here

TOP

Related Classes of org.pau.assetmanager.entities.UserClientAssociation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.