public class XClassBreakingQuestion extends Object
Constructor and Description |
---|
XClassBreakingQuestion(Map<org.xwiki.model.reference.EntityReference,EntitySelection> concernedEntities) |
Modifier and Type | Method and Description |
---|---|
Map<org.xwiki.model.reference.EntityReference,EntitySelection> |
getConcernedEntities() |
Set<EntitySelection> |
getFreePages() |
Map<org.xwiki.model.reference.EntityReference,Set<org.xwiki.model.reference.EntityReference>> |
getImpactedObjects() |
Set<EntitySelection> |
getXClassPages() |
boolean |
isObjectsPotentiallyHidden() |
boolean |
isRefactoringForbidden() |
void |
markAsFreePage(EntitySelection entitySelection) |
void |
markImpactedObject(EntitySelection entitySelection,
org.xwiki.model.reference.EntityReference documentObjectName)
Mark an entity as containing an used XClass and specify which objects is using it.
|
void |
selectAllFreePages()
Select all pages that do not belong to any extension.
|
void |
setObjectsPotentiallyHidden(boolean objectsPotentiallyHidden)
Specify if the request limit has been reached.
|
void |
setRefactoringForbidden(boolean refactoringForbidden)
Specify if the refactoring should be doable by the user or not.
|
void |
setSelectAllFreePages(boolean select)
Same as
selectAllFreePages() but compatible with properties system. |
void |
setSelectedDocuments(Set<org.xwiki.model.reference.DocumentReference> documents) |
void |
unselectAll()
Unselect all entities.
|
public XClassBreakingQuestion(Map<org.xwiki.model.reference.EntityReference,EntitySelection> concernedEntities)
concernedEntities
- the map of entities concerned by the refactoringpublic void markAsFreePage(EntitySelection entitySelection)
entitySelection
- an entity to mark as not containing an used XClasspublic void markImpactedObject(EntitySelection entitySelection, org.xwiki.model.reference.EntityReference documentObjectName)
entitySelection
- The entity containing an used XClassdocumentObjectName
- The name of the page containing the objects for this XClasspublic Map<org.xwiki.model.reference.EntityReference,Set<org.xwiki.model.reference.EntityReference>> getImpactedObjects()
public void unselectAll()
public Set<EntitySelection> getXClassPages()
public Set<EntitySelection> getFreePages()
public void setSelectedDocuments(Set<org.xwiki.model.reference.DocumentReference> documents)
documents
- the documents to set as selectedpublic void selectAllFreePages()
public void setSelectAllFreePages(boolean select)
selectAllFreePages()
but compatible with properties system.select
- true if all free pages should be selectedpublic boolean isRefactoringForbidden()
public void setRefactoringForbidden(boolean refactoringForbidden)
refactoringForbidden
- true means the refactoring will be forbidden.public boolean isObjectsPotentiallyHidden()
public void setObjectsPotentiallyHidden(boolean objectsPotentiallyHidden)
objectsPotentiallyHidden
- true means that a supplementary warning will be displayed to specify that some
impacted objects may not be displayed.public Map<org.xwiki.model.reference.EntityReference,EntitySelection> getConcernedEntities()
Copyright © 2004–2021 XWiki. All rights reserved.