de.mid.innovator.srv2api.icw2meta
Interface ADAccessAble

All Superinterfaces:
ELElement, ELObject
All Known Subinterfaces:
ACActivity, ADLockAble, ADModel, ADVersionAble, ADXModel, BCExpression, BCPropertySet, BCRootReuseAbleElement, BCTerm, BEAnyReceiveEvent, BEBehavior, BECallEvent, BEChangeEvent, BECreationEvent, BEDestructionEvent, BEEvent, BEExecutionEvent, BEMessageEvent, BEOpaque, BEReceiveOperEvent, BEReceiveSignalEvent, BESendOperEvent, BESendSignalEvent, BESignalEvent, BETimeEvent, BI2Cube, BI2DimensionTree, BI2MeasurementTime, BIHierarchy, BIHierarchyRole, BPCallAble, BPCallAbleChoreographyElement, BPCallAbleProcessElement, BPChoreography, BPCollaboration, BPConditionalEventDefinition, BPDataStore, BPDia, BPEndPoint, BPError, BPEscalation, BPEventDefinition, BPGlobalChoreographyTask, BPGlobalMaskTask, BPGlobalTask, BPInterface, BPItemDefinition, BPLinkEventDefinition, BPMaskDefinition, BPMessage, BPPath, BPProcess, BPSignal, BPTimerEventDefinition, BRCostCenter, BRDia, BRLocation, BROrgUnit, BRPerson, BRResource, BRResourceCL, BRRole, BRTechnical, BSDia, BSFinalState, BSRegularState, BSState, CLActor, CLArtifact, CLAssocClass, CLAssociation, CLBehavioredClassifier, CLClass, CLClassDia, CLClassifier, CLCollaboration, CLCommunicationPath, CLComponent, CLComponentDia, CLCompositeStructureDia, CLDataType, CLDeclarationAbleClassifier, CLDeploymentDia, CLDeploymentSpec, CLDevice, CLDia, CLEncapsulatedClassifier, CLEnumeration, CLExecEnv, CLHierarchyAbleDia, CLInstanceSpecification, CLInterface, CLNode, CLPrimitiveType, CLRequirementDia, CLSignal, CLStructuredClassifier, CLStructureDefinition, CLStructureDefinitionDia, CLTemplateParameterAbleClass, CLUseCase, CLUseCaseDia, DBAuthorizationIdentifier, DBCheckConstraint, DBColumnSet, DBDia, DBGroup, DBPackage, DBRole, DBSiblingConstraint, DBSQLGeneric, DBStoredProcedure, DBTable, DBUser, DBView, ERAttributeSet, ERCheckConstraint, ERDia, ERDiaAll, EREntity, ERRelationship, ERView, GCConcept, GCDia, IAInteraction, IMAssociation, IMClassifier, IMCLDataType, IMConstraint, IMDia, IMProcedure, IMSemanticDataType, IMSequence, MEAttachment, MEConfigurationManagement, MEConstraint, MEHierarchyAble, MEMappingConfigurationPackage, MEMappingConfigurationPackageForward, MEMappingConfigurationPackageReverse, MEMappingPackageContent, MEMappingPackageType, MEMappingPackageTypeForward, MEMappingPackageTypeReverse, MEModel, MEPackage, MEProxy, MEProxyExternal, MEProxyInnovator, MERequirement, MESection, MEStubPackage, MEStubPackageBase, MEStubPackageExternalModel, MEStubPackageInnovator, MESystemModel, MESystemModelManagement, MMProfile, MMXProfile, PRDiaWhiteboard, PRVersionAbleDia, SMProtocolStateMachine, SMStateMachine

public interface ADAccessAble
extends ELElement

Elements which can be set an access to

Note:
The interface ADAccessAble describes an abstract ability of an object. Therefore no instances of this type can be found in the repository!

Nested Class Summary
static class ADAccessAble.VAttr
           
 
Method Summary
 List<ADUsrRole> getAccessRole()
          Return the roles which can read the current object.
 List<ADUsrRole> getReadRole()
          Return the roles which cannot read the current object.
 boolean hasAccess(ADUsrRole refObj)
          Returns true if the current login has access to change the current object.
 void setAccessRole(List<? extends ADUsrRole> values)
          Set the value of Foreign Key AccessRole.
 void setReadRole(List<? extends ADUsrRole> values)
          Set the value of Foreign Key ReadRole.
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
 

Method Detail

getAccessRole

List<ADUsrRole> getAccessRole()
                              throws InoNetException,
                                     SrvErrorException
Return the roles which can read the current object.

Throws:
InoNetException
SrvErrorException

getReadRole

List<ADUsrRole> getReadRole()
                            throws InoNetException,
                                   SrvErrorException
Return the roles which cannot read the current object.

Throws:
InoNetException
SrvErrorException

hasAccess

boolean hasAccess(ADUsrRole refObj)
                  throws InoNetException,
                         SrvErrorException
Returns true if the current login has access to change the current object. If a role is given by argument refObj, this one is used instead.

Parameters:
refObj - A further instance of type ADUsrRole which is used to control the behaviour of the method. (see description above) This parameter is optional. (Its value can be given as null.)
Throws:
InoNetException
SrvErrorException

setAccessRole

void setAccessRole(List<? extends ADUsrRole> values)
                   throws InoNetException,
                          SrvErrorException
Set the value of Foreign Key AccessRole.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException

setReadRole

void setReadRole(List<? extends ADUsrRole> values)
                 throws InoNetException,
                        SrvErrorException
Set the value of Foreign Key ReadRole.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException