001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.repository.model;
016    
017    import com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.util.Accessor;
020    import com.liferay.portal.security.permission.PermissionChecker;
021    
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * @author Alexander Chow
027     */
028    public interface Folder extends RepositoryModel<Folder> {
029    
030            public static final Accessor<Folder, Long> FOLDER_ID_ACCESSOR =
031    
032                    new Accessor<Folder, Long>() {
033    
034                            @Override
035                            public Long get(Folder folder) {
036                                    return folder.getFolderId();
037                            }
038    
039                    };
040    
041            public boolean containsPermission(
042                            PermissionChecker permissionChecker, String actionId)
043                    throws PortalException, SystemException;
044    
045            public List<Folder> getAncestors()
046                    throws PortalException, SystemException;
047    
048            @Override
049            public long getCompanyId();
050    
051            @Override
052            public Date getCreateDate();
053    
054            public String getDescription();
055    
056            public long getFolderId();
057    
058            @Override
059            public long getGroupId();
060    
061            public Date getLastPostDate();
062    
063            @Override
064            public Date getModifiedDate();
065    
066            public String getName();
067    
068            public Folder getParentFolder() throws PortalException, SystemException;
069    
070            public long getParentFolderId();
071    
072            public long getRepositoryId();
073    
074            @Override
075            public long getUserId();
076    
077            @Override
078            public String getUserName();
079    
080            @Override
081            public String getUserUuid() throws SystemException;
082    
083            public String getUuid();
084    
085            public boolean hasInheritableLock();
086    
087            public boolean hasLock();
088    
089            public boolean isDefaultRepository();
090    
091            public boolean isLocked();
092    
093            public boolean isMountPoint();
094    
095            public boolean isRoot();
096    
097            public boolean isSupportsLocking();
098    
099            public boolean isSupportsMetadata();
100    
101            public boolean isSupportsMultipleUpload();
102    
103            public boolean isSupportsShortcuts();
104    
105            public boolean isSupportsSocial();
106    
107    }