Package de.fu_berlin.inf.dpp.activities.business

Examples of de.fu_berlin.inf.dpp.activities.business.FolderActivity


                addActivity(FileActivity.created(user, spath, Purpose.ACTIVITY));
            } catch (IOException e) {
                log.error("Couldn't access file " + spath);
            }
        } else {
            addActivity(new FolderActivity(user, FolderActivity.Type.Created,
                spath));
        }
    }
View Full Code Here


        sharedProject.remove(resource);
        if (resource instanceof IFile) {
            addActivity(FileActivity.removed(user, new SPath(resource),
                Purpose.ACTIVITY));
        } else {
            addActivity(new FolderActivity(user, FolderActivity.Type.Removed,
                new SPath(resource)));
        }
    }
View Full Code Here

                break;
            }
        }

        if (activity instanceof FolderActivity) {
            FolderActivity folderActivity = ((FolderActivity) activity);
            IFolder folder = folderActivity.getPath().getFolder();
            IProject iProject = folder.getProject();
            if (isCompletelyShared(iProject))
                return true;
            List<IResource> resources = getSharedResources(iProject);
            if (resources != null) {
                switch (folderActivity.getType()) {
                case Created:
                    if (!resources.contains(folder)
                        && isShared(folder.getParent())) {
                        resources.add(folder);
                        projectMapper.addResourceMapping(iProject, resources);
View Full Code Here

        return "FolderActivityDataObject(type: " + type + ", path: " + path
            + ")";
    }

    public IActivity getActivity(ISarosSession sarosSession) {
        return new FolderActivity(sarosSession.getUser(source), type,
            path.toSPath(sarosSession));
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.activities.business.FolderActivity

Copyright © 2018 www.massapicom. 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.