本文整理了Java中com.sun.enterprise.deployment.Application.getRoles()
方法的一些代码示例,展示了Application.getRoles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.getRoles()
方法的具体详情如下:
包路径:com.sun.enterprise.deployment.Application
类名称:Application
方法名:getRoles
[英]Return the set of roles used in this application. Currently, for release 1.0, it is an * aggregation of all the roles in the sub-modules of the application.
[中]返回此应用程序中使用的角色集。目前,对于1.0版,它是应用程序子模块中所有角色的*聚合。
代码示例来源:origin: org.glassfish.main.deployment/dol
/**
* A formatted String representing my state.
*/
public void print(StringBuffer toStringBuffer) {
toStringBuffer.append("Application");
toStringBuffer.append("\n");
super.print(toStringBuffer);
toStringBuffer.append("\n smallIcon ").append(super.getSmallIconUri());
for (ModuleDescriptor<BundleDescriptor> aModule : getModules()) {
toStringBuffer.append("\n Module : ");
aModule.print(toStringBuffer);
}
toStringBuffer.append("\n Bundles: \n");
printDescriptorSet(this.getBundleDescriptors(), toStringBuffer);
toStringBuffer.append("\n roles ").append(getRoles());
toStringBuffer.append("\n RoleMapper ").append(this.getRoleMapper());
toStringBuffer.append("\n Realm ").append(realm);
}
代码示例来源:origin: org.glassfish.deployment/dol
/**
* A formatted String representing my state.
*/
public void print(StringBuffer toStringBuffer) {
toStringBuffer.append("Application");
toStringBuffer.append("\n");
super.print(toStringBuffer);
toStringBuffer.append("\n smallIcon ").append(super.getSmallIconUri());
for (ModuleDescriptor<BundleDescriptor> aModule : getModules()) {
toStringBuffer.append("\n Module : ");
aModule.print(toStringBuffer);
}
toStringBuffer.append("\n EjbBundles: \n");
if (this.getEjbBundleDescriptors() != null)
printDescriptorSet(this.getEjbBundleDescriptors(), toStringBuffer);
toStringBuffer.append("\n WebBundleDescriptors ");
if (this.getWebBundleDescriptors() != null)
printDescriptorSet(this.getWebBundleDescriptors(), toStringBuffer);
toStringBuffer.append("\n applicationClientDescriptors ");
if (this.getApplicationClientDescriptors() != null)
printDescriptorSet(this.getApplicationClientDescriptors(), toStringBuffer);
toStringBuffer.append("\n roles ").append(getRoles());
toStringBuffer.append("\n RoleMapper ").append(this.getRoleMapper());
toStringBuffer.append("\n Realm ").append(realm);
}
代码示例来源:origin: org.glassfish.main.security/security-ee
Set allRoles = app.getRoles();
if (allRoles == null) {
logger.finest("- No roles present.");
代码示例来源:origin: org.glassfish.security/security
Set allRoles = app.getRoles();
if (allRoles == null) {
logger.finest("- No roles present.");
内容来源于网络,如有侵权,请联系作者删除!