<commit_before>/*
 * Copyright 2007 The Kuali Foundation
 *
 * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
 *
 * 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.kuali.rice.kim.service.support;

import java.util.List;
import java.util.Map;


/**
 * This is a description of what this class does - jonathan don't forget to fill this in. 
 * 
 * @author Kuali Rice Team (<EMAIL>)
 *
 */
public interface KimResponsibilityTypeService extends KimTypeService {

    /** Return whether a permission assignment with the given details is applicable for the given request details. 
     * 
     * For example, the details for a permission (say edit) could be as follows:
     *   component = Account
     *   field = incomeStreamAccountNumber
     *   
     * The Account component is known to belong to the KFS-COA namespace.  If this service is requested...
     * component = Account, field = All  
     *   
     *   
     * TODO: clarify this description
     */
    boolean doesResponsibilityDetailMatch( Map<String,String> requestedDetails, Map<String,String> responsibilityDetails );

    /** Same as {@link #doesResponsibilityDetailMatch(Map, Map)} except that it takes a list of details to check.
     */
    boolean doResponsibilityDetailsMatch( Map<String,String> requestedDetails, List<Map<String,String>> responsibilityDetailsList );

    /**
     * This method would return all permission details that the given details imply. (down)
     */
    List<Map<String,String>> getAllImpliedDetails( Map<String,String> requestedDetails );

    /**
     * This method would return all detail entries that imply this set of detail attributes. (up)
     * 
     * TODO: 
     * Allowing?
     * Allowed?
     * Granting?
     */
    List<Map<String,String>> getAllImplyingDetails( Map<String,String> requestedDetails );
    // TODO: need list versions of the implyed/ing methods?

	<commit_msg>Added needed API method to the KimResponsibilityService for managing assignment of actions through the UI.<commit_after>/*
 * Copyright 2007 The Kuali Foundation
 *
 * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
 *
 * 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.kuali.rice.kim.service.support;

import java.util.List;
import java.util.Map;


/**
 * This is a description of what this class does - jonathan don't forget to fill this in. 
 * 
 * @author Kuali Rice Team (<EMAIL>)
 *
 */
public interface KimResponsibilityTypeService extends KimTypeService {

    /** Return whether a permission assignment with the given details is applicable for the given request details. 
     * 
     * For example, the details for a permission (say edit) could be as follows:
     *   component = Account
     *   field = incomeStreamAccountNumber
     *   
     * The Account component is known to belong to the KFS-COA namespace.  If this service is requested...
     * component = Account, field = All  
     *   
     *   
     * TODO: clarify this description
     */
    boolean doesResponsibilityDetailMatch( Map<String,String> requestedDetails, Map<String,String> responsibilityDetails );

    /** Same as {@link #doesResponsibilityDetailMatch(Map, Map)} except that it takes a list of details to check.
     */
    boolean doResponsibilityDetailsMatch( Map<String,String> requestedDetails, List<Map<String,String>> responsibilityDetailsList );

    /**
     * This method would return all permission details that the given details imply. (down)
     */
    List<Map<String,String>> getAllImpliedDetails( Map<String,String> requestedDetails );

    /**
     * This method would return all detail entries that imply this set of detail attributes. (up)
     * 
     * TODO: 
     * Allowing?
     * Allowed?
     * Granting?
     */
    List<Map<String,String>> getAllImplyingDetails( Map<String,String> requestedDetails );
    // TODO: need list versions of the implyed/ing methods?

    /**
     * Lets the system know (mainly for UI purposes) whether this responsibility expects RoleResponsibilityAction
     * records to be given at the assignment level or are global to the responsibility.  (I.e., they apply
     * to any member assigned to the responsibility.) 
     */
    boolean areActionsAtAssignmentLevel();
	
{'fraction_non_alphanumeric': 0.07872340425531915, 'fraction_numerical': 0.0027079303675048355, 'mean_word_length': 3.3822033898305084, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5329568', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1296, 'n_words': 551}