Interface ITrackerPolicy


public interface ITrackerPolicy
Tracker policy.
Author:
Stepan Roh, Polarion Software
  • Method Details

    • canSeeVotes

      boolean canSeeVotes(IWorkItem workItem)
    • canVote

      boolean canVote(IWorkItem workItem)
    • canUnvote

      boolean canUnvote(IWorkItem workItem)
    • canAddVote

      boolean canAddVote(IWorkItem workItem, ITrackerUser trackerUser)
    • canRemoveVote

      boolean canRemoveVote(IWorkItem workItem, ITrackerUser trackerUser)
    • canApproveDisapproveOthers

      boolean canApproveDisapproveOthers(IWorkItem workItem)
      Since:
      3.5.1
    • canResetApprovals

      boolean canResetApprovals(IContextId contextId)
      Since:
      3.7.1
    • checkCanApproveDisapproveOthers

      void checkCanApproveDisapproveOthers(IWorkItem workItem)
      Since:
      3.5.1
    • checkCanApproveDisapprove

      void checkCanApproveDisapprove(IWorkItem workItem)
      Since:
      3.7.1
    • checkCanApproveDisapprove

      void checkCanApproveDisapprove(IWorkItem workItem, IApprovalStruct approval, IEnumOption newApprovalStatus)
      Checks whether approval with the status can be added/removed.
      Since:
      3.6.0
    • checkCanSeeVotes

      void checkCanSeeVotes(IWorkItem workItem)
    • checkCanVote

      void checkCanVote(IWorkItem workItem)
    • checkCanUnvote

      void checkCanUnvote(IWorkItem workItem)
    • checkCanAddVote

      void checkCanAddVote(IWorkItem workItem, ITrackerUser trackerUser)
    • checkCanRemoveVote

      void checkCanRemoveVote(IWorkItem workItem, ITrackerUser trackerUser)
    • canSeeWatches

      boolean canSeeWatches(IWorkItem workItem)
    • canWatch

      boolean canWatch(IWorkItem workItem)
    • canAddWatch

      boolean canAddWatch(IWorkItem workItem, ITrackerUser trackerUser)
    • canRemoveWatch

      boolean canRemoveWatch(IWorkItem workItem, ITrackerUser trackerUser)
    • checkCanSeeWatches

      void checkCanSeeWatches(IWorkItem workItem)
    • checkCanWatch

      void checkCanWatch(IWorkItem workItem)
    • checkCanUnwatch

      void checkCanUnwatch(IWorkItem workItem)
    • checkCanAddWatch

      void checkCanAddWatch(IWorkItem workItem, ITrackerUser trackerUser)
    • checkCanRemoveWatch

      void checkCanRemoveWatch(IWorkItem workItem, ITrackerUser trackerUser)
    • canCreateWorkReport

      boolean canCreateWorkReport(IContextId contextId)
      Determine if the current user is allowed to trigger creation of work reports.
      Returns:
      true if the current user is allowed to trigger creation of work reports
    • canUseCalendarEditor

      boolean canUseCalendarEditor()
    • canUseCalendarFromSVN

      boolean canUseCalendarFromSVN()
    • canUseCalendarFromSVN

      boolean canUseCalendarFromSVN(String userId)
      Parameters:
      userId -
      Returns:
      true if the given user is allowed to use calendar from SVN
      Since:
      3.3.1
    • canUseTimeMatrix

      boolean canUseTimeMatrix()
    • canUseWFDesigner

      boolean canUseWFDesigner()
    • canUsePDI

      boolean canUsePDI()
    • canUseFormConfiguration

      boolean canUseFormConfiguration()
      Since:
      3.5.0
    • canUseTrMatrix

      boolean canUseTrMatrix()
    • canUseMultiEdit

      boolean canUseMultiEdit()
    • canUseTreeMultiEdit

      boolean canUseTreeMultiEdit()
      Since:
      3.2
    • canUseWorkReport

      boolean canUseWorkReport()
    • canUseTreeTable

      boolean canUseTreeTable()
    • canUseTreeTableExport

      boolean canUseTreeTableExport()
      Since:
      3.2
    • canUseModules

      boolean canUseModules()
      Since:
      3.2
    • canReadDocuments

      boolean canReadDocuments()
      Since:
      3.5.0
    • canUseMSProjectImpExp

      boolean canUseMSProjectImpExp()
    • canUseExport

      boolean canUseExport()
      Since:
      3.6.0
    • canUseImport

      boolean canUseImport()
      Since:
      3.6.0
    • canUseWordExcelExport

      boolean canUseWordExcelExport()
      Only controls Excel exporter.
    • canUseExcelTraceabilityReportExport

      boolean canUseExcelTraceabilityReportExport()
    • canUseBaselines

      boolean canUseBaselines()
    • canUseWFFromSVN

      boolean canUseWFFromSVN()
    • canUseWiki

      boolean canUseWiki()
    • canUseBuilds

      boolean canUseBuilds()
    • canUsePercentualAssignement

      boolean canUsePercentualAssignement()
    • canUseExcelRoundTrip

      boolean canUseExcelRoundTrip()
      Since:
      3.5.1
    • canUseExcelImport

      boolean canUseExcelImport()
      Since:
      3.5.2
    • canUseExcelImportOfTestSteps

      boolean canUseExcelImportOfTestSteps()
      Since:
      3.7.0
    • checkCanUseExcelImportOfTestSteps

      void checkCanUseExcelImportOfTestSteps()
      Since:
      3.7.0
    • canUsePercentualAssignment

      boolean canUsePercentualAssignment(String userId)
      Since:
      3.5.1
    • canUseProjectTemplates

      boolean canUseProjectTemplates()
    • canUseUnrestrictedWiki

      boolean canUseUnrestrictedWiki()
    • canUseXmlExport

      boolean canUseXmlExport()
      Since:
      3.3
    • canUseAccessManagement

      boolean canUseAccessManagement()
      Since:
      3.5.0
    • canImportModule

      boolean canImportModule(IContextId contextId)
      Since:
      3.5.0
    • canCreateDocument

      boolean canCreateDocument(IContextId contextId)
      Since:
      3.5.0
    • canModifyWorkitems

      boolean canModifyWorkitems()
      Whether license allows general write access to Work Items (modifying some Work Item fields may be allowed).
      Since:
      3.6.0
    • canModifyPlans

      boolean canModifyPlans()
      Whether license allows general write access to Plans.
      Since:
      3.8.1
    • canCreateWorkItems

      boolean canCreateWorkItems(IContextId contextId)
      Since:
      3.5.2
    • canModifyWorkItems

      boolean canModifyWorkItems(IContextId contextId)
      Since:
      3.6.0
    • canResolveComments

      @Deprecated boolean canResolveComments(IWorkItem workItem)
      Deprecated.
      Use ICommentBase.can() and ICommentPermissions.resolve()
      Since:
      3.7.1
    • canResolveComments

      @Deprecated boolean canResolveComments(IModule document)
      Deprecated.
      Use ICommentBase.can() and ICommentPermissions.resolve()
      Since:
      3.7.1
    • canBranchDocuments

      boolean canBranchDocuments()
      Since:
      3.6.0
    • canCommentDocuments

      boolean canCommentDocuments(IContextId contextId)
      Since:
      3.6.0
    • canUseDiagramming

      boolean canUseDiagramming()
      Since:
      3.6.2
    • canUseRichPages

      boolean canUseRichPages()
      Checks if the current user can use Rich Pages
      Returns:
      true if the current user is allowed to use Rich Pages
      Since:
      3.9.0
    • canModifyRichPages

      boolean canModifyRichPages()
      Checks if the current user can modify Rich Pages
      Returns:
      true if the current user is allowed to modify Rich Pages
      Since:
      3.9.0
    • canModifyRichPageWidgets

      boolean canModifyRichPageWidgets()
      Checks if the current user can add/edit widget in Rich Pages
      Returns:
      true if the current user is allowed to add new or modify existing widgets in Rich Pages
      Since:
      3.9.0
    • canUsePlans

      boolean canUsePlans()
      Since:
      3.8.0
    • getCannotUseReqIfReason

      @Nullable String getCannotUseReqIfReason(@Nullable IContextId contextId)
      Check why ReqIF Roundtrip export and import is disabled for passed context.
      Parameters:
      contextId - the context to check availability of ReqIF for.
      Returns:
      reason why ReqIF is disabled null if ReqIF can be used.
      Since:
      3.8.0
    • getCannotUseReqIfReason

      @Nullable String getCannotUseReqIfReason(@Nullable IContextId contextId, boolean forImport)
      Check why ReqIF Roundtrip export or import is disabled for passed context.
      Parameters:
      contextId - the context to check availability of ReqIF for.
      forImport - check permission for import if true .
      Returns:
      reason why ReqIF is disabled null if ReqIF can be used.
      Since:
      3.8.3
    • canUseRif11a

      boolean canUseRif11a()
      Checks if the current user can use RIF 1.1a Roundtrip.
      Returns:
      true if the current user is allowed to use RIF 1.1a Roundtrip.
      Since:
      3.8.2
    • canUseVariantManagement

      boolean canUseVariantManagement()
      Checks if the current user can use the Variant management feature
      Since:
      3.9.0
    • checkCanUseVariantManagement

      void checkCanUseVariantManagement()
      Checks whether or not the current user can access variant management.
      Since:
      3.23.4
    • canInsertReferencedWorkItems

      boolean canInsertReferencedWorkItems()
      Checks whether or not the current user can insert/freeze/unfreeze referenced Work Items in Documents.
      Since:
      3.10.3
    • canConfigureResourceTraceability

      boolean canConfigureResourceTraceability()
      Checks if the current user can configure Resource Traceability.
      Since:
      3.17.1
    • canUseICVA

      boolean canUseICVA()
      Checks if the user can use IC Verification Assistant feature.
      Since:
      3.19.0
    • canUseCollections

      boolean canUseCollections()
      Checks if the user can use Collections feature.
      Since:
      3.20.1
    • canUseTeamcenterShare

      boolean canUseTeamcenterShare()
      Checks if Teamcenter Share is configured and the license of the current user allows for its use.
      Since:
      3.23.10
    • canCreateOrModifySpaces

      boolean canCreateOrModifySpaces()
      Checks if the current user has license to Create or Modify Spaces.
      Returns:
      true if the current user is allowed to Create or Modify Spaces.
      Since:
      3.23.10