@Test void resolve() { UserReference reference = this.resolver.resolve(new DocumentReference("wiki", "space", "page")); assertNotNull(reference); assertTrue(reference instanceof DocumentUserReference); assertEquals("wiki:space.page", ((DocumentUserReference) reference).getReference().toString()); }
@Override public UserReference resolve(DocumentReference rawReference, Object... parameters) { UserReference reference; if (rawReference == null) { reference = CurrentUserReference.INSTANCE; } else { reference = resolveName(rawReference.getName()); if (reference == null) { reference = new DocumentUserReference(rawReference, this.entityReferenceProvider); } } return reference; }
DocumentDocumentReferenceUserReferenceResolver extends AbstractUserReferenceResolver<DocumentReference> { @Override public UserReference resolve(DocumentReference rawReference, Object... parameters) { UserReference reference; if (rawReference == null) { reference = CurrentUserReference.INSTANCE; } else { reference = resolveName(rawReference.getName()); if (reference == null) { reference = new DocumentUserReference(rawReference, this.entityReferenceProvider); } } return reference; } }
DocumentDocumentReferenceUserReferenceResolver extends AbstractUserReferenceResolver<DocumentReference> { @Override public UserReference resolve(DocumentReference rawReference, Object... parameters) { UserReference reference; if (rawReference == null) { reference = CurrentUserReference.INSTANCE; } else { reference = resolveName(rawReference.getName()); if (reference == null) { reference = new DocumentUserReference(rawReference, this.entityReferenceProvider); } } return reference; }  }
DocumentDocumentReferenceUserReferenceResolver extends AbstractUserReferenceResolver<DocumentReference> { @Override public UserReference resolve(DocumentReference rawReference, Object... parameters) { UserReference reference; if (rawReference == null) { reference = CurrentUserReference.INSTANCE; } else { reference = resolveName(rawReference.getName()); if (reference == null) { reference = new DocumentUserReference(rawReference, this.entityReferenceProvider); } } return reference; }  @Override UserReference resolve(DocumentReference rawReference, Object... parameters); }
DocumentDocumentReferenceUserReferenceResolver extends AbstractUserReferenceResolver<DocumentReference> { @Override public UserReference resolve(DocumentReference rawReference, Object... parameters) { UserReference reference; if (rawReference == null) { reference = CurrentUserReference.INSTANCE; } else { reference = resolveName(rawReference.getName()); if (reference == null) { reference = new DocumentUserReference(rawReference, this.entityReferenceProvider); } } return reference; }  @Override UserReference resolve(DocumentReference rawReference, Object... parameters);  }