|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.guvnor.server.ServiceImplementation
@Name(value="org.drools.guvnor.client.rpc.RepositoryService") @AutoCreate public class ServiceImplementation
This is the implementation of the repository service to drive the GWT based front end. Generally requests for this are passed through from RepositoryServiceServlet - and Seam manages instances of this.
Constructor Summary | |
---|---|
ServiceImplementation()
|
Method Summary | |
---|---|
void |
cleanLog()
clean up the log entry. |
void |
clearRulesRepository()
Clear the rules repositoty, Use at your own risk. |
void |
create()
|
String |
createNewImportedRule(String sharedAssetName,
String initialPackage)
This will create a new asset which refers to an existing asset |
String |
createNewRule(String ruleName,
String description,
String initialCategory,
String initialPackage,
String format)
This will create a new asset. |
String |
createState(String name)
Create a state (status). |
void |
createUser(String userName)
create new user. |
void |
createWorkspace(String workspace)
This creates a workspace |
void |
deleteUncheckedRule(String uuid)
Delete un checked in Asset |
void |
deleteUser(String userName)
Removes user security data. |
String[] |
getCustomSelectors()
return custom selector names |
RulesRepository |
getRulesRepository()
|
Boolean |
isHostedMode()
Check to see if app context is active (not in hosted) |
String[] |
listAvailablePermissionTypes()
List the available permission types. |
String[] |
listRulesInGlobalArea()
|
String[] |
listStates()
Returns a list of valid states. |
Map<String,List<String>> |
listUserPermissions()
Deprecated. in favour of listUserPermissions(PageRequest) |
PageResponse<PermissionsPageRow> |
listUserPermissions(PageRequest request)
|
String[] |
listWorkspaces()
This returns a list of workspaces |
String[] |
loadDropDownExpression(String[] valuePairs,
String expression)
|
PageResponse<InboxPageRow> |
loadInbox(InboxPageRequest request)
Load the data for a given inbox for the currently logged in user. |
TableDataResult |
loadInbox(String inboxName)
Deprecated. in favour of loadInbox(InboxPageRequest) |
PageResponse<StatePageRow> |
loadRuleListForState(StatePageRequest request)
Return a list of Assets by status |
TableDataResult |
loadRuleListForState(String stateName,
int skip,
int numRows,
String tableConfig)
Deprecated. in favour of loadRuleListForState(StatePageRequest) |
Map<String,String> |
loadSpringContextElementData()
Returns the Spring context elements specified by SpringContextElementsManager |
SuggestionCompletionEngine |
loadSuggestionCompletionEngine(String packageName)
Loads up the SuggestionCompletionEngine for the given package. |
TableConfig |
loadTableConfig(String listName)
Deprecated. in favour of AbstractPagedTable |
String |
processTemplate(String name,
Map<String,Object> data)
Load and process the repository configuration templates. |
PageResponse<QueryPageRow> |
queryFullText(QueryPageRequest request)
Runs a full text search using JCR. |
TableDataResult |
queryMetaData(MetaDataQuery[] qr,
Date createdAfter,
Date createdBefore,
Date modifiedAfter,
Date modifiedBefore,
boolean seekArchived,
int skip,
int numRows)
Deprecated. in favour of queryMetaData(QueryPageRequest) |
PageResponse<QueryPageRow> |
queryMetaData(QueryMetadataPageRequest request)
Run a meta data search. |
void |
removeState(String name)
Removes a state. |
void |
removeWorkspace(String workspace)
This removes a workspace |
void |
renameState(String oldName,
String newName)
Renames a state. |
Map<String,List<String>> |
retrieveUserPermissions(String userName)
Loads the user permissions. |
void |
setRulesRepository(RulesRepository repository)
|
LogEntry[] |
showLog()
Deprecated. in favour of showLog(PageRequest) |
PageResponse<LogPageRow> |
showLog(PageRequest request)
This will list log entries logged by the server. |
List<PushResponse> |
subscribe()
Subscribe for a "callback" for a given request. |
void |
updateUserPermissions(String userName,
Map<String,List<String>> perms)
Update the user permissions - takes the userName, and a map from permission type to the list of targets it applies to. |
void |
updateWorkspace(String workspace,
String[] selectedModules,
String[] unselectedModules)
For the time being, module == package |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceImplementation()
Method Detail |
---|
@Create public void create()
public void setRulesRepository(RulesRepository repository)
public RulesRepository getRulesRepository()
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listWorkspaces()
RepositoryService
listWorkspaces
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void createWorkspace(String workspace)
RepositoryService
createWorkspace
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removeWorkspace(String workspace)
RepositoryService
removeWorkspace
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public void updateWorkspace(String workspace, String[] selectedModules, String[] unselectedModules)
updateWorkspace
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public String createNewRule(String ruleName, String description, String initialCategory, String initialPackage, String format) throws com.google.gwt.user.client.rpc.SerializationException
createNewRule
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String createNewImportedRule(String sharedAssetName, String initialPackage) throws com.google.gwt.user.client.rpc.SerializationException
createNewImportedRule
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void deleteUncheckedRule(String uuid)
RepositoryService
deleteUncheckedRule
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult loadRuleListForState(String stateName, int skip, int numRows, String tableConfig) throws com.google.gwt.user.client.rpc.SerializationException
loadRuleListForState(StatePageRequest)
RepositoryService
loadRuleListForState
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public TableConfig loadTableConfig(String listName)
AbstractPagedTable
RepositoryService
loadTableConfig
in interface RepositoryService
listName
- The name of the list that we are going to render.@WebRemote @Restrict(value="#{identity.loggedIn}") public TableDataResult queryMetaData(MetaDataQuery[] qr, Date createdAfter, Date createdBefore, Date modifiedAfter, Date modifiedBefore, boolean seekArchived, int skip, int numRows) throws com.google.gwt.user.client.rpc.SerializationException
queryMetaData(QueryPageRequest)
RepositoryService
queryMetaData
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String createState(String name) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
createState
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void removeState(String name) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
removeState
in interface RepositoryService
name
- state name that will be removed.
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public void renameState(String oldName, String newName) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
renameState
in interface RepositoryService
oldName
- states old name.newName
- states new name.
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listStates() throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
listStates
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote public void clearRulesRepository()
RepositoryService
clearRulesRepository
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public SuggestionCompletionEngine loadSuggestionCompletionEngine(String packageName) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
loadSuggestionCompletionEngine
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] getCustomSelectors() throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
getCustomSelectors
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] listRulesInGlobalArea() throws com.google.gwt.user.client.rpc.SerializationException
com.google.gwt.user.client.rpc.SerializationException
@WebRemote public LogEntry[] showLog()
showLog(PageRequest)
RepositoryService
showLog
in interface RepositoryService
@WebRemote public PageResponse<LogPageRow> showLog(PageRequest request)
RepositoryService
RepositoryService.showLog()
which has
been deprecated in favour of DTO centric operations.
showLog
in interface RepositoryService
@WebRemote public void cleanLog()
RepositoryService
cleanLog
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public String[] loadDropDownExpression(String[] valuePairs, String expression)
loadDropDownExpression
in interface RepositoryService
valuePairs
- key=value pairs to be interpolated into the expression.expression
- The expression, which will then be eval'ed to generate a
String[]@Restrict(value="#{identity.loggedIn}") public Map<String,List<String>> listUserPermissions()
listUserPermissions(PageRequest)
listUserPermissions
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public PageResponse<PermissionsPageRow> listUserPermissions(PageRequest request)
listUserPermissions
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public Map<String,List<String>> retrieveUserPermissions(String userName)
RepositoryService
retrieveUserPermissions
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public void updateUserPermissions(String userName, Map<String,List<String>> perms)
RepositoryService
updateUserPermissions
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public String[] listAvailablePermissionTypes()
RepositoryService
listAvailablePermissionTypes
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public void deleteUser(String userName)
RepositoryService
deleteUser
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public void createUser(String userName)
RepositoryService
createUser
in interface RepositoryService
@Restrict(value="#{identity.loggedIn}") public TableDataResult loadInbox(String inboxName) throws DetailedSerializationException
loadInbox(InboxPageRequest)
RepositoryService
loadInbox
in interface RepositoryService
DetailedSerializationException
@Restrict(value="#{identity.loggedIn}") public PageResponse<InboxPageRow> loadInbox(InboxPageRequest request) throws DetailedSerializationException
RepositoryService
loadInbox
in interface RepositoryService
DetailedSerializationException
public String processTemplate(String name, Map<String,Object> data)
processTemplate
in interface RepositoryService
public Map<String,String> loadSpringContextElementData() throws DetailedSerializationException
loadSpringContextElementData
in interface RepositoryService
DetailedSerializationException
public Boolean isHostedMode()
isHostedMode
in interface RepositoryService
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<QueryPageRow> queryFullText(QueryPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
queryFullText
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<QueryPageRow> queryMetaData(QueryMetadataPageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
queryMetaData
in interface RepositoryService
com.google.gwt.user.client.rpc.SerializationException
@WebRemote @Restrict(value="#{identity.loggedIn}") public PageResponse<StatePageRow> loadRuleListForState(StatePageRequest request) throws com.google.gwt.user.client.rpc.SerializationException
RepositoryService
loadRuleListForState
in interface RepositoryService
request
- Request specific details
com.google.gwt.user.client.rpc.SerializationException
public List<PushResponse> subscribe()
RepositoryService
subscribe
in interface RepositoryService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |