Package org.cyclos.impl.users
Class UserDashboardActionsServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.UserDashboardActionsServiceImpl
-
- All Implemented Interfaces:
UserDashboardActionsServiceLocal,Service,UserDashboardActionsService
@Service public class UserDashboardActionsServiceImpl extends BaseServiceImpl implements UserDashboardActionsServiceLocal
implementation forUserDashboardActionsService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description UserDashboardActionsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDashboardActionsDatagetData()Returns data about the logged user's dashboard actionsList<DashboardAction>listAssigned(User user)Returns the assigned dashboard actions for the given user.List<DashboardAction>listAvailable(User user)Returns all available dashboard actions for the given user, according to his products.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidremoveAll(User user)Removes all dashboard actions for the specified user.voidrestoreDefaultDashboardActions()Restore the default dashboard actionsvoidsave(List<DashboardAction> dashboardActions)Saves the available actions for the logged uservoidsaveOrder(List<DashboardAction> actions)Updates the order field according to the given dashboard actions sequence-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getData
public UserDashboardActionsData getData() throws FrameworkException
Description copied from interface:UserDashboardActionsServiceReturns data about the logged user's dashboard actions- Specified by:
getDatain interfaceUserDashboardActionsService- Throws:
FrameworkException
-
listAssigned
public List<DashboardAction> listAssigned(User user) throws FrameworkException
Description copied from interface:UserDashboardActionsServiceLocalReturns the assigned dashboard actions for the given user. If there are no dashboard actions stored by the user in the DB, the assumption is to show the defaults set in the product. (This also means that if the user deletes all actions, we'll again see the defaults).- Specified by:
listAssignedin interfaceUserDashboardActionsServiceLocal- Throws:
FrameworkException
-
listAvailable
public List<DashboardAction> listAvailable(User user) throws FrameworkException
Description copied from interface:UserDashboardActionsServiceLocalReturns all available dashboard actions for the given user, according to his products.- Specified by:
listAvailablein interfaceUserDashboardActionsServiceLocal- Throws:
FrameworkException
-
removeAll
public void removeAll(User user)
Description copied from interface:UserDashboardActionsServiceLocalRemoves all dashboard actions for the specified user.- Specified by:
removeAllin interfaceUserDashboardActionsServiceLocal
-
restoreDefaultDashboardActions
public void restoreDefaultDashboardActions()
Description copied from interface:UserDashboardActionsServiceRestore the default dashboard actions- Specified by:
restoreDefaultDashboardActionsin interfaceUserDashboardActionsService
-
save
public void save(List<DashboardAction> dashboardActions)
Description copied from interface:UserDashboardActionsServiceSaves the available actions for the logged user- Specified by:
savein interfaceUserDashboardActionsService
-
saveOrder
public void saveOrder(List<DashboardAction> actions) throws FrameworkException
Description copied from interface:UserDashboardActionsServiceUpdates the order field according to the given dashboard actions sequence- Specified by:
saveOrderin interfaceUserDashboardActionsService- Throws:
FrameworkException
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-