本文整理汇总了Java中org.apache.wicket.PageParameters.getString方法的典型用法代码示例。如果您正苦于以下问题:Java PageParameters.getString方法的具体用法?Java PageParameters.getString怎么用?Java PageParameters.getString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.wicket.PageParameters
的用法示例。
在下文中一共展示了PageParameters.getString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkLocation
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static boolean checkLocation(PageParameters param) {
boolean result = true;
String id = param.getString(LocationUtil.KEY_LOCATION_ID);
if (id == null || id.equals("")) {
return false;
}
try {
MplsNmsInventoryConnector conn = MplsNmsInventoryConnector.getInstance();
Set<LocationDto> dtos = conn.getActiveLocationDtos();
for (LocationDto dto : dtos) {
if (DtoUtil.getMvoId(dto).toString().equals(id)) {
return false;
}
}
} catch (Exception e) {
throw ExceptionUtils.throwAsRuntime(e);
}
return result;
}
示例2: getVlanIdPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static VlanIdPoolDto getVlanIdPool(PageParameters param) throws InventoryException, IOException {
String poolName = param.getString(PARAM_POOL_NAME);
poolName = Util.decodeUTF8(poolName);
List<VlanIdPoolDto> pools = new ArrayList<VlanIdPoolDto>(VlanUtil.getPools());
for (VlanIdPoolDto pool : pools) {
if (poolName == null || poolName.length() == 0) {
if (Util.stringToNull(pool.getName()) == null) {
return pool;
}
} else {
if (pool.getName() != null && pool.getName().equals(poolName)) {
return pool;
}
}
}
return null;
}
示例3: getRsvpLspPathPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static RsvpLspHopSeriesIdPoolDto getRsvpLspPathPool(PageParameters param) throws ExternalServiceException, IOException {
String poolName = param.getString(PARAM_POOL_NAME);
poolName = Util.decodeUTF8(poolName);
List<RsvpLspHopSeriesIdPoolDto> pools = MplsNmsInventoryConnector.getInstance().getRsvpLspHopSeriesIdPool();
for (RsvpLspHopSeriesIdPoolDto pool : pools) {
if (poolName == null || poolName.length() == 0) {
if (Util.stringToNull(pool.getName()) == null) {
return pool;
}
} else {
if (pool.getName() != null && pool.getName().equals(poolName)) {
return pool;
}
}
}
return null;
}
示例4: getPseudowireIdPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PseudowireLongIdPoolDto getPseudowireIdPool(PageParameters param) throws ExternalServiceException, IOException {
String poolName = param.getString(PARAM_POOL_NAME);
poolName = Util.decodeUTF8(poolName);
List<PseudowireLongIdPoolDto> pools = MplsNmsInventoryConnector.getInstance().getPseudoWireLongIdPools();
if (pools != null) {
for (PseudowireLongIdPoolDto pool : pools) {
if (poolName == null || poolName.length() == 0) {
if (Util.stringToNull(pool.getName()) == null) {
return pool;
}
} else {
if (pool.getName() != null && pool.getName().equals(poolName)) {
return pool;
}
}
}
}
return null;
}
示例5: getPseudowireStringIdPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PseudowireStringIdPoolDto getPseudowireStringIdPool(PageParameters param) throws ExternalServiceException, IOException {
String poolName = param.getString(PARAM_POOL_NAME);
List<PseudowireStringIdPoolDto> pools2 = MplsNmsInventoryConnector.getInstance().getPseudoWireStringIdPools();
if (pools2 != null) {
for (PseudowireStringIdPoolDto pool : pools2) {
if (poolName == null || poolName.length() == 0) {
if (Util.stringToNull(pool.getName()) == null) {
return pool;
}
} else {
if (pool.getName() != null && pool.getName().equals(poolName)) {
return pool;
}
}
}
}
return null;
}
示例6: getPvc
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static AtmPvcIfDto getPvc(PageParameters param) throws InventoryException, ExternalServiceException {
try {
String nodeName = param.getString(NodeUtil.KEY_NODE);
String atmIfName = param.getString(KEY_ATM_PORT);
if (atmIfName == null) {
throw new IllegalStateException("Invalid argument. ATM parent port not specified. " + param);
}
String vpi_ = param.getString(KEY_ATM_PVC_VPI);
if (vpi_ == null) {
throw new IllegalStateException("Invalid argument VPI not specified. " + param);
}
String vci_ = param.getString(KEY_ATM_PVC_VCI);
if (vci_ == null) {
throw new IllegalStateException("Invalid argument VCI not specified. " + param);
}
int vpi = Integer.parseInt(vpi_);
int vci = Integer.parseInt(vci_);
return getAtmPvc(nodeName, atmIfName, vpi, vci);
} catch (Exception e) {
throw ExceptionUtils.getExternalServiceException(e);
}
}
示例7: EmbeddedHierarchicalInstancePage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public EmbeddedHierarchicalInstancePage(PageParameters parameters) {
// expect there to be a topicId parameter
super(parameters);
// find hierarchy topic
String hierarchyId = parameters.getString("hierarchyId");
if (hierarchyId == null)
this.hierarchyModel = new TopicModel<Topic>(getHierarchyTopic(getTopic()));
else
this.hierarchyModel = new TopicModel<Topic>(parameters.getString("topicMapId"), hierarchyId);
// create a tree
TreePanel treePanel = createTreePanel("treePanel", createTreeModel(new TopicModel<Topic>(getHierarchyTopic()), new TopicModel<Topic>(getTopic())));
treePanel.setOutputMarkupId(true);
add(treePanel);
}
示例8: getPageParameters
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
@Override
public PageParameters getPageParameters(Topic topic) {
PageParameters params = new PageParameters();
params.put("topicMapId", topic.getTopicMap().getId());
params.put("topicId", topic.getId());
//! params.put("topicTypeId", getTopicType().getId());
FieldsView fieldsView = getFieldsView();
if (!fieldsView.isDefaultView())
params.put("viewId", fieldsView.getId());
PageParameters thisParams = getPageParameters();
// forward buttons parameter
if (thisParams.getString("buttons") != null)
params.put("buttons", "true");
return params;
}
示例9: VizigatorPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public VizigatorPage(PageParameters parameters) {
super(parameters);
this.topicModel = new TopicModel<Topic>(parameters.getString("topicMapId"), parameters.getString("topicId"));
// Adding part containing title and help link
createTitle();
// Add fields panel
createApplet();
// Function boxes
createFunctionBoxes();
// initialize parent components
initParentComponents();
}
示例10: SignOutPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
public SignOutPage(final PageParameters parameters) {
add(new HeaderPanel("header"));
add(new FooterPanel("footer"));
String page = parameters.getString(REDIRECTPAGE_PARAM);
Class<? extends Page> pageClass;
if (page != null) {
try {
pageClass = (Class<? extends Page>) Class.forName(page);
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
} else {
pageClass = getApplication().getHomePage();
}
getSession().invalidate();
setResponsePage(pageClass);
setRedirect(true);
}
示例11: EntryFilesPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public EntryFilesPage(PageParameters parameters) {
String entryName = parameters.getString("e");
try {
Entry entry = BlogServiceHolder.get().getEntry(entryName);
add(new Label("title", "Entry " + entry.getTitle() + " files"));
add(new FileListView("files", entry.getEntryName(), true));
add(new FileUploadForm(new EntityModel<Entry>(entry)));
add(new BookmarkablePageLink<Void>("backLink", EntryEditPage.class, new PageParameters("e=" + entryName)));
} catch (NoSuchEntryException e) {
log.warn("Entry " + entryName + " not found");
setRedirect(true);
setResponsePage(EntryViewPage.class, new PageParameters("e=" + entryName));
}
}
示例12: getLocation
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static LocationDto getLocation(PageParameters param) {
String id = param.getString(KEY_LOCATION_ID);
try {
MplsNmsInventoryConnector conn = MplsNmsInventoryConnector.getInstance();
Set<LocationDto> dtos = conn.getActiveLocationDtos();
for (LocationDto dto : dtos) {
if (DtoUtil.getMvoId(dto).toString().equals(id)) {
return dto;
}
}
return getLocation(KEY_TOP_CAPTION);
} catch (Exception e) {
throw ExceptionUtils.throwAsRuntime(e);
}
}
示例13: getRsvpLspPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static RsvpLspIdPoolDto getRsvpLspPool(PageParameters param) throws ExternalServiceException, IOException {
String poolName = param.getString(PARAM_POOL_NAME);
poolName = Util.decodeUTF8(poolName);
if (poolName == null || poolName.length() == 0) {
List<RsvpLspIdPoolDto> pools = MplsNmsInventoryConnector.getInstance().getRsvpLspIdPool();
for (RsvpLspIdPoolDto pool : pools) {
if (Util.stringToNull(pool.getName()) == null) {
return pool;
}
}
return null;
} else {
return MplsNmsInventoryConnector.getInstance().getRsvpLspIdPool(poolName);
}
}
示例14: VplsListPage
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public VplsListPage(WebPage backPage, PageParameters param) {
this.backPage = backPage;
try {
long prev = System.currentTimeMillis();
this.editorName = AAAWebUtil.checkAAA(this, OPERATION_NAME);
long time = System.currentTimeMillis();
PerfLog.info(prev, time, "build header component");
prev = time;
String nodeName = param.getString(KEY_NODE_NAME);
String vplsId = param.getString(KEY_VPLS_ID);
this.vplsModel = new VplsModel(nodeName, vplsId);
time = System.currentTimeMillis();
PerfLog.info(prev, time, "build portsModel");
prev = time;
VplsIfPanel vplsIfPanel = new VplsIfPanel("vplsIfPanel", null, vplsModel, editorName);
add(vplsIfPanel);
Link<Void> editLink = new Link<Void>("back") {
private static final long serialVersionUID = 1L;
@Override
public void onClick() {
setResponsePage(getBackPage());
}
};
add(editLink);
time = System.currentTimeMillis();
PerfLog.info(prev, time, "NodeDetailPage() - end");
} catch (Exception e) {
throw ExceptionUtils.throwAsRuntime(e);
}
}
示例15: getPool
import org.apache.wicket.PageParameters; //导入方法依赖的package包/类
public static PseudowireLongIdPoolDto getPool(PageParameters param) throws InventoryException,
ExternalServiceException, RemoteException, IOException {
String poolID = param.getString(KEY_POOL_ID);
if (poolID == null) {
return null;
}
return InventoryConnector.getInstance().getPseudoWireLongIdPool(poolID);
}