Package com.xwiki.ideas.script
Class IdeasScriptService
- java.lang.Object
-
- com.xwiki.ideas.script.IdeasScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("ideas") @Singleton @Unstable public class IdeasScriptService extends Object implements org.xwiki.script.service.ScriptServiceScript service for retrieving information about the Ideas Application.- Since:
- 1.16
- Version:
- $Id: fb3bb985dfa543e9fbdfab91d6c77d7b8ba9668f $
-
-
Constructor Summary
Constructors Constructor Description IdeasScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOpenToVote(String status)Check if an idea with the given status allows voting.
-
-
-
Method Detail
-
isOpenToVote
public boolean isOpenToVote(String status) throws IdeasException
Check if an idea with the given status allows voting.- Parameters:
status- the status to check- Returns:
- true if an idea with the given status is open for voting, false otherwise
- Throws:
IdeasException
-
-