Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FCREPO-1864: Remove jcr dependencies from EventType enum
- Loading branch information
Showing
11 changed files
with
118 additions
and
132 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
45 changes: 45 additions & 0 deletions
45
fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/observer/EventType.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,45 @@ | ||
/* | ||
* Copyright 2015 DuraSpace, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.fcrepo.kernel.api.observer; | ||
|
||
/** | ||
* A convenient abstraction over JCR's integer-typed events. | ||
* | ||
* @author ajs6f | ||
* @since Feb 7, 2013 | ||
*/ | ||
public enum EventType { | ||
NODE_ADDED("node added"), | ||
NODE_REMOVED("node removed"), | ||
PROPERTY_ADDED("property added"), | ||
PROPERTY_REMOVED("property removed"), | ||
PROPERTY_CHANGED("property changed"), | ||
NODE_MOVED("node moved"), | ||
PERSIST("persist"); | ||
|
||
private final String eventName; | ||
|
||
EventType(final String eventName) { | ||
this.eventName = eventName; | ||
} | ||
|
||
/** | ||
* @return a human-readable name for this event | ||
*/ | ||
public String getName() { | ||
return this.eventName; | ||
} | ||
} |
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
78 changes: 0 additions & 78 deletions
78
fcrepo-kernel-api/src/main/java/org/fcrepo/kernel/api/utils/EventType.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.