Package systole.domain.persons.identityCard

Examples of systole.domain.persons.identityCard.IdentityCardType


    public boolean uploadIdentityCardType() {
        try {
            this.log.logDebug("Start to upload identity card types");
            Iterator<IdentityCardType> cardTypesToUpload = this.facadeDB.getIdentityCardTypeSyncBroker().getIdentityCardTypeToUpload().iterator();
            while (cardTypesToUpload.hasNext()) {
                IdentityCardType cardType = cardTypesToUpload.next();
                IdentityCardTypeWs cardTypeWs = this.toRemoteEntity.generateRemoteIdentityCard(cardType);
                if (cardTypeWs != null) {
                    int remoteId = this.systoleSync.uploadIdentityCardType(cardTypeWs);
                    if (remoteId > 0) {
                        IdentityCardTypeRemote cardTypeRemote = new IdentityCardTypeRemote(cardType);
View Full Code Here


    public void saveIdentityCardType(IdentityCardTypeWs cardTypeWs) throws ExceptionDAO {
        if (cardTypeWs == null) {
            return;
        }
        FacadeDB.getInstance().startTransaction();
        IdentityCardType cardType = FacadeDB.getInstance().getIdentityCardBroker().getIdentityCardTypeByName(cardTypeWs.getName());
        if (cardType == null) {
            cardType = new IdentityCardType();
            cardType.setDescription(cardTypeWs.getName());
            FacadeDB.getInstance().getIdentityCardBroker().save(cardType);
            IdentityCardTypeRemote cardTypeRemote = new IdentityCardTypeRemote(cardType);
            cardTypeRemote.setRemoteId(cardTypeWs.getId());
            FacadeDB.getInstance().getIdentityCardTypeSyncBroker().saveIdentityCardTypeRemote(cardTypeRemote);
        } else {
View Full Code Here

     */
    private IdentityCard convertToLocalIdentityCard(IdentityCardWs identityCardWs) throws ExceptionDAO {
        if (identityCardWs == null) {
            return null;
        }
        IdentityCardType cardType = FacadeDB.getInstance().getIdentityCardTypeSyncBroker().getIdentityCardTypeByRemoteId(identityCardWs.getTypeId());
        if (cardType == null) {
            return null;
        }
        IdentityCard identityCard = new IdentityCard();
        identityCard.setNumber(identityCardWs.getNumber());
View Full Code Here

TOP

Related Classes of systole.domain.persons.identityCard.IdentityCardType

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.