Package com.polarion.alm.tracker
Interface ITrackerPolicy
public interface ITrackerPolicy
Tracker policy.
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAddVote
(IWorkItem workItem, ITrackerUser trackerUser) boolean
canAddWatch
(IWorkItem workItem, ITrackerUser trackerUser) boolean
canApproveDisapproveOthers
(IWorkItem workItem) boolean
boolean
canCommentDocuments
(IContextId contextId) boolean
Checks if the current user can configure Resource Traceability.boolean
canCreateDocument
(IContextId contextId) boolean
Checks if the current user has license to Create or Modify Spaces.boolean
canCreateWorkItems
(IContextId contextId) boolean
canCreateWorkReport
(IContextId contextId) Determine if the current user is allowed to trigger creation of work reports.boolean
canImportModule
(IContextId contextId) boolean
Checks whether or not the current user can insert/freeze/unfreeze referenced Work Items in Documents.boolean
Checks if the User has permission to modify the Planned In field.boolean
Whether license allows general write access to Plans.boolean
Checks if the current user can modify Rich Pagesboolean
Checks if the current user can add/edit widget in Rich Pagesboolean
Whether license allows general write access to Work Items (modifying some Work Item fields may be allowed).boolean
canModifyWorkItems
(IContextId contextId) boolean
boolean
canRemoveVote
(IWorkItem workItem, ITrackerUser trackerUser) boolean
canRemoveWatch
(IWorkItem workItem, ITrackerUser trackerUser) boolean
canResetApprovals
(IContextId contextId) boolean
canResolveComments
(IModule document) Deprecated.boolean
canResolveComments
(IWorkItem workItem) Deprecated.UseICommentBase.can()
andICommentPermissions.resolve()
boolean
canSeeVotes
(IWorkItem workItem) boolean
canSeeWatches
(IWorkItem workItem) boolean
boolean
boolean
Checks if Automatic Merge is available.boolean
boolean
boolean
boolean
boolean
canUseCalendarFromSVN
(String userId) boolean
Checks if the user can use Collections feature.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
canUsePercentualAssignment
(String userId) boolean
boolean
Checks if Polarion Scripting is available.boolean
boolean
Checks if the current user can use Rich Pagesboolean
Checks if the current user can use RIF 1.1a Roundtrip.boolean
Checks if Teamcenter Share is configured and the license of the current user allows for its use.boolean
boolean
boolean
boolean
boolean
boolean
boolean
Checks if the current user can use the Variant management featureboolean
boolean
boolean
boolean
Only controls Excel exporter.boolean
boolean
boolean
boolean
void
checkCanAddVote
(IWorkItem workItem, ITrackerUser trackerUser) void
checkCanAddWatch
(IWorkItem workItem, ITrackerUser trackerUser) void
checkCanApproveDisapprove
(IWorkItem workItem) void
checkCanApproveDisapprove
(IWorkItem workItem, IApprovalStruct approval, IEnumOption newApprovalStatus) Checks whether approval with the status can be added/removed.void
checkCanApproveDisapproveOthers
(IWorkItem workItem) void
checkCanRemoveVote
(IWorkItem workItem, ITrackerUser trackerUser) void
checkCanRemoveWatch
(IWorkItem workItem, ITrackerUser trackerUser) void
checkCanSeeVotes
(IWorkItem workItem) void
checkCanSeeWatches
(IWorkItem workItem) void
checkCanUnvote
(IWorkItem workItem) void
checkCanUnwatch
(IWorkItem workItem) void
void
Checks whether or not the current user can access variant management.void
checkCanVote
(IWorkItem workItem) void
checkCanWatch
(IWorkItem workItem) getCannotUseReqIfReason
(IContextId contextId) Check why ReqIF Roundtrip export and import is disabled for passed context.getCannotUseReqIfReason
(IContextId contextId, boolean forImport) Check why ReqIF Roundtrip export or import is disabled for passed context.
-
Method Details
-
canSeeVotes
-
canVote
-
canUnvote
-
canAddVote
-
canRemoveVote
-
canApproveDisapproveOthers
- Since:
- 3.5.1
-
canResetApprovals
- Since:
- 3.7.1
-
checkCanApproveDisapproveOthers
- Since:
- 3.5.1
-
checkCanApproveDisapprove
- 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
-
checkCanVote
-
checkCanUnvote
-
checkCanAddVote
-
checkCanRemoveVote
-
canSeeWatches
-
canWatch
-
canAddWatch
-
canRemoveWatch
-
checkCanSeeWatches
-
checkCanWatch
-
checkCanUnwatch
-
checkCanAddWatch
-
checkCanRemoveWatch
-
canCreateWorkReport
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
- 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() -
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
- Since:
- 3.5.1
-
canUseProjectTemplates
boolean canUseProjectTemplates() -
canUseUnrestrictedWiki
boolean canUseUnrestrictedWiki() -
canUseXmlExport
boolean canUseXmlExport()- Since:
- 3.3
-
canUseAccessManagement
boolean canUseAccessManagement()- Since:
- 3.5.0
-
canImportModule
- Since:
- 3.5.0
-
canCreateDocument
- 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
- Since:
- 3.5.2
-
canModifyWorkItems
- Since:
- 3.6.0
-
canResolveComments
Deprecated.UseICommentBase.can()
andICommentPermissions.resolve()
- Since:
- 3.7.1
-
canResolveComments
Deprecated.UseICommentBase.can()
andICommentPermissions.resolve()
- Since:
- 3.7.1
-
canBranchDocuments
boolean canBranchDocuments()- Since:
- 3.6.0
-
canCommentDocuments
- 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
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
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 iftrue
.- 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
-
canUseCollections
boolean canUseCollections()Checks if the user can use Collections feature.- Since:
- 3.20.1
-
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
-
canUseAutomaticMerge
boolean canUseAutomaticMerge()Checks if Automatic Merge is available.- Since:
- 3.24.4
-
canModifyPlannedIn
boolean canModifyPlannedIn()Checks if the User has permission to modify the Planned In field.- Since:
- 3.24.10
-
canUsePolarionScripting
boolean canUsePolarionScripting()Checks if Polarion Scripting is available.- Since:
- 3.24.10
-
ICommentBase.can()
andICommentPermissions.resolve()