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 |
jsFunction_addWorkspace(Workspace theWorkspace,
java.lang.String theDisplayName,
boolean theIsHidden,
int theOrder)
Make the given workspace available to this ACL.
|
CriteriaWrapper |
jsFunction_getACLSearchClause()
Get the search from this ACL
|
java.lang.String[] |
jsFunction_getGrantedPermissions()
Returns an array of this ACL's granted permissions.
|
java.lang.String |
jsFunction_getPermission(java.lang.String thePermission)
Get a specific permission for this ACL
|
java.lang.String[] |
jsFunction_getRevokedPermissions()
Returns an array of this ACL's revoked permissions.
|
ManagedFolder |
jsFunction_getRoot()
Get this ACL's root folder.
|
java.lang.String |
jsFunction_getRootPath()
Get this ACL's root path.
|
java.lang.String |
jsFunction_getSearchFilter()
Returns this ACL's search filter name.
|
java.lang.String |
jsFunction_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.
|
java.lang.String[] |
jsFunction_getUploadMetaforms()
Returns this ACL's upload metaforms.
|
java.lang.String[] |
jsFunction_getVisibleMetaforms()
Returns an array of visible metaform names for this ACL.
|
CriteriaWrapper |
jsFunction_getWhereClause()
Deprecated.
use
ACL.jsFunction_getACLSearchClause() instead. |
java.lang.String |
jsFunction_getWorkspaceDisplayName(java.lang.String theWorkspaceId)
Get the ACL-specific display name used for the given workspace id.
|
int |
jsFunction_getWorkspaceOrder(java.lang.String theWorkspaceId)
Get the ACL-specific display order for the given workspace id.
|
Workspace[] |
jsFunction_getWorkspaces()
Get all workspaces available to this ACL.
|
boolean |
jsFunction_hasDownloadPermission(User theUser,
ManagedFile theManagedFile)
Is the given user using this ACL able to download the given managed file?
|
boolean |
jsFunction_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 |
jsFunction_hasUploadMetaform()
does this ACL have required upload metaform
|
boolean |
jsFunction_isWorkspaceHidden(java.lang.String theWorkspaceId)
Is the workspace with given id hidden for this ACL.
|
void |
jsFunction_removeWorkspace(Workspace theWorkspace)
Make the given workspace no longer available to this ACL.
|
void |
jsFunction_setName(java.lang.String theACLName)
Sets the ACL's name.
|
void |
jsFunction_setPermission(java.lang.String thePermission,
boolean theIsGrated)
Grants or revokes a permission in this acl.
|
void |
jsFunction_setRoot(IFolderObject theRootFolder)
Set this ACL's root folder.
|
void |
jsFunction_setUploadMetaform(java.lang.String theUploadForm)
Sets an upload metaform for this acl.
|
void |
jsFunction_setVisibleMetaforms(org.mozilla.javascript.NativeArray theMetaforms)
Sets the visible metaforms for this acl.
|
void |
jsFunction_write()
Writes this ACL object back to the database.
|
java.lang.String |
jsGet_description()
Returns the ACL's description.
|
java.lang.String |
jsGet_id()
Returns the ACL's id.
|
boolean |
jsGet_isInherited()
Deprecated.
|
boolean |
jsGet_isMasked()
Returns true if the ACL is masked, false if not.
|
java.lang.String |
jsGet_name()
Returns the ACL's name.
|
int |
jsGet_type()
Returns the ACL type: 0 for group, 1 for user.
|
int |
jsGet_userOrGroupId()
If this is a group-type ACL, the id of the group this ACL belongs to will be returned.
|
void |
jsSet_description(java.lang.String theDescription) |
void |
jsSet_isMasked(boolean theIsMasked) |
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
public void jsConstructor(java.lang.String theACLId)
theACLId
- public java.lang.String jsGet_id()
public java.lang.String jsGet_name()
public void jsFunction_setName(java.lang.String theACLName)
theACLName
- the name.public java.lang.String jsGet_description()
public void jsSet_description(java.lang.String theDescription)
@Deprecated public boolean jsGet_isInherited() throws org.apache.commons.lang3.NotImplementedException
org.apache.commons.lang3.NotImplementedException
public boolean jsGet_isMasked()
public void jsSet_isMasked(boolean theIsMasked)
public int jsGet_type()
public int jsGet_userOrGroupId()
public ManagedFolder jsFunction_getRoot()
public java.lang.String jsFunction_getPermission(java.lang.String thePermission)
public java.lang.String jsFunction_getRootPath()
public void jsFunction_setRoot(IFolderObject theRootFolder)
theRootFolder
- This ACL's new root folder.public java.lang.String jsFunction_getStandardUploadPath(java.lang.String theUploadRootDirname, User theUser)
theUploadRootDirname
- The name of upload folder.theUser
- the uploading user.public Workspace[] jsFunction_getWorkspaces()
public void jsFunction_removeWorkspace(Workspace theWorkspace)
theWorkspace
- The workspace that should no longer be available to this ACL.public void jsFunction_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 jsFunction_getWorkspaceDisplayName(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's display name for.public int jsFunction_getWorkspaceOrder(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's display order for.public boolean jsFunction_isWorkspaceHidden(java.lang.String theWorkspaceId)
theWorkspaceId
- The id of the workspace to get this ACL's hidden status for.public boolean jsFunction_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 jsFunction_hasDownloadPermission(User theUser, ManagedFile theManagedFile)
theUser
- The user to check.theManagedFile
- The managed file to check.@Deprecated public CriteriaWrapper jsFunction_getWhereClause() throws java.lang.Exception
ACL.jsFunction_getACLSearchClause()
instead.java.lang.Exception
- error getting where clausepublic CriteriaWrapper jsFunction_getACLSearchClause() throws java.lang.Exception
java.lang.Exception
- error getting search clausepublic void jsFunction_write()
public java.lang.String[] jsFunction_getUploadMetaforms()
public boolean jsFunction_hasUploadMetaform()
public java.lang.String jsFunction_getSearchFilter()
public java.lang.String[] jsFunction_getRevokedPermissions()
public java.lang.String[] jsFunction_getGrantedPermissions()
public void jsFunction_setPermission(java.lang.String thePermission, boolean theIsGrated)
thePermission
- theIsGrated
- public java.lang.String[] jsFunction_getVisibleMetaforms()
public void jsFunction_setVisibleMetaforms(org.mozilla.javascript.NativeArray theMetaforms)
theMetaforms
- an array of Metaform names (strings)public void jsFunction_setUploadMetaform(java.lang.String theUploadForm)
theUploadForm
- Copyright © 2023 MediaBeacon, Inc. All Rights Reserved.