# sprint-2: Moved Visor data transfer objects for security events to enterprise.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/94286c74
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/94286c74
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/94286c74

Branch: refs/heads/ignite-281
Commit: 94286c74641d8feb043f229ffa88cad2e9fc04bf
Parents: 56a8367
Author: AKuznetsov <akuznet...@gridgain.com>
Authored: Thu Feb 19 14:54:16 2015 +0700
Committer: AKuznetsov <akuznet...@gridgain.com>
Committed: Thu Feb 19 14:54:16 2015 +0700

----------------------------------------------------------------------
 .../event/VisorGridAuthenticationEvent.java     | 106 -------------------
 .../event/VisorGridAuthorizationEvent.java      |  89 ----------------
 2 files changed, 195 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/94286c74/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthenticationEvent.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthenticationEvent.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthenticationEvent.java
deleted file mode 100644
index 1e10916..0000000
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthenticationEvent.java
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.apache.ignite.internal.visor.event;
-
-import org.apache.ignite.internal.util.typedef.internal.*;
-import org.apache.ignite.lang.*;
-import org.apache.ignite.plugin.security.*;
-
-import java.util.*;
-
-/**
- * Lightweight counterpart for AuthenticationEvent.
- */
-public class VisorGridAuthenticationEvent extends VisorGridEvent {
-    /** */
-    private static final long serialVersionUID = 0L;
-
-    /** Subject type. */
-    private final GridSecuritySubjectType subjType;
-
-    /** Subject ID. */
-    private final UUID subjId;
-
-    /** Login. */
-    private final Object login;
-
-    /**
-     * Create event with given parameters.
-     *
-     * @param typeId Event type.
-     * @param id Event id.
-     * @param name Event name.
-     * @param nid Event node ID.
-     * @param ts Event timestamp.
-     * @param msg Event message.
-     * @param shortDisplay Shortened version of {@code toString()} result.
-     * @param subjType Subject type.
-     * @param subjId Subject ID.
-     * @param login Login object.
-     */
-    public VisorGridAuthenticationEvent(
-        int typeId,
-        IgniteUuid id,
-        String name,
-        UUID nid,
-        long ts,
-        String msg,
-        String shortDisplay,
-        GridSecuritySubjectType subjType,
-        UUID subjId,
-        Object login
-    ) {
-        super(typeId, id, name, nid, ts, msg, shortDisplay);
-
-        this.subjType = subjType;
-        this.subjId = subjId;
-        this.login = login;
-    }
-
-    /**
-     * Gets subject ID that triggered the event.
-     *
-     * @return Subject ID that triggered the event.
-     */
-    public UUID subjId() {
-        return subjId;
-    }
-
-    /**
-     * Gets login that triggered event.
-     *
-     * @return Login object.
-     */
-    public Object login() {
-        return login;
-    }
-
-    /**
-     * Gets subject type that triggered the event.
-     *
-     * @return Subject type that triggered the event.
-     */
-    public GridSecuritySubjectType subjType() {
-        return subjType;
-    }
-
-    /** {@inheritDoc} */
-    @Override public String toString() {
-        return S.toString(VisorGridAuthenticationEvent.class, this);
-    }
-}

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/94286c74/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthorizationEvent.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthorizationEvent.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthorizationEvent.java
deleted file mode 100644
index 71f0968..0000000
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/visor/event/VisorGridAuthorizationEvent.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You 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.apache.ignite.internal.visor.event;
-
-import org.apache.ignite.internal.util.typedef.internal.*;
-import org.apache.ignite.lang.*;
-import org.apache.ignite.plugin.security.*;
-
-import java.util.*;
-
-/**
- * Lightweight counterpart for AuthorizationEvent.
- */
-public class VisorGridAuthorizationEvent extends VisorGridEvent {
-    /** */
-    private static final long serialVersionUID = 0L;
-
-    /** Requested operation. */
-    private final GridSecurityPermission operation;
-
-    /** Authenticated subject authorized to perform operation. */
-    private final GridSecuritySubject subject;
-
-    /**
-     * Create event with given parameters.
-     *
-     * @param typeId Event type.
-     * @param id Event id.
-     * @param name Event name.
-     * @param nid Event node ID.
-     * @param ts Event timestamp.
-     * @param msg Event message.
-     * @param shortDisplay Shortened version of {@code toString()} result.
-     */
-    public VisorGridAuthorizationEvent(
-        int typeId,
-        IgniteUuid id,
-        String name,
-        UUID nid,
-        long ts,
-        String msg,
-        String shortDisplay,
-        GridSecurityPermission operation,
-        GridSecuritySubject subject
-    ) {
-        super(typeId, id, name, nid, ts, msg, shortDisplay);
-
-        this.operation = operation;
-        this.subject = subject;
-    }
-
-    /**
-     * Gets requested operation.
-     *
-     * @return Requested operation.
-     */
-    public GridSecurityPermission operation() {
-        return operation;
-    }
-
-    /**
-     * Gets authenticated subject.
-     *
-     * @return Authenticated subject.
-     */
-    public GridSecuritySubject subject() {
-        return subject;
-    }
-
-    /** {@inheritDoc} */
-    @Override public String toString() {
-        return S.toString(VisorGridAuthorizationEvent.class, this);
-    }
-}

Reply via email to