public class ACL extends JSBaseScriptableObject
Constructor and Description |
---|
ACL() |
Modifier and Type | Method and Description |
---|---|
void |
jsConstructor(java.lang.String theACLId)
Provides an js ACL given the acl id
|
void |
(JavaScript Function) addWorkspace(Workspace theWorkspace,
java.lang.String theDisplayName,
boolean theIsHidden,
int theOrder)
Make the given workspace available to this ACL.
|
CriteriaWrapper |
(JavaScript Function) getACLSearchClause()
Get the search from this ACL
|
ManagedFolder |
(JavaScript Function) getRoot()
Get this ACL's root folder.
|
java.lang.String |
(JavaScript Function) getRootPath()
Get this ACL's root path.
|
java.lang.String |
(JavaScript Function) getStandardUploadPath(java.lang.String theUploadRootDirname,
User theUser)
Get the standard upload path when uploading to this ACL, the time stamp portion is generated when this function
is called.
|
CriteriaWrapper |
(JavaScript Function) getWhereClause()
Deprecated.
|
java.lang.String |
(JavaScript Function) getWorkspaceDisplayName(java.lang.String theWorkspaceId)
Get the ACL-specific display name used for the given workspace id.
|
int |
(JavaScript Function) getWorkspaceOrder(java.lang.String theWorkspaceId)
Get the ACL-specific display order for the given workspace id.
|
Workspace[] |
(JavaScript Function) getWorkspaces()
Get all workspaces available to this ACL.
|
boolean |
(JavaScript Function) hasDownloadPermission(User theUser,
ManagedFile theManagedFile)
Is the given user using this ACL able to download the given managed file?
|
boolean |
(JavaScript Function) hasPermission(java.lang.String thePermission,
ManagedFile theManagedFile,
User theUser)
Does the given user using this ACL have the given permission to access the given managed file (if specified)? Can be used
to check asset-dependant permissions (e.g.
|
boolean |
(JavaScript Function) isWorkspaceHidden(java.lang.String theWorkspaceId)
Is the workspace with given id hidden for this ACL.
|
void |
(JavaScript Function) removeWorkspace(Workspace theWorkspace)
Make the given workspace no longer available to this ACL.
|
void |
(JavaScript Function) setName(java.lang.String theACLName) |
void |
(JavaScript Function) setRoot(IFolderObject theRootFolder)
Set this ACL's root folder.
|
void |
(JavaScript Function) write()
Writes this ACL object back to the database.
|
java.lang.String |
(JavaScript Getter) id()
Returns the ACL's id.
|
java.lang.String |
(JavaScript Getter) name()
Returns the ACL's name.
|
int |
(JavaScript Getter) type()
Returns the ACL type: 0 for group, 1 for user.
|
int |
(JavaScript Getter) userOrGroupId()
If this is a group-type ACL, the id of the group this ACL belongs to will be returned.
|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasInstance, hasProperty, hasProperty, isConst, isEmpty, isExtensible, isSealed, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsConstructor(java.lang.String theACLId)
theACLId
- public java.lang.String (JavaScript Getter) id()
public java.lang.String (JavaScript Getter) name()
public void (JavaScript Function) setName(java.lang.String theACLName)
public int (JavaScript Getter) type()
public int (JavaScript Getter) userOrGroupId()
public ManagedFolder (JavaScript Function) getRoot()
public java.lang.String (JavaScript Function) getRootPath()
public void (JavaScript Function) setRoot(IFolderObject theRootFolder)
theRootFolder
- This ACL's new root folder.public java.lang.String (JavaScript Function) getStandardUploadPath(java.lang.String theUploadRootDirname, User theUser)
theUploadRootDirname
- The name of upload folder.theUser
- the uploading user.public Workspace[] (JavaScript Function) getWorkspaces()
public void (JavaScript Function) removeWorkspace(Workspace theWorkspace)
theWorkspace
- The workspace that should no longer be available to this ACL.public void (JavaScript Function) addWorkspace(Workspace theWorkspace, java.lang.String theDisplayName, boolean theIsHidden, int theOrder)
theWorkspace
- The workspace to make available to this ACL.theDisplayName
- The name to use for this workspace for this ACL.theIsHidden
- Should the given workspace be visible to this ACL?theOrder
- The order the given workspace should be displayed in this ACL.public java.lang.String (JavaScript Function) getWorkspaceDisplayName(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's display name for.public int (JavaScript Function) getWorkspaceOrder(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's display order for.public boolean (JavaScript Function) isWorkspaceHidden(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's hidden status for.public boolean (JavaScript Function) hasPermission(java.lang.String thePermission, ManagedFile theManagedFile, User theUser)
thePermission
- The permission to check.theManagedFile
- The managed file to check. Use null to check the current user's permission independent of a particular asset.theUser
- The user to check. Ignored if theFile is null.public boolean (JavaScript Function) hasDownloadPermission(User theUser, ManagedFile theManagedFile)
theUser
- The user to check.theManagedFile
- The managed file to check.@Deprecated public CriteriaWrapper (JavaScript Function) getWhereClause() throws java.lang.Exception
java.lang.Exception
- error getting where clausepublic CriteriaWrapper (JavaScript Function) getACLSearchClause() throws java.lang.Exception
java.lang.Exception
- error getting search clausepublic void (JavaScript Function) write()
Copyright © 2017 MediaBeacon, Inc. All Rights Reserved.