Package org.mifosplatform.organisation.office.exception

Examples of org.mifosplatform.organisation.office.exception.CannotUpdateOfficeWithParentOfficeSameAsSelf


    public void update(final Office newParent) {

        if (this.parent == null) { throw new RootOfficeParentCannotBeUpdated(); }

        if (identifiedBy(newParent.getId())) { throw new CannotUpdateOfficeWithParentOfficeSameAsSelf(getId(), newParent.getId()); }

        this.parent = newParent;
        generateHierarchy();
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.organisation.office.exception.CannotUpdateOfficeWithParentOfficeSameAsSelf

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.