@Override
public DocumentModel getDocModelForAuthorityItem(CoreSessionInterface repoSession, RefName.AuthorityItem item)
throws Exception, DocumentNotFoundException {
- if(item == null) {
+ if (item == null) {
return null;
}
String whereClause = RefNameServiceUtils.buildWhereForAuthByName(authorityCommonSchemaName, item.getParentShortIdentifier());
*/
@Override
synchronized public RepositoryClient<IT, OT> getRepositoryClient(ServiceContext<IT, OT> ctx) {
- if(repositoryClient != null){
+ if (repositoryClient != null){
return repositoryClient;
}
repositoryClient = repositoryClientFactory.getClient(ctx.getRepositoryClientName());
public static DocumentModel getDocModelForRefName(CoreSessionInterface repoSession, String refName, ResourceMap resourceMap)
throws Exception, DocumentNotFoundException {
RefName.AuthorityItem item = RefName.AuthorityItem.parse(refName);
- if(item != null) {
+ if (item != null) {
NuxeoBasedResource resource = (NuxeoBasedResource) resourceMap.get(item.inAuthority.resource);
return resource.getDocModelForAuthorityItem(repoSession, item);
}
//Do magic replacement of ${itemCSID} and fix URI's.
fixupInboundListItems(ctx, inboundList, docModel, itemCSID);
- String HAS_BROADER = RelationshipType.HAS_BROADER.value();
+ final String HAS_BROADER = RelationshipType.HAS_BROADER.value();
UriInfo uriInfo = ctx.getUriInfo();
MultivaluedMap<String, String> queryParams = uriInfo.getQueryParameters();
String newChildCsid = inboundItem.getSubject().getCsid();
if(newChildCsid == null) {
String newChildRefName = inboundItem.getSubject().getRefName();
- if(newChildRefName==null) {
+ if (newChildRefName == null) {
throw new RuntimeException("Child with no CSID or refName!");
}
if (logger.isTraceEnabled()) {