001: package org.drools.brms.client.rpc;
002:
003: /*
004: * Copyright 2005 JBoss Inc
005: *
006: * Licensed under the Apache License, Version 2.0 (the "License");
007: * you may not use this file except in compliance with the License.
008: * You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing, software
013: * distributed under the License is distributed on an "AS IS" BASIS,
014: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015: * See the License for the specific language governing permissions and
016: * limitations under the License.
017: */
018:
019: import com.google.gwt.user.client.rpc.AsyncCallback;
020: import com.google.gwt.user.client.rpc.RemoteService;
021:
022: /**
023:
024: * This is what the remote service will implement, as a servlet.
025:
026: * (in hosted/debug mode, you could also use an implementation that was in-process).
027:
028: */
029:
030: public interface RepositoryServiceAsync extends RemoteService {
031:
032: /** Generated by AsyncInterfaceGenerator hackery */
033: public void loadChildCategories(java.lang.String p0,
034: AsyncCallback cb);
035:
036: public void loadRuleListForCategories(java.lang.String p0,
037: AsyncCallback cb);
038:
039: public void loadTableConfig(java.lang.String p0, AsyncCallback cb);
040:
041: public void createCategory(java.lang.String p0,
042: java.lang.String p1, java.lang.String p2, AsyncCallback cb);
043:
044: public void createNewRule(java.lang.String p0, java.lang.String p1,
045: java.lang.String p2, java.lang.String p3,
046: java.lang.String p4, AsyncCallback cb);
047:
048: public void deleteUncheckedRule(java.lang.String p0,
049: java.lang.String p1, AsyncCallback cb);
050:
051: public void exportRepository(AsyncCallback cb);
052:
053: public void clearRulesRepository(AsyncCallback cb);
054:
055: public void listPackages(AsyncCallback cb);
056:
057: public void loadRuleAsset(java.lang.String p0, AsyncCallback cb);
058:
059: public void loadAssetHistory(java.lang.String p0, AsyncCallback cb);
060:
061: public void loadArchivedAssets(AsyncCallback cb);
062:
063: public void checkinVersion(org.drools.brms.client.rpc.RuleAsset p0,
064: AsyncCallback cb);
065:
066: public void restoreVersion(java.lang.String p0,
067: java.lang.String p1, java.lang.String p2, AsyncCallback cb);
068:
069: public void createPackage(java.lang.String p0, java.lang.String p1,
070: AsyncCallback cb);
071:
072: public void loadPackageConfig(java.lang.String p0, AsyncCallback cb);
073:
074: public void savePackage(
075: org.drools.brms.client.rpc.PackageConfigData p0,
076: AsyncCallback cb);
077:
078: public void listAssets(java.lang.String p0, String[] p1, int p2,
079: int p3, AsyncCallback cb);
080:
081: public void listStates(AsyncCallback cb);
082:
083: public void createState(java.lang.String p0, AsyncCallback cb);
084:
085: public void changeState(java.lang.String p0, java.lang.String p1,
086: boolean p2, AsyncCallback cb);
087:
088: public void changeAssetPackage(java.lang.String p0,
089: java.lang.String p1, java.lang.String p2, AsyncCallback cb);
090:
091: public void copyAsset(java.lang.String p0, java.lang.String p1,
092: java.lang.String p2, AsyncCallback cb);
093:
094: public void copyPackage(java.lang.String p0, java.lang.String p1,
095: AsyncCallback cb);
096:
097: public void listSnapshots(java.lang.String p0, AsyncCallback cb);
098:
099: public void createPackageSnapshot(java.lang.String p0,
100: java.lang.String p1, boolean p2, java.lang.String p3,
101: AsyncCallback cb);
102:
103: public void copyOrRemoveSnapshot(java.lang.String p0,
104: java.lang.String p1, boolean p2, java.lang.String p3,
105: AsyncCallback cb);
106:
107: public void quickFindAsset(java.lang.String p0, int p1, boolean p2,
108: AsyncCallback cb);
109:
110: public void removeCategory(java.lang.String p0, AsyncCallback cb);
111:
112: public void loadSuggestionCompletionEngine(java.lang.String p0,
113: AsyncCallback cb);
114:
115: public void buildPackage(java.lang.String p0, java.lang.String p1,
116: AsyncCallback cb);
117:
118: public void buildPackageSource(java.lang.String p0, AsyncCallback cb);
119:
120: public void buildAssetSource(
121: org.drools.brms.client.rpc.RuleAsset p0, AsyncCallback cb);
122:
123: public void buildAsset(org.drools.brms.client.rpc.RuleAsset p0,
124: AsyncCallback cb);
125:
126: public void renameAsset(java.lang.String p0, java.lang.String p1,
127: AsyncCallback cb);
128:
129: public void archiveAsset(java.lang.String p0, boolean p1,
130: AsyncCallback cb);
131:
132: public void removeAsset(java.lang.String p0, AsyncCallback cb);
133:
134: public void renamePackage(java.lang.String p0, java.lang.String p1,
135: AsyncCallback cb);
136: }
|