| java.lang.Object info.jtrac.JtracImpl
JtracImpl | public class JtracImpl implements Jtrac(Code) | | Jtrac Service Layer implementation
This is where all the business logic is
For data persistence this delegates to JtracDao
|
Method Summary | |
public int | bulkUpdateDeleteSpaceRole(Space space, String roleKey) | public int | bulkUpdateFieldToNull(Space space, Field field) | public int | bulkUpdateFieldToNullForValue(Space space, Field field, int optionKey) | public int | bulkUpdateRenameSpaceRole(Space space, String oldRoleKey, String newRoleKey) | public int | bulkUpdateStatusToOpen(Space space, int status) | public void | clearIndexes() | public String | encodeClearText(String clearText) | public void | executeHourlyTask() | public void | executePollingTask() | public List<AbstractItem> | findAllItems() | public List<Space> | findAllSpaces() | public List<User> | findAllUsers() | public List<Item> | findItems(ItemSearch itemSearch) | public List<Space> | findSpacesWhereGuestAllowed() | public List<Space> | findUnallocatedSpacesForUser(long userId) | public List<User> | findUnallocatedUsersForSpace(long spaceId) | public List<UserSpaceRole> | findUserRolesForSpace(long spaceId) | public List<User> | findUsersForSpace(long spaceId) | public List<User> | findUsersForUser(User user) | public List<User> | findUsersMatching(String searchText, String searchOn) | public List<User> | findUsersWithRoleForSpace(long spaceId, String roleKey) | public String | generatePassword() | public int | getAttachmentMaxSizeInMb() | public String | getDefaultLocale() | public String | getJtracHome() | public Map<String, String> | getLocales() | public String | getReleaseTimestamp() | public String | getReleaseVersion() | public int | getSessionTimeoutInMinutes() | public void | index(AbstractItem item) | public void | init() | public Map<String, String> | loadAllConfig() | public String | loadConfig(String param) | public int | loadCountOfHistoryInvolvingUser(User user) | public int | loadCountOfRecordsHavingFieldNotNull(Space space, Field field) | public int | loadCountOfRecordsHavingFieldWithValue(Space space, Field field, int optionKey) | public int | loadCountOfRecordsHavingStatus(Space space, int status) | public CountsHolder | loadCountsForUser(User user) | public Counts | loadCountsForUserSpace(User user, Space space) | public History | loadHistory(long id) | public Item | loadItem(long id) | public Item | loadItemByRefId(String refId) | public Metadata | loadMetadata(long id) | public Space | loadSpace(long id) | public Space | loadSpace(String prefixCode) | public User | loadUser(long id) | public User | loadUser(String loginName) | public UserDetails | loadUserByUsername(String loginName) | public UserSpaceRole | loadUserSpaceRole(long id) | public void | rebuildIndexes() | public void | removeItem(Item item) | public void | removeItemItem(ItemItem itemItem) | public void | removeSpace(Space space) | public void | removeUser(User user) | public void | removeUserSpaceRole(UserSpaceRole userSpaceRole) | public void | setDao(JtracDao dao) | public void | setIndexSearcher(IndexSearcher indexSearcher) | public void | setIndexer(Indexer indexer) | public void | setJtracHome(String jtracHome) | public void | setLocaleList(String[] array) | public void | setMessageSource(MessageSource messageSource) | public void | setPasswordEncoder(PasswordEncoder passwordEncoder) | public void | setReleaseTimestamp(String releaseTimestamp) | public void | setReleaseVersion(String releaseVersion) | public void | storeConfig(Config config) | public synchronized void | storeHistoryForItem(long itemId, History history, FileUpload fileUpload) | public synchronized void | storeItem(Item item, FileUpload fileUpload) | public void | storeMetadata(Metadata metadata) | public void | storeSpace(Space space) | public void | storeUser(User user) | public void | storeUser(User user, String password, boolean sendNotifications) | public void | storeUserSpaceRole(User user, Space space, String roleKey) | public void | updateItem(Item item, User user) | public boolean | validateTextSearchQuery(String text) |
bulkUpdateDeleteSpaceRole | public int bulkUpdateDeleteSpaceRole(Space space, String roleKey)(Code) | | |
bulkUpdateFieldToNull | public int bulkUpdateFieldToNull(Space space, Field field)(Code) | | |
bulkUpdateFieldToNullForValue | public int bulkUpdateFieldToNullForValue(Space space, Field field, int optionKey)(Code) | | |
bulkUpdateRenameSpaceRole | public int bulkUpdateRenameSpaceRole(Space space, String oldRoleKey, String newRoleKey)(Code) | | |
bulkUpdateStatusToOpen | public int bulkUpdateStatusToOpen(Space space, int status)(Code) | | |
clearIndexes | public void clearIndexes()(Code) | | |
encodeClearText | public String encodeClearText(String clearText)(Code) | | this has not been factored into the util package or a helper class
because it depends on the PasswordEncoder configured
|
executeHourlyTask | public void executeHourlyTask()(Code) | | |
executePollingTask | public void executePollingTask()(Code) | | |
findSpacesWhereGuestAllowed | public List<Space> findSpacesWhereGuestAllowed()(Code) | | |
findUnallocatedSpacesForUser | public List<Space> findUnallocatedSpacesForUser(long userId)(Code) | | |
findUnallocatedUsersForSpace | public List<User> findUnallocatedUsersForSpace(long spaceId)(Code) | | |
findUsersForSpace | public List<User> findUsersForSpace(long spaceId)(Code) | | |
findUsersWithRoleForSpace | public List<User> findUsersWithRoleForSpace(long spaceId, String roleKey)(Code) | | |
generatePassword | public String generatePassword()(Code) | | this has not been factored into the util package or a helper class
because it depends on the PasswordEncoder configured
|
getAttachmentMaxSizeInMb | public int getAttachmentMaxSizeInMb()(Code) | | |
getReleaseTimestamp | public String getReleaseTimestamp()(Code) | | |
getSessionTimeoutInMinutes | public int getSessionTimeoutInMinutes()(Code) | | |
init | public void init()(Code) | | this is automatically called by spring init-method hook on
startup, also called whenever config is edited to refresh
TODO move config into a settings class to reduce service clutter
|
loadCountOfHistoryInvolvingUser | public int loadCountOfHistoryInvolvingUser(User user)(Code) | | |
loadCountOfRecordsHavingFieldNotNull | public int loadCountOfRecordsHavingFieldNotNull(Space space, Field field)(Code) | | |
loadCountOfRecordsHavingFieldWithValue | public int loadCountOfRecordsHavingFieldWithValue(Space space, Field field, int optionKey)(Code) | | |
loadCountOfRecordsHavingStatus | public int loadCountOfRecordsHavingStatus(Space space, int status)(Code) | | |
loadUserByUsername | public UserDetails loadUserByUsername(String loginName)(Code) | | |
rebuildIndexes | public void rebuildIndexes()(Code) | | |
setJtracHome | public void setJtracHome(String jtracHome)(Code) | | |
setLocaleList | public void setLocaleList(String[] array)(Code) | | |
setMessageSource | public void setMessageSource(MessageSource messageSource)(Code) | | |
setPasswordEncoder | public void setPasswordEncoder(PasswordEncoder passwordEncoder)(Code) | | |
setReleaseTimestamp | public void setReleaseTimestamp(String releaseTimestamp)(Code) | | |
setReleaseVersion | public void setReleaseVersion(String releaseVersion)(Code) | | |
storeHistoryForItem | public synchronized void storeHistoryForItem(long itemId, History history, FileUpload fileUpload)(Code) | | |
storeItem | public synchronized void storeItem(Item item, FileUpload fileUpload)(Code) | | |
storeUser | public void storeUser(User user, String password, boolean sendNotifications)(Code) | | |
validateTextSearchQuery | public boolean validateTextSearchQuery(String text)(Code) | | |
|
|