Examples of copyDefaultPrivForGroup()


Examples of org.fao.geonet.kernel.DataManager.copyDefaultPrivForGroup()

                            retrievePrivileges(context, id, "" + sourceUsr, "" + sourceGrp);

                    // -- Set new privileges for new owner from privileges of the old
                    // -- owner, if none then set defaults
                    if (sourcePriv.size() == 0) {
                        dm.copyDefaultPrivForGroup(context, id, targetGrp, false);
                        context.info("No privileges for user " + sourceUsr + " on metadata " + id + ", so setting default privileges");
                    } else {
                        for (OperationAllowedId priv : sourcePriv) {
                            dm.unsetOperation(context, id,
                                    "" + sourceGrp,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.