📄 executiveposition.java
字号:
/*
* ExecutivePosition.java
*
* Created on 2001年7月13日, 上午8:43
*/
package com.gs.db;
/**
* An ExecutivePosition object holds the infomation of a position
* in an enterprise organization hierachy. A position consists of
* two elements : the unit and the priority rank in the unit
* @see Unit , Group
* @author administrator
* @version
*/
public class ExecutivePosition extends java.lang.Object {
private String unitID="-1";
private int priorityRank=0;
private ProfileManager profileManager;
/** Creates new ExecutivePosition */
public ExecutivePosition(String unitID, int prRank, ProfileManager profileManager) {
this.unitID = unitID;
if (prRank >=0 ) this.priorityRank = prRank;
this.profileManager = profileManager;
}
/**
* Return a which unit that the position belongs to
*/
public Unit getUnit( ) throws UnitNotFoundException
{
return profileManager.getUnit( unitID );
}
/**
* Return the priority rank of the position
*/
public int getPriorityRank( )
{
return priorityRank;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -