-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource representations, resource implementations, enhancend existin…
…g services, etc.
- Loading branch information
Showing
39 changed files
with
1,595 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...album-management/src/main/java/com/mgu/photoalbum/service/ImageDoesNotExistException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.mgu.photoalbum.service; | ||
|
||
import com.mgu.photoalbum.exception.PhotoalbumException; | ||
|
||
public class ImageDoesNotExistException extends PhotoalbumException { | ||
|
||
private static final String ERROR_MESSAGE = "The image file for photo with ID %s does not exist on the filesystem."; | ||
|
||
public ImageDoesNotExistException(final String photoId) { | ||
super(String.format(ERROR_MESSAGE, photoId)); | ||
} | ||
|
||
@Override | ||
public String getErrorCode() { | ||
return "P004"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...bum-management/src/main/java/com/mgu/photoalbum/service/UnableToReplaceTagsException.java
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
photoalbum-management/src/main/java/com/mgu/photoalbum/service/UnableToUpdateMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.mgu.photoalbum.service; | ||
|
||
import com.mgu.photoalbum.exception.PhotoalbumException; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import java.util.List; | ||
|
||
public class UnableToUpdateMetadata extends PhotoalbumException { | ||
|
||
private static final String ERROR_MESSAGE = "Unable to set description to %s and replace existing tags by %s for photo with ID %s."; | ||
|
||
public UnableToUpdateMetadata(final String photoId, final String description, final List<String> tags) { | ||
super(String.format(ERROR_MESSAGE, description, StringUtils.join(tags, ","), photoId)); | ||
} | ||
|
||
@Override | ||
public String getErrorCode() { | ||
return "P003"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.