Examples of unlockResource()


Examples of org.exist.xmldb.CollectionManagementServiceImpl.unlockResource()

                    current.getService("UserManagementService", "1.0");
                    final Account user = mgtService.getAccount(properties.getProperty("user", "guest"));
                    if(args[0].equalsIgnoreCase("lock")) {
                        mgtService.lockResource(res, user);
                    } else {
                        mgtService.unlockResource(res);
                    }
                }
               
            } else if (args[0].equalsIgnoreCase("elements")) {
                System.out.println("Element occurrences in collection "
View Full Code Here

Examples of org.exist.xmldb.UserManagementService.unlockResource()

                    current.getService("UserManagementService", "1.0");
                    final Account user = mgtService.getAccount(properties.getProperty("user", "guest"));
                    if(args[0].equalsIgnoreCase("lock")) {
                        mgtService.lockResource(res, user);
                    } else {
                        mgtService.unlockResource(res);
                    }
                }
               
            } else if (args[0].equalsIgnoreCase("elements")) {
                System.out.println("Element occurrences in collection "
View Full Code Here

Examples of org.exist.xmldb.UserManagementService.unlockResource()

      {return;}
    try
    {
      final UserManagementService service = (UserManagementService) collection
          .getService("UserManagementService", "1.0"); //$NON-NLS-1$ //$NON-NLS-2$
      service.unlockResource(resource);
    }
    catch (final XMLDBException e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.exist.xmldb.UserManagementService.unlockResource()

                @Override
                public void windowClosing(WindowEvent ev) {
                    try {
                        final UserManagementService service = (UserManagementService) collection
                            .getService("UserManagementService", "1.0"); //$NON-NLS-1$ //$NON-NLS-2$
                        service.unlockResource(resource);
                    } catch (final XMLDBException e) {
                        e.printStackTrace();
                    }
                }
            });
View Full Code Here

Examples of org.exist.xmldb.UserManagementService.unlockResource()

      final UserManagementService ums = (UserManagementService) collection.getService("UserManagementService", "1.0");
      final Resource res = collection.getResource(new AnyURIValue(args[1].getStringValue()).toXmldbURI().toString());
      if (res != null) {
        final String lockUser = ums.hasUserLock(res);
        if (lockUser != null && isCalledAs("clear-lock")) {
          ums.unlockResource(res);
        }
                return lockUser == null ? Sequence.EMPTY_SEQUENCE : new StringValue(lockUser);
      } else {
                logger.error("Unable to locate resource " + args[1].getStringValue());
          throw new XPathException(this, "Unable to locate resource " + args[1].getStringValue());
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.