Skip to content

Commit

Permalink
For #330 Adding license headers for new files
Browse files Browse the repository at this point in the history
  • Loading branch information
cjnolet committed Apr 29, 2015
1 parent 4b3acdb commit 454e4b1
Show file tree
Hide file tree
Showing 4 changed files with 741 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2015 The Calrissian Authors
*
* 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.calrissian.store.json.event;

import java.util.Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright (C) 2015 The Calrissian Authors
*
* 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.calrissian.store.json.event;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
/*
* Copyright (C) 2015 The Calrissian Authors
*
* 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.calrissian.store.json.event.impl;

import static com.google.common.collect.Iterables.transform;
import static org.apache.commons.lang.StringUtils.replace;
import static org.calrissian.mango.json.util.store.JsonAttributeStore.fromMap;
import static org.calrissian.mango.json.util.store.JsonAttributeStore.toObject;
import java.util.Collection;
import java.util.Date;
Expand All @@ -18,7 +34,6 @@
import org.calrissian.mango.domain.event.Event;
import org.calrissian.mango.domain.event.EventBuilder;
import org.calrissian.mango.domain.event.EventIdentifier;
import org.calrissian.mango.json.util.store.JsonAttributeStore;
import org.calrissian.store.json.event.JsonEvent;
import org.calrissian.store.json.event.JsonEventStore;

Expand Down Expand Up @@ -99,7 +114,7 @@ public CloseableIterable<String> getTypes(String prefix, Auths auths) {
@Override
public Event apply(JsonEvent jsonEvent) {
EventBuilder eventBuilder = EventBuilder.create(jsonEvent.getType(), jsonEvent.getId(), jsonEvent.getTimestamp());
eventBuilder.attrs(JsonAttributeStore.fromMap(jsonEvent.getDocument()));
eventBuilder.attrs(fromMap(jsonEvent.getDocument()));
return eventBuilder.build();
}
};
Expand Down
Loading

0 comments on commit 454e4b1

Please sign in to comment.