/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ApplicationType.java,v 1.1 2009/08/19 05:40:32 veiming Exp $
*
* Portions Copyright 2013-2014 ForgeRock, Inc.
*/
/**
* Application Type defines the default supported action names; search and save
* index generators; and resource comparator.
*/
public final class ApplicationType {
//Json field reference
/**
* Constructs an instance.
*
* @param name Name of application type;
* @param actions Supported action names.
* @param searchIndex Search index generator.
* @param saveIndex Save index generator.
* @param resourceComp Resource comparator.
*/
public ApplicationType(
) throws InstantiationException, IllegalAccessException {
URLResourceName.class : resourceComp;
}
/**
* Sets application class name.
*
* @param applicationClassName Application class name.
*/
}
/**
* Returns application class name.
*
* @return application class name.
*/
return applicationClassName;
}
/**
* Returns application class
*
* @return application class
*/
throws EntitlementException {
if ((applicationClassName == null) ||
return Application.class;
}
try {
} catch (ClassNotFoundException ex) {
}
}
/**
* Returns application name.
*
* @return application name.
*/
return name;
}
/**
* Returns supported action names and its default values.
*
* @return supported action names and its default values.
*/
return actions;
}
/**
* Sets supported action names and its default values.
*
* @param actions supported action names and its default values.
*/
}
/**
* Set save index generator.
*
* @param saveIndex save index generator.
*/
ResourceNameIndexGenerator.class : saveIndex;
}
/**
* Set search index generator.
*
* @param searchIndex search index generator.
*/
ResourceNameSplitter.class : searchIndex;
}
/**
* Returns search indexes for a give resource name.
*
* @param resource Resource for generating the indexes.
* @param realm Current realm to be searched.
* @return search indexes for a give resource name.
* @throws EntitlementException When an error occurs in the entitlements framework.
*/
public ResourceSearchIndexes getResourceSearchIndex(String resource, String realm) throws EntitlementException {
}
/**
* Returns save indexes for a give resource name.
*
* @param resource Resource for generating the indexes.
* @return save indexes for a give resource name.
*/
}
/**
* Returns resource comparator.
*
* @return resource comparator.
*/
return resourceCompInstance;
}
/**
* Returns save index.
*
* @return save index.
*/
return saveIndexInstance;
}
/**
* Returns search index.
*
* @return search index.
*/
return searchIndexInstance;
}
}