public interface DepartmentExecutor extends CacheExecutor
限定符和类型 | 方法和说明 |
---|---|
void |
cache(Department ment)
添加部门
|
void |
cacheNewName(long did,
java.lang.String newName)
更新部门名称
|
Department |
findDepartmentByNameAndParentName(java.lang.String deparmentName,
java.lang.String parentDepartmentName) |
Department |
findDepartmentByNameAndPID(java.lang.String departmentPID)
根据部门名称和pid查找部门
|
Department |
getDepartment(long id) |
Department |
getDepartmentByNameAndPid(java.lang.String dpname,
long pid) |
java.lang.Long[] |
getDepartmentPath(long id) |
java.lang.Long[] |
getDpidsByPid(long pid) |
DepartmentTreeNode |
getRootNode() |
java.lang.String |
getShowDepartmentName(long id,
java.lang.String prefix) |
boolean |
removeCache(long id)
删除部门
|
buildCache, clearCache, getClassKey, rebuildCache
void cache(Department ment)
ment
- 部门对象void cacheNewName(long did, java.lang.String newName)
did
- 部门idnewName
- 新名称DepartmentTreeNode getRootNode()
Department getDepartment(long id)
java.lang.Long[] getDpidsByPid(long pid)
Department getDepartmentByNameAndPid(java.lang.String dpname, long pid)
java.lang.String getShowDepartmentName(long id, java.lang.String prefix)
java.lang.Long[] getDepartmentPath(long id)
boolean removeCache(long id) throws java.lang.Exception
id
- 部门idjava.lang.Exception
Department findDepartmentByNameAndParentName(java.lang.String deparmentName, java.lang.String parentDepartmentName) throws java.lang.Exception
java.lang.Exception
Department findDepartmentByNameAndPID(java.lang.String departmentPID) throws java.lang.Exception
departmentPID
- java.lang.Exception