/** * Returns a list of namespace authorizations for all namespaces registered in the system and with all permissions enabled. * * @return namespacePermissions the list of namespace authorizations */ public Set<NamespaceAuthorization> getAllNamespaceAuthorizations() { Set<NamespaceAuthorization> namespaceAuthorizations = new LinkedHashSet<>(); List<NamespaceKey> namespaceKeys = namespaceDao.getNamespaces(); for (NamespaceKey namespaceKey : namespaceKeys) { NamespaceAuthorization namespaceAuthorization = new NamespaceAuthorization(); namespaceAuthorizations.add(namespaceAuthorization); namespaceAuthorization.setNamespace(namespaceKey.getNamespaceCode()); namespaceAuthorization.setNamespacePermissions(getAllNamespacePermissions()); } return namespaceAuthorizations; }
/** * Converts the given UserNamespaceAuthorizationEntity to NamespaceAuthorization. * * @param userNamespaceAuthorizationEntity The UserNamespaceAuthorizationEntity * * @return The NamespaceAuthorization */ private NamespaceAuthorization toNamespaceAuthorization(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity) { NamespaceAuthorization namespaceAuthorization = new NamespaceAuthorization(); namespaceAuthorization.setNamespace(userNamespaceAuthorizationEntity.getNamespace().getCode()); namespaceAuthorization.setNamespacePermissions(getNamespacePermissions(userNamespaceAuthorizationEntity)); return namespaceAuthorization; }
/** * Converts the given UserNamespaceAuthorizationEntity to NamespaceAuthorization. * * @param userNamespaceAuthorizationEntity The UserNamespaceAuthorizationEntity * * @return The NamespaceAuthorization */ private NamespaceAuthorization toNamespaceAuthorization(UserNamespaceAuthorizationEntity userNamespaceAuthorizationEntity) { NamespaceAuthorization namespaceAuthorization = new NamespaceAuthorization(); namespaceAuthorization.setNamespace(userNamespaceAuthorizationEntity.getNamespace().getCode()); namespaceAuthorization.setNamespacePermissions(getNamespacePermissions(userNamespaceAuthorizationEntity)); return namespaceAuthorization; }
/** * Returns a list of namespace authorizations for all namespaces registered in the system and with all permissions enabled. * * @return namespacePermissions the list of namespace authorizations */ public Set<NamespaceAuthorization> getAllNamespaceAuthorizations() { Set<NamespaceAuthorization> namespaceAuthorizations = new LinkedHashSet<>(); List<NamespaceKey> namespaceKeys = namespaceDao.getNamespaces(); for (NamespaceKey namespaceKey : namespaceKeys) { NamespaceAuthorization namespaceAuthorization = new NamespaceAuthorization(); namespaceAuthorizations.add(namespaceAuthorization); namespaceAuthorization.setNamespace(namespaceKey.getNamespaceCode()); namespaceAuthorization.setNamespacePermissions(getAllNamespacePermissions()); } return namespaceAuthorizations; }
sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {
sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {
sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {