Package org.exist.security

Examples of org.exist.security.SecurityManager.updateGroup()


           
            try {
                executeWithBroker(new BrokerOperation<Void>() {
                    @Override
                    public Void withBroker(final DBBroker broker) throws EXistException, URISyntaxException, PermissionDeniedException {
                        manager.updateGroup(group);
                        return null;
                    }
                });
                return true;
            } catch (final URISyntaxException use) {
View Full Code Here


                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                   
                    final Account account = sm.getAccount(manager);
                    final Group group = sm.getGroup(groupName);
                    group.addManager(account);
                    sm.updateGroup(group);
                   
                    return null;
                }
            });
        } catch (final URISyntaxException use) {
View Full Code Here

                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                    final Group group = sm.getGroup(groupName);
                    final Account account = sm.getAccount(manager);
                   
                    group.removeManager(account);
                    sm.updateGroup(group);
                   
                    return null;
                }
            });
        } catch (final URISyntaxException use) {
View Full Code Here

                    //if we created a personal group, then add the new account as a manager of their personal group
                    if(getSignature().getArgumentCount() == 3 || getSignature().getArgumentCount() == 5) {
                        final Group group = securityManager.getGroup(username);
                        group.addManager(securityManager.getAccount(username));
                        securityManager.updateGroup(group);
                    }
                } else {
                    throw new XPathException("Unknown function call: " + getSignature());
                }
            }
View Full Code Here

                @Override
                public Void withBroker(final DBBroker broker) throws XMLDBException, LockException, PermissionDeniedException, IOException, EXistException, TriggerException, SyntaxException {
                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
         
                    sm.updateGroup(g);
                   
                    return null;
                }
            });
        } catch(final Exception e) {
View Full Code Here

                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                   
                    final Account account = sm.getAccount(manager);
                    final Group group = sm.getGroup(groupName);
                    group.addManager(account);
                    sm.updateGroup(group);
                   
                    return null;
                }
            });
        } catch(final Exception e) {
View Full Code Here

                    final SecurityManager sm = broker.getBrokerPool().getSecurityManager();
                   
                    final Group group = sm.getGroup(groupName);
                    final Account account = sm.getAccount(manager);
                    group.removeManager(account);
                    sm.updateGroup(group);
                   
                    return null;
                }
            });
        } catch(final Exception e) {
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.