|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.DesignElementHandle
org.eclipse.birt.report.model.api.ContentElementHandle
org.eclipse.birt.report.model.api.AccessControlHandle
public class AccessControlHandle
Describes the privilege to access resources. Members are
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.api.ContentElementHandle |
---|
element |
Fields inherited from class org.eclipse.birt.report.model.api.DesignElementHandle |
---|
module |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IAccessControlModel |
---|
PERMISSION_PROP, ROLES_PROP, USER_NAMES_PROP |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel |
---|
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP |
Constructor Summary | |
---|---|
AccessControlHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Constructs a autotext handle with the given design and the element. |
Method Summary | |
---|---|
void |
addRole(java.lang.String role)
Adds the given role to the list. |
void |
addUserName(java.lang.String userName)
Adds the given user name to the list. |
java.lang.String |
getPermission()
Returns whether the user can perform the role. |
void |
removeRole(java.lang.String role)
Removes the given role from the list. |
void |
removeUserName(java.lang.String userName)
Removes the given user name from the list. |
void |
setPermission(java.lang.String permission)
Sets the permission. |
Methods inherited from class org.eclipse.birt.report.model.api.ContentElementHandle |
---|
addListener, addUserPropertyDefn, canTransformToTemplate, clientsIterator, createTemplateElement, derivedIterator, getElement, getEventHandlerClass, getExtends, getName, getPrivateStyle, getQualifiedName, getUserProperties, getUserPropertyDefnHandle, isTemplateParameterValue, localize, removeListener, revertToReportItem, revertToTemplate, setEventHandlerClass, setExtends, setExtendsName, setName, setStyle, setStyleName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 elementMethod Detail |
---|
public void addRole(java.lang.String role) throws SemanticException
role
- the role
SemanticException
public void addUserName(java.lang.String userName) throws SemanticException
userName
- the user name
SemanticException
public java.lang.String getPermission()
public void removeRole(java.lang.String role) throws SemanticException
role
- the role to remove
SemanticException
public void removeUserName(java.lang.String userName) throws SemanticException
userName
- the user name to remove
SemanticException
public void setPermission(java.lang.String permission) throws SemanticException
permission
- the permission to perform the role
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |