Modified NoteResourceNotSupportedException class name

This commit is contained in:
ashok-conflux
2013-03-08 16:32:16 +05:30
parent 6593faca64
commit 47c8daf0df
3 changed files with 11 additions and 11 deletions
@@ -32,7 +32,7 @@ import org.mifosplatform.infrastructure.core.serialization.DefaultToApiJsonSeria
import org.mifosplatform.infrastructure.security.service.PlatformSecurityContext;
import org.mifosplatform.portfolio.note.data.NoteData;
import org.mifosplatform.portfolio.note.domain.NoteType;
import org.mifosplatform.portfolio.note.exception.NoteResourceNotSupportedFoundException;
import org.mifosplatform.portfolio.note.exception.NoteResourceNotSupportedException;
import org.mifosplatform.portfolio.note.service.NoteReadPlatformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
@@ -72,7 +72,7 @@ public class NotesApiResource {
NoteType noteType = NoteType.fromApiUrl(resourceType);
if(noteType == null){ throw new NoteResourceNotSupportedFoundException(resourceType); };
if(noteType == null){ throw new NoteResourceNotSupportedException(resourceType); };
this.context.authenticatedUser().validateHasReadPermission(getResourceNameForPermissions(noteType));
@@ -93,7 +93,7 @@ public class NotesApiResource {
NoteType noteType = NoteType.fromApiUrl(resourceType);
if(noteType == null){ throw new NoteResourceNotSupportedFoundException(resourceType); };
if(noteType == null){ throw new NoteResourceNotSupportedException(resourceType); };
this.context.authenticatedUser().validateHasReadPermission(getResourceNameForPermissions(noteType));
@@ -113,7 +113,7 @@ public class NotesApiResource {
NoteType noteType = NoteType.fromApiUrl(resourceType);
if(noteType == null){ throw new NoteResourceNotSupportedFoundException(resourceType); };
if(noteType == null){ throw new NoteResourceNotSupportedException(resourceType); };
final String resourceNameForPermissions = getResourceNameForPermissions(noteType);
final CommandWrapper commandRequest = new CommandWrapperBuilder().createNote(resourceNameForPermissions, resourceType, resourceId)
@@ -133,7 +133,7 @@ public class NotesApiResource {
NoteType noteType = NoteType.fromApiUrl(resourceType);
if(noteType == null){ throw new NoteResourceNotSupportedFoundException(resourceType); };
if(noteType == null){ throw new NoteResourceNotSupportedException(resourceType); };
final String resourceNameForPermissions = getResourceNameForPermissions(noteType);
@@ -153,7 +153,7 @@ public class NotesApiResource {
NoteType noteType = NoteType.fromApiUrl(resourceType);
if(noteType == null){ throw new NoteResourceNotSupportedFoundException(resourceType); };
if(noteType == null){ throw new NoteResourceNotSupportedException(resourceType); };
final String resourceNameForPermissions = getResourceNameForPermissions(noteType);
@@ -10,9 +10,9 @@ import org.mifosplatform.infrastructure.core.exception.AbstractPlatformResourceN
/**
* A {@link RuntimeException} thrown when Note does not support a resource.
*/
public class NoteResourceNotSupportedFoundException extends AbstractPlatformResourceNotFoundException {
public class NoteResourceNotSupportedException extends AbstractPlatformResourceNotFoundException {
public NoteResourceNotSupportedFoundException(final String resource) {
public NoteResourceNotSupportedException(final String resource) {
super("error.msg.note.resource.not.supported", "Note does not support resource " + resource);
}
}
@@ -26,7 +26,7 @@ import org.mifosplatform.portfolio.note.domain.Note;
import org.mifosplatform.portfolio.note.domain.NoteRepository;
import org.mifosplatform.portfolio.note.domain.NoteType;
import org.mifosplatform.portfolio.note.exception.NoteNotFoundException;
import org.mifosplatform.portfolio.note.exception.NoteResourceNotSupportedFoundException;
import org.mifosplatform.portfolio.note.exception.NoteResourceNotSupportedException;
import org.mifosplatform.portfolio.note.serialization.NoteCommandFromApiJsonDeserializer;
import org.mifosplatform.portfolio.savingsaccount.domain.SavingAccount;
import org.mifosplatform.portfolio.savingsaccount.domain.SavingAccountRepository;
@@ -208,7 +208,7 @@ public class NoteWritePlatformServiceJpaRepositoryImpl implements NoteWritePlatf
return createSavingAccountNote(command);
}
default:
throw new NoteResourceNotSupportedFoundException(resourceUrl);
throw new NoteResourceNotSupportedException(resourceUrl);
}
}
@@ -409,7 +409,7 @@ public class NoteWritePlatformServiceJpaRepositoryImpl implements NoteWritePlatf
return updateSavingAccountNote(command);
}
default:
throw new NoteResourceNotSupportedFoundException(resourceUrl);
throw new NoteResourceNotSupportedException(resourceUrl);
}
}