com.alibaba.dubbo.registry.common.domain.Owner Java Examples
The following examples show how to use
com.alibaba.dubbo.registry.common.domain.Owner.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Owners.java From dubbox with Apache License 2.0 | 6 votes |
public boolean delete(Long[] ids, Map<String, Object> context) { String service = (String) context.get("service"); String username = (String) context.get("username"); Owner owner = new Owner(); owner.setService(service); owner.setUsername(username); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.deleteOwner(owner); return true; }
Example #2
Source File: Owners.java From dubbox with Apache License 2.0 | 6 votes |
public boolean delete(Long[] ids, Map<String, Object> context) { String service = (String) context.get("service"); String username = (String) context.get("username"); Owner owner = new Owner(); owner.setService(service); owner.setUsername(username); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.deleteOwner(owner); return true; }
Example #3
Source File: Owners.java From dubbo3 with Apache License 2.0 | 6 votes |
public boolean delete(Long[] ids, Map<String, Object> context) { String service = (String) context.get("service"); String username = (String) context.get("username"); Owner owner = new Owner(); owner.setService(service); owner.setUsername(username); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.deleteOwner(owner); return true; }
Example #4
Source File: Owners.java From dubbox with Apache License 2.0 | 6 votes |
public boolean delete(Long[] ids, Map<String, Object> context) { String service = (String) context.get("service"); String username = (String) context.get("username"); Owner owner = new Owner(); owner.setService(service); owner.setUsername(username); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.deleteOwner(owner); return true; }
Example #5
Source File: Owners.java From dubbox-hystrix with Apache License 2.0 | 6 votes |
public boolean delete(Long[] ids, Map<String, Object> context) { String service = (String) context.get("service"); String username = (String) context.get("username"); Owner owner = new Owner(); owner.setService(service); owner.setUsername(username); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.deleteOwner(owner); return true; }
Example #6
Source File: Owners.java From dubbo3 with Apache License 2.0 | 5 votes |
public void index(Map<String, Object> context) { String service = (String) context.get("service"); List<Owner> owners; if (service != null && service.length() > 0) { owners = ownerService.findByService(service); } else { owners = ownerService.findAll(); } context.put("owners", owners); }
Example #7
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public boolean create(Owner owner, Map<String, Object> context) { String service = owner.getService(); String username = owner.getUsername(); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.saveOwner(owner); return true; }
Example #8
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public void index(Map<String, Object> context) { String service = (String) context.get("service"); List<Owner> owners; if (service != null && service.length() > 0) { owners = ownerService.findByService(service); } else { owners = ownerService.findAll(); } context.put("owners", owners); }
Example #9
Source File: Owners.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
public boolean create(Owner owner, Map<String, Object> context) { String service = owner.getService(); String username = owner.getUsername(); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.saveOwner(owner); return true; }
Example #10
Source File: Owners.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
public void index(Map<String, Object> context) { String service = (String) context.get("service"); List<Owner> owners; if (service != null && service.length() > 0) { owners = ownerService.findByService(service); } else { owners = ownerService.findAll(); } context.put("owners", owners); }
Example #11
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public void index(Map<String, Object> context) { String service = (String) context.get("service"); List<Owner> owners; if (service != null && service.length() > 0) { owners = ownerService.findByService(service); } else { owners = ownerService.findAll(); } context.put("owners", owners); }
Example #12
Source File: Owners.java From dubbo3 with Apache License 2.0 | 5 votes |
public boolean create(Owner owner, Map<String, Object> context) { String service = owner.getService(); String username = owner.getUsername(); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.saveOwner(owner); return true; }
Example #13
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public boolean create(Owner owner, Map<String, Object> context) { String service = owner.getService(); String username = owner.getUsername(); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.saveOwner(owner); return true; }
Example #14
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public void index(Map<String, Object> context) { String service = (String) context.get("service"); List<Owner> owners; if (service != null && service.length() > 0) { owners = ownerService.findByService(service); } else { owners = ownerService.findAll(); } context.put("owners", owners); }
Example #15
Source File: Owners.java From dubbox with Apache License 2.0 | 5 votes |
public boolean create(Owner owner, Map<String, Object> context) { String service = owner.getService(); String username = owner.getUsername(); if (service == null || service.length() == 0 || username == null || username.length() == 0){ context.put("message", getMessage("NoSuchOperationData")); return false; } if (! super.currentUser.hasServicePrivilege(service)) { context.put("message", getMessage("HaveNoServicePrivilege", service)); return false; } ownerService.saveOwner(owner); return true; }
Example #16
Source File: OwnerServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
public List<Owner> findByService(String serviceName) { List<Provider> pList = providerService.findByService(serviceName); List<Override> cList = overrideService.findByServiceAndAddress(serviceName, Constants.ANYHOST_VALUE); return toOverrideLiset(pList,cList); }
Example #17
Source File: OwnerServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
public List<Owner> findAll() { List<Provider> pList = providerService.findAll(); List<Override> cList = overrideService.findAll(); return toOverrideLiset(pList,cList); }
Example #18
Source File: OwnerServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
public List<Owner> findAll() { List<Provider> pList = providerService.findAll(); List<Override> cList = overrideService.findAll(); return toOverrideLiset(pList,cList); }
Example #19
Source File: OwnerServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
public List<Owner> findByService(String serviceName) { List<Provider> pList = providerService.findByService(serviceName); List<Override> cList = overrideService.findByServiceAndAddress(serviceName, Constants.ANYHOST_VALUE); return toOverrideLiset(pList,cList); }
Example #20
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findByService(String serviceName) { List<Provider> pList = providerService.findByService(serviceName); List<Override> cList = overrideService.findByServiceAndAddress(serviceName, Constants.ANYHOST_VALUE); return toOverrideLiset(pList,cList); }
Example #21
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findAll() { List<Provider> pList = providerService.findAll(); List<Override> cList = overrideService.findAll(); return toOverrideLiset(pList,cList); }
Example #22
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findAll() { List<Provider> pList = providerService.findAll(); List<Override> cList = overrideService.findAll(); return toOverrideLiset(pList,cList); }
Example #23
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findByService(String serviceName) { List<Provider> pList = providerService.findByService(serviceName); List<Override> cList = overrideService.findByServiceAndAddress(serviceName, Constants.ANYHOST_VALUE); return toOverrideLiset(pList,cList); }
Example #24
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findByService(String serviceName) { List<Provider> pList = providerService.findByService(serviceName); List<Override> cList = overrideService.findByServiceAndAddress(serviceName, Constants.ANYHOST_VALUE); return toOverrideLiset(pList,cList); }
Example #25
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public List<Owner> findAll() { List<Provider> pList = providerService.findAll(); List<Override> cList = overrideService.findAll(); return toOverrideLiset(pList,cList); }
Example #26
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 2 votes |
public Owner findById(Long id) { return null; }
Example #27
Source File: OwnerServiceImpl.java From dubbo3 with Apache License 2.0 | 2 votes |
public Owner findById(Long id) { return null; }
Example #28
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 2 votes |
public Owner findById(Long id) { return null; }
Example #29
Source File: OwnerServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 2 votes |
public Owner findById(Long id) { return null; }
Example #30
Source File: OwnerServiceImpl.java From dubbox with Apache License 2.0 | 2 votes |
public Owner findById(Long id) { return null; }