001    /**
002     * Copyright (c) 2000-2012 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                            public Long get(Folder folder) {
035                                    return folder.getFolderId();
036                            }
037    
038                    };
039    
040            public boolean containsPermission(
041                            PermissionChecker permissionChecker, String actionId)
042                    throws PortalException, SystemException;
043    
044            public List<Folder> getAncestors()
045                    throws PortalException, SystemException;
046    
047            public long getCompanyId();
048    
049            public Date getCreateDate();
050    
051            public String getDescription();
052    
053            public long getFolderId();
054    
055            public long getGroupId();
056    
057            public Date getLastPostDate();
058    
059            public Date getModifiedDate();
060    
061            public String getName();
062    
063            public Folder getParentFolder() throws PortalException, SystemException;
064    
065            public long getParentFolderId();
066    
067            public long getRepositoryId();
068    
069            public long getUserId();
070    
071            public String getUserName();
072    
073            public String getUserUuid() throws SystemException;
074    
075            public String getUuid();
076    
077            public boolean hasInheritableLock();
078    
079            public boolean hasLock();
080    
081            public boolean isDefaultRepository();
082    
083            public boolean isLocked();
084    
085            public boolean isMountPoint();
086    
087            public boolean isRoot();
088    
089            public boolean isSupportsLocking();
090    
091            public boolean isSupportsMetadata();
092    
093            public boolean isSupportsMultipleUpload();
094    
095            public boolean isSupportsShortcuts();
096    
097            public boolean isSupportsSocial();
098    
099    }