Tabnine Logo
Department.getGroupKeyCode
Code IndexAdd Tabnine to your IDE (free)

How to use
getGroupKeyCode
method
in
org.kuali.kpme.core.api.department.Department

Best Java code snippets using org.kuali.kpme.core.api.department.Department.getGroupKeyCode (Showing top 4 results out of 315)

origin: org.kuali.kpme/kpme-core-api

public String getBusinessKeyString() {
  return getGroupKeyCode() + "|" + getDept();
}
origin: org.kuali.kpme/kpme-tk-lm-impl

  public List<ClockLocationRule> getClockLocationRules(String userPrincipalId, List <ClockLocationRule> clockLocationRuleObjs) {
    List<ClockLocationRule> results = new ArrayList<ClockLocationRule>();
    
    if ( clockLocationRuleObjs != null ){
      for (ClockLocationRule clockLocationRuleObj : clockLocationRuleObjs) {
        String department = clockLocationRuleObj.getDept(); 
        Department departmentObj = HrServiceLocator.getDepartmentService().getDepartment(department, clockLocationRuleObj.getGroupKeyCode(), clockLocationRuleObj.getEffectiveLocalDate());
        String location = departmentObj != null ? departmentObj.getGroupKey().getLocationId() : null;
        String groupKeyCode = departmentObj != null ? departmentObj.getGroupKeyCode() : null;

        Map<String, String> roleQualification = new HashMap<String, String>();
        roleQualification.put(KimConstants.AttributeConstants.PRINCIPAL_ID, userPrincipalId);
        roleQualification.put(KPMERoleMemberAttribute.DEPARTMENT.getRoleMemberAttributeName(), department);
        roleQualification.put(KPMERoleMemberAttribute.GROUP_KEY_CODE.getRoleMemberAttributeName(), groupKeyCode);
        roleQualification.put(KPMERoleMemberAttribute.LOCATION.getRoleMemberAttributeName(), location);
        
        if (!KimApiServiceLocator.getPermissionService().isPermissionDefinedByTemplate(KPMENamespace.KPME_WKFLW.getNamespaceCode(),
            KPMEPermissionTemplate.VIEW_KPME_RECORD.getPermissionTemplateName(), new HashMap<String, String>())
         || KimApiServiceLocator.getPermissionService().isAuthorizedByTemplate(userPrincipalId, KPMENamespace.KPME_WKFLW.getNamespaceCode(),
             KPMEPermissionTemplate.VIEW_KPME_RECORD.getPermissionTemplateName(), new HashMap<String, String>(), roleQualification)) {
          results.add(clockLocationRuleObj);
        }
      }
    }
    
    return results;
  }
}
origin: org.kuali.kpme/kpme-pm-impl

@Override
protected void addRoleQualification(Object dataObject, Map<String, String> attributes) {
  super.addRoleQualification(dataObject, attributes);
  if ( (dataObject instanceof PositionBo) || (dataObject instanceof PositionContract) || (dataObject instanceof Position)) {
    PositionBo positionObj = (PositionBo) dataObject;
    if (positionObj != null) {
      Department departmentObj = HrServiceLocator.getDepartmentService().getDepartment(positionObj.getPrimaryDepartment(), positionObj.getGroupKeyCode(), positionObj.getEffectiveLocalDate());
      if (departmentObj != null) {
        attributes.put(KPMERoleMemberAttribute.INSTITUION.getRoleMemberAttributeName(), departmentObj.getGroupKey().getInstitutionCode());
        attributes.put(KPMERoleMemberAttribute.DEPARTMENT.getRoleMemberAttributeName(), departmentObj.getDept());
        attributes.put(KPMERoleMemberAttribute.LOCATION.getRoleMemberAttributeName(), departmentObj.getGroupKey().getLocationId());
        attributes.put(KPMERoleMemberAttribute.ORGANIZATION.getRoleMemberAttributeName(), departmentObj.getOrg());
        attributes.put(KPMERoleMemberAttribute.GROUP_KEY_CODE.getRoleMemberAttributeName(), departmentObj.getGroupKeyCode());
      } else {
        attributes.put(KPMERoleMemberAttribute.INSTITUION.getRoleMemberAttributeName(), "%");
        attributes.put(KPMERoleMemberAttribute.DEPARTMENT.getRoleMemberAttributeName(), "%");
        attributes.put(KPMERoleMemberAttribute.LOCATION.getRoleMemberAttributeName(), "%");
        attributes.put(KPMERoleMemberAttribute.ORGANIZATION.getRoleMemberAttributeName(), "%");
        attributes.put(KPMERoleMemberAttribute.GROUP_KEY_CODE.getRoleMemberAttributeName(), "%");
      }
    }
  }
}
origin: org.kuali.kpme/kpme-tk-lm-impl

  return true;
if(HrServiceLocator.getKPMERoleService().principalHasRoleInDepartment(principalId, KPMENamespace.KPME_HR.getNamespaceCode(), KPMERole.PAYROLL_PROCESSOR.getRoleName(), aDept.getDept(), aDept.getGroupKeyCode(), LocalDate.now().toDateTimeAtStartOfDay())) {
  return true;
if(HrServiceLocator.getKPMERoleService().principalHasRoleInDepartment(principalId, KPMENamespace.KPME_HR.getNamespaceCode(), KPMERole.PAYROLL_PROCESSOR_DELEGATE.getRoleName(), aDept.getDept(), aDept.getGroupKeyCode(), LocalDate.now().toDateTimeAtStartOfDay())) {
  return true;
org.kuali.kpme.core.api.departmentDepartmentgetGroupKeyCode

Popular methods of Department

  • getDept
  • getGroupKey
  • <init>
  • getOrg
  • isPayrollApproval

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now