Usages
- To provide the ability to integrate users from external system. E.g. Active Directory or LDAP
- Directory Manager Plugin can be used in Settings - Directory Manager.
- A useable Directory Manager plugin must extends org.joget.directory.model.service.DefaultDirectoryManagerPlugin abstract class.
Abstract Class
org.joget.directory.model.service.DefaultDirectoryManagerPlugin
- Under wflow-directory module
- Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.
- Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.
- A base abstract class to develop a Directory Manager Plugin
Method Detail
Abstract Methods
authenticate
boolean authenticate(String username, String password)
Method called to authenticate a particular User against the directory
getDepartmentById
Department getDepartmentById(String departmentId)
Method called to retrieve a specific Department by Department Id
getDepartmentHod
User getDepartmentHod(String departmentId)
Method called to return a specific HOD for a Department
getDepartmentList
Collection<Department> getDepartmentList()
Generic method called to retrieve all Departments within the directory
getDepartmentList
Collection<Department> getDepartmentList(String sort, Boolean desc, Integer start, Integer rows)
Method called to retrieve all Departments within the directory filtered by search parameters
getDepartmentListByOrganization
Collection<Department> getDepartmentListByOrganization(String organizationId, String sort, Boolean desc, Integer start, Integer rows)
Method called to retrieve all Departments within a specific Organization filtered by search parameters
getDepartmentUserByGradeId
Collection<User> getDepartmentUserByGradeId(String departmentId, String gradeId)
Method called to retrieve a listing of Users which belongs to a specified Department and Grade
getTotalDepartments
Long getTotalDepartments(String organizationId)
Method called to retrieve the number of Departments within the directory
getGradeById
Grade getGradeById(String gradeId)
Method called to retrieve a specific Grade by Grade id
getGradeList
Collection<Grade> getGradeList()
Generic method called to retrieve all Grades within the directory
getGroupById
Group getGroupById(String groupId)
Method called to retrieve a specific Group by id
getGroupByName
Group getGroupByName(String groupName)
Method called to retrieve a specific Group by name
getGroupByUsername
Collection<Group> getGroupByUsername(String username)
Method called to retrieve a collection of Group in which a user belongs to
getGroupList
Collection<Group> getGroupList()
Generic method called to retrieve the entire Group listing within the directory
getGroupList
Collection<Group> getGroupList(String nameFilter, String sort, Boolean desc, Integer start, Integer rows)
Method called to retrieve the entire Group listing within the directory filtered by search parameters
getTotalGroups
Long getTotalGroups()
Method call to retrieve the number of Groups available
getUserByDepartmentId
Collection<User> getUserByDepartmentId(String departmentId)
Method called to retrieve a listing of Users by Department id
getUserByGradeId
Collection<User> getUserByGradeId(String gradeId)
Method called to retrieve a listing of Users by Grade id
getUserByGroupId
Collection<User> getUserByGroupId(String groupId)
Method called to retrieve a listing of Users by Group id
getUserByGroupName
Collection<User> getUserByGroupName(String groupName)
Method called to retrieve a listing of Users by Group name
getUserById
User getUserById(String userId)
Method called to retrieve a specific User by User id
getUserByOrganizationId
Collection<User> getUserByOrganizationId(String organizationId)
Method called to retrieve a listing of Users by Organization id
getUserByUsername
User getUserByUsername(String username)
Method called to retrieve a specific User by Username
getUserList
Collection<User> getUserList()
Generic method called to retrieve the entire User listing within the directory
getUserList
Collection<User> getUserList(String nameFilter, String sort, Boolean desc, Integer start, Integer rows)
Method called to retrieve the entire User listing within the directory filtered by search parameters
getTotalUsers
Long getTotalUsers()
Method called to retrieve the number of Users available
isUserInGroup
boolean isUserInGroup(String username, String groupName)
Method called to check if a User belongs to a specific Group
getUserDepartmentUser
Collection<User> getUserDepartmentUser(String username)
Method called to retrieve a listing of Users which belongs to the same Department as the specific Username
getUserHod
Collection<User> getUserHod(String username)
Method called to retrieve a listing of HODs in which a specific User reports to
getUserSubordinate
Collection<User> getUserSubordinate(String username)
Method called to retrieve a listing of all the subordinates which reports to a specific User
getUserRoles
Collection<Role> getUserRoles(String username)
Method called to retrieve the Roles belonging to a specific User by Username
Utility Methods
getDirectoryManagerImpl
public org.joget.directory.model.service.DirectoryManager getDirectoryManagerImpl(java.util.Map properties)
Used by System to retrieve a directory manager implementation