public class FolderUserCanAccess extends LinkState
Title: FileCatalyst Direct Server API
Description: Class that holds a VIEW of a folder a user has access to. A user can have multiple paths to access a folder -- either granting direct access of a folder, or by granting access to a group, and having one or multiple groups being granted to that user. Note that user permissions to folders are stacked, so that if the user has been given read access to a folder directly, but has write access via a group, they are allowed both read and write permissions (see getMaxPermission()). Permissions are not modifiable via this object, nor are they persisted. Calls to the Server API need to be made in order to modify on the server any permission set. Allows viewing/editing of permissions by API caller without exposing the inner permission classes.
Copyright: Copyright (c) 2013
Company: Unlimi-Tech Software Inc.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Custom equals method for this object
|
java.lang.String |
getDescription()
Return the virtual folder description
|
int |
getDirectPermission()
Return permission directly set to user (as int value -- see PermissionsContainer.generatePermission() to translate into boolean values)
|
java.lang.String |
getFolder()
Return the folder name (not label, but database PK) to identify folder in question
|
int |
getGroupPermission(java.lang.String groupName)
Returns the permission a user has via a specific group.
|
java.util.Collection<java.lang.String> |
getGroups()
Return a list of groups that a user has access to which have been granted access to the Virtual Folder.
|
java.lang.String |
getLabel()
Return the folder label to identify folder in question.
|
int |
getMaxPermission()
Return maximum permission (as int value -- see PermissionsContainer.generatePermission() to translate into boolean values)
|
java.lang.String |
getName()
Return the folder name (not label, but database PK) to identify folder in question
|
java.lang.String |
getPath()
Return the folder path (real system path) which to which the Virtual Folder
points to.
|
java.lang.String |
getUser()
Return the user name
|
int |
hashCode()
Custom hash-code method for this object
|
boolean |
isDirect()
See if there is a direct link (ie: not through groups) of the user to a folder.
|
boolean |
isInVirtualFolder(java.io.File currentFile)
See if the virtual folder falls within the directory structure of
the current file.
|
boolean |
isMultipleUniqueGroupPermissions()
Returns true if there are more than one group assigned to the user which
has access to the virtual folder
|
java.lang.String |
toString()
Custom toString method for this object
|
getUsageStatepublic java.lang.String getFolder()
public int getMaxPermission()
public int getDirectPermission()
public boolean isMultipleUniqueGroupPermissions()
public java.util.Collection<java.lang.String> getGroups()
public int getGroupPermission(java.lang.String groupName)
groupName - Group namepublic java.lang.String getUser()
public java.lang.String getName()
public java.lang.String getLabel()
public java.lang.String getPath()
public boolean isDirect()
public java.lang.String getDescription()
public boolean isInVirtualFolder(java.io.File currentFile)
currentFile - public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2015 Unlimi-Tech Sofware Inc. All Rights Reserved.