Package name.pehl.karaka.server.activity.entity

Examples of name.pehl.karaka.server.activity.entity.Activity.stop()


            {
                return Response.status(NOT_MODIFIED).build();
            }
            else
            {
                activity.stop();
                Activity savedActivity = repository.save(activity);
                name.pehl.karaka.shared.model.Activity clientActivity = activityConverter.toModel(savedActivity);
                return Response.ok(clientActivity).build();
            }
        }
View Full Code Here


        {
            Set<Activity> saveMe = new HashSet<Activity>();
            Activity runningActivity = findRunningActivity();
            if (runningActivity != null && !runningActivity.equals(activity))
            {
                runningActivity.stop();
                saveMe.add(runningActivity);
            }
            // same day --> resume, init otherwise
            if (activity.isToday())
            {
View Full Code Here

        {
            Set<Activity> saveMe = new HashSet<Activity>();
            Activity runningActivity = findRunningActivity();
            if (runningActivity != null && !runningActivity.equals(activity))
            {
                runningActivity.stop();
                saveMe.add(runningActivity);
            }
            if (activity.getStatus() == STOPPED)
            {
                activity.start();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.