org.eclipse.emf.emfstore.internal.server.model.accesscontrol.roles.impl
Class RoleImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.emfstore.internal.server.model.accesscontrol.roles.impl.RoleImpl
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, Role
Direct Known Subclasses:
ProjectAdminRoleImpl, ReaderRoleImpl, ServerAdminImpl, WriterRoleImpl

public abstract class RoleImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements Role

An implementation of the model object ' Role'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 boolean canAdministrate(ProjectId projectId)
          Determines if the role can administrate the project.
 boolean canCreate(ProjectId projectId, org.eclipse.emf.ecore.EObject modelElement)
          
 boolean canDelete(ProjectId projectId, org.eclipse.emf.ecore.EObject modelElement)
          
 boolean canModify(ProjectId projectId, org.eclipse.emf.ecore.EObject modelElement)
          
 boolean canRead(ProjectId projectId, org.eclipse.emf.ecore.EObject modelElement)
          
 Object eGet(int featureID, boolean resolve, boolean coreType)
          
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, Object newValue)
           
 void eUnset(int featureID)
           
 org.eclipse.emf.common.util.EList<ProjectId> getProjects()
          Get all projects of the role.
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getProjects

public org.eclipse.emf.common.util.EList<ProjectId> getProjects()
Get all projects of the role.

Specified by:
getProjects in interface Role
Returns:
a list of project ids
See Also:
RolesPackage.getRole_Projects()

canAdministrate

public boolean canAdministrate(ProjectId projectId)
Determines if the role can administrate the project.

Specified by:
canAdministrate in interface Role
Parameters:
projectId - the project id
Returns:
true if the role can
See Also:
Role.canAdministrate(org.eclipse.emf.emfstore.internal.server.model.ProjectId)

canCreate

public boolean canCreate(ProjectId projectId,
                         org.eclipse.emf.ecore.EObject modelElement)

Specified by:
canCreate in interface Role
See Also:
Role.canCreate(org.eclipse.emf.emfstore.internal.server.model.ProjectId, org.eclipse.emf.ecore.EObject)

canDelete

public boolean canDelete(ProjectId projectId,
                         org.eclipse.emf.ecore.EObject modelElement)

Specified by:
canDelete in interface Role
See Also:
Role.canDelete(org.eclipse.emf.emfstore.internal.server.model.ProjectId, org.eclipse.emf.ecore.EObject)

canModify

public boolean canModify(ProjectId projectId,
                         org.eclipse.emf.ecore.EObject modelElement)

Specified by:
canModify in interface Role
See Also:
Role.canModify(org.eclipse.emf.emfstore.internal.server.model.ProjectId, org.eclipse.emf.ecore.EObject)

canRead

public boolean canRead(ProjectId projectId,
                       org.eclipse.emf.ecore.EObject modelElement)

Specified by:
canRead in interface Role
See Also:
Role.canRead(org.eclipse.emf.emfstore.internal.server.model.ProjectId, org.eclipse.emf.ecore.EObject)

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public Object eGet(int featureID,
                   boolean resolve,
                   boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
See Also:
BasicEObjectImpl.eGet(int, boolean, boolean)

eSet

public void eSet(int featureID,
                 Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl


Copyright © 2015. All Rights Reserved.