Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created new FedoraEvent abstraction for: https://www.pivotaltracker.c…
- Loading branch information
Showing
5 changed files
with
74 additions
and
17 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
52 changes: 52 additions & 0 deletions
52
fcrepo-kernel/src/main/java/org/fcrepo/observer/FedoraEvent.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,52 @@ | ||
|
||
package org.fcrepo.observer; | ||
|
||
import java.util.Map; | ||
|
||
import javax.jcr.RepositoryException; | ||
import javax.jcr.observation.Event; | ||
|
||
public class FedoraEvent implements Event { | ||
|
||
Event e; | ||
|
||
public FedoraEvent(Event e) { | ||
this.e = e; | ||
} | ||
|
||
@Override | ||
public int getType() { | ||
return e.getType(); | ||
} | ||
|
||
@Override | ||
public String getPath() throws RepositoryException { | ||
return e.getPath(); | ||
} | ||
|
||
@Override | ||
public String getUserID() { | ||
return e.getUserID(); | ||
} | ||
|
||
@Override | ||
public String getIdentifier() throws RepositoryException { | ||
return e.getIdentifier(); | ||
} | ||
|
||
@Override | ||
public Map getInfo() throws RepositoryException { | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getUserData() throws RepositoryException { | ||
return e.getUserData(); | ||
} | ||
|
||
@Override | ||
public long getDate() throws RepositoryException { | ||
return e.getDate(); | ||
} | ||
|
||
} |
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