Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Table of Contents |
---|
Code Block |
---|
import java.util.Map;
import org.joget.directory.model.service.DirectoryUtil;
//retrieve all users in map
Map<String, User> users = DirectoryUtil.getUsersMap(); |
public final static java.lang.String CUSTOM_IMPL_PROPERTIES = "customDirectoryManagerImplProperties";
System setting key to retrieve the plugin properties of the configured custom directory manager plugin.
public final static java.lang.String IMPL_PROPERTIES = "directoryManagerImplProperties";
System setting key to retrieve the plugin properties of the configured default directory manager plugin.
This is only available to OEM package which enable to use different directory manager as default.
public final static java.lang.String ROLE_ANONYMOUS = "roleAnonymous";
Username of an Anonymous user.
public static org.springframework.context.ApplicationContext getApplicationContext()
Utility method to retrieve the ApplicationContext of the system
public static java.util.Map<java.lang.String, org.joget.directory.model.Department> getDepartmentsMap()
Convenient method to retrieve all departments in a map of id-value pair
public static java.util.Map<java.lang.String, org.joget.directory.model.Group> getGroupsMap()
Convenient method to retrieve all groups in a map of id-value pair
public static java.lang.String getLoginFormFooter()
Get the HTML template to inject after a login form from user security enhancements implementation.
public static java.lang.String getOverriddenDirectoryManagerClassName()
Get the class name of the custom Directory Manager in used
public static java.util.Map<java.lang.String, org.joget.directory.model.User> getUsersMap()
Convenient method to retrieve all users in a map of id-value pair
public static org.joget.directory.model.service.UserSecurity getUserSecurity()
Get the user security enhancements implementation of the directory manager in used
public static boolean isCustomDirectoryManager()
Flag to indicate the custom Directory Manager in used is not a extend implementation of the Joget default internal directory manager
public static boolean isExtDirectoryManager()
Flag to indicate the custom Directory Manager in used is implemented the ExtDirectoryManager interface.
public static boolean isOverridden()
Flag to indicate there is a custom Directory Manager in used
public static java.lang.Boolean userIsReadonly(java.lang.String username)
Flag to indicate the user return by the directory manager is readonly