-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
333 additions
and
26 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
26 changes: 26 additions & 0 deletions
26
src/main/java/de/aservo/confapi/crowd/exception/NotFoundExceptionForDirectory.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,26 @@ | ||
package de.aservo.confapi.crowd.exception; | ||
|
||
import de.aservo.confapi.commons.exception.NotFoundException; | ||
import de.aservo.confapi.commons.model.AbstractDirectoryBean; | ||
|
||
public class NotFoundExceptionForDirectory extends NotFoundException { | ||
|
||
public NotFoundExceptionForDirectory( | ||
final AbstractDirectoryBean directoryBean) { | ||
|
||
this(directoryBean.getName()); | ||
} | ||
|
||
public NotFoundExceptionForDirectory( | ||
final String name) { | ||
|
||
super(String.format("Directory with name '%s' could not be found", name)); | ||
} | ||
|
||
public NotFoundExceptionForDirectory( | ||
final long id) { | ||
|
||
super(String.format("Directory with id '%s' could not be found", id)); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/de/aservo/confapi/crowd/exception/NotFoundExceptionForUser.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 de.aservo.confapi.crowd.exception; | ||
|
||
import de.aservo.confapi.commons.exception.NotFoundException; | ||
import de.aservo.confapi.commons.model.UserBean; | ||
|
||
public class NotFoundExceptionForUser extends NotFoundException { | ||
|
||
public NotFoundExceptionForUser( | ||
final UserBean userBean) { | ||
|
||
this(userBean.getUsername()); | ||
} | ||
|
||
public NotFoundExceptionForUser( | ||
final String name) { | ||
|
||
super(String.format("User with name '%s' could not be found", name)); | ||
} | ||
|
||
} |
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.