public class AccessControlHandle extends ContentElementHandle implements org.eclipse.birt.report.model.elements.interfaces.IAccessControlModel
element
module
PERMISSION_PROP, ROLES_PROP, USER_NAMES_PROP
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NEW_HANDLER_ON_EACH_EVENT_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP
Constructor and Description |
---|
AccessControlHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Deprecated.
Constructs a autotext handle with the given design and the element.
|
Modifier and Type | Method and Description |
---|---|
void |
addRole(java.lang.String role)
Deprecated.
Adds the given role to the list.
|
void |
addUserName(java.lang.String userName)
Deprecated.
Adds the given user name to the list.
|
java.lang.String |
getPermission()
Deprecated.
Returns whether the user can perform the role.
|
void |
removeRole(java.lang.String role)
Deprecated.
Removes the given role from the list.
|
void |
removeUserName(java.lang.String userName)
Deprecated.
Removes the given user name from the list.
|
void |
setPermission(java.lang.String permission)
Deprecated.
Sets the permission.
|
addListener, canTransformToTemplate, clientsIterator, createTemplateElement, derivedIterator, getElement, getEventHandlerClass, getExtends, getName, getPrivateStyle, getQualifiedName, isTemplateParameterValue, localize, removeListener, revertToReportItem, revertToTemplate, setEventHandlerClass, setExtends, setExtendsName, setName, setStyle, setStyleName
add, add, addElement, addElement, addUserPropertyDefn, cachePropertyHandles, canContain, canContain, canContain, canContain, canDrop, canEdit, clearAllProperties, clearContents, clearProperty, copy, copyPropertyTo, doSort, drop, drop, drop, dropAndClear, dropAndClear, dropAndClear, dropUserPropertyDefn, findContentSlot, getBooleanProperty, getChoices, getColorProperty, getContainer, getContainerPropertyHandle, getContainerSlotHandle, getContent, getContentCount, getContents, getDefn, getDesign, getDesignHandle, getDimensionProperty, getDisplayLabel, getDisplayLabel, getDisplayProperty, getEffectiveModule, getElementFactory, getElementProperty, getExpressionProperty, getExternalizedValue, getExternalizedValue, getExternalizedValue, getFactoryElementHandle, getFactoryPropertyHandle, getFloatProperty, getFontProperty, getFullName, getHostViewHandle, getID, getIndex, getIntProperty, getListProperty, getListProperty, getMethods, getModule, getModuleHandle, getNumberProperty, getProperty, getPropertyBinding, getPropertyBindingExpression, getPropertyBindings, getPropertyDefn, getPropertyHandle, getPropertyIterator, getRoot, getSemanticErrors, getSlot, getStringProperty, getStyle, getUserProperties, getUserPropertyDefnHandle, getXPath, hasLocalProperties, hasSemanticError, initializeSlotHandles, isDirectionRTL, isInTemplateParameter, isValid, move, move, moveTo, moveTo, moveTo, moveTo, newHandlerOnEachEvent, paste, paste, paste, paste, semanticCheck, setBooleanProperty, setEncryption, setExpressionProperty, setExtendsElement, setFloatProperty, setIntProperty, setNewHandlerOnEachEvent, setNumberProperty, setProperties, setProperty, setPropertyBinding, setPropertyBinding, setStringProperty, setStyleElement, setValid, shift, showError, slotsIterator
public AccessControlHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
module
- the moduleelement
- the model representation of the elementpublic void addRole(java.lang.String role) throws SemanticException
role
- the roleSemanticException
public void addUserName(java.lang.String userName) throws SemanticException
userName
- the user nameSemanticException
public java.lang.String getPermission()
public void removeRole(java.lang.String role) throws SemanticException
role
- the role to removeSemanticException
public void removeUserName(java.lang.String userName) throws SemanticException
userName
- the user name to removeSemanticException
public void setPermission(java.lang.String permission) throws SemanticException
permission
- the permission to perform the roleSemanticException
Copyright © 2008 Actuate Corp. All rights reserved.