creators.jsm revision 4f62e376d2ca4a3873c326c77a4b927e25b8b83a
a4544a5a0e622ef69e38641f87ab1b5685e05911Phill Cunnington/**
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * The contents of this file are subject to the terms of the Common Development and
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * Distribution License (the License). You may not use this file except in compliance with the
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * License.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster *
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * specific language governing permission and limitations under the License.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster *
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * When distributing Covered Software, include this CDDL Header Notice in each file and include
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * Header, with the fields enclosed by brackets [] replaced by your own identifying
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * information: "Portions copyright [year] [name of copyright owner]".
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster *
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster * Copyright 2016 ForgeRock AS.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster */
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterimport {
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster SERVER_ADD_REALM,
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster SESSION_ADD_REALM,
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster SESSION_REMOVE_REALM
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster} from "./types";
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterexport const sessionAddRealm = (absolutePath) => ({
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster type: SESSION_ADD_REALM,
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster absolutePath: absolutePath.toLowerCase()
d1b57e78cf72f41c7c6a52bd7c2a6d6aa4da6ba4Craig McDonnell});
a4544a5a0e622ef69e38641f87ab1b5685e05911Phill Cunnington
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterexport const sessionRemoveRealm = () => ({
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster type: SESSION_REMOVE_REALM
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster});
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterexport const serverAddRealm = (realm) => ({
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster type: SERVER_ADD_REALM,
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster realm: realm.toLowerCase()
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster});
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster