blackboard.data.navigation
Class ToolSettings.SettingsAttribute
java.lang.Object
blackboard.data.navigation.ToolSettings.SettingsAttribute
- Direct Known Subclasses:
- CourseToolSettings.CourseSettingsAttribute
- Enclosing class:
- ToolSettings
public static class ToolSettings.SettingsAttribute
- extends java.lang.Object
Encapsulates everything interesting about a tool setting:
- Whether it's enabled
- Whether it's locked
- What node it was set at
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INAPPLICABLE_SETTING
public static final ToolSettings.SettingsAttribute INAPPLICABLE_SETTING
- Used for any setting that cannot be set because system explicitly disabled it completely for tool or it is not
applicable to type of tool. For instance, ToolSettings.getGuest/ObserverSetting will return this value if tool's
canAllowGuest/Observer flag is set to false or tool is ContentHandler type.
Availability value of this setting is OffLocked, isApplicable is false, and nodeId is institutional hierarchy's
root node id indicating it is enforced at system level.
_availability
protected ToolSettings.Availability _availability
_nodeId
protected Id _nodeId
_node
protected Node _node
_isApplicable
protected boolean _isApplicable
ToolSettings.SettingsAttribute
public ToolSettings.SettingsAttribute(ToolSettings.Availability availability,
Id nodeId)
isAvailable
public boolean isAvailable()
isLocked
public boolean isLocked()
isApplicable
public boolean isApplicable()
- Returns:
- false if setting is not applicable to type of tool or completely disabled so it can't be used. true, otherwise.
getAvailability
public ToolSettings.Availability getAvailability()
setAvailability
public void setAvailability(ToolSettings.Availability availability)
getNodeId
public Id getNodeId()
setNodeId
public void setNodeId(Id nodeId)
getNode
public Node getNode()
setNode
public void setNode(Node node)
getNodeName
public java.lang.String getNodeName()
Copyright © 2012 Blackboard, Inc. All Rights Reserved.