public class Module extends Object implements IModuleFeature, ISection, ManagedAuthorizable
| Constructor and Description |
|---|
Module() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorizableId()
Same as
moduleName() some Annotations like MountModuleUI rely on Module NameFor Modules the Authorizable Id should be the same as the name |
Boolean |
getAuthorizableIdAssignable()
Is the
Authorizable.getAuthorizableId() of this instance to be considered in the global list of Authorizations.If true, it will appear in the List of Authorizations that can be assigned to users. |
Collection<Authorization> |
getAuthorizations()
Authorizations required to access the component |
Boolean |
getControllable() |
String |
getDisplayName() |
Boolean |
getEnabled() |
Module |
getModule()
The Module this object belongs to
|
String |
getName()
Name is case sensitive
|
Collection<Authorization> |
getPermissableAuths()
Of the
Authorizable.getAuthorizations() what is the possible restricted set or list of Authorizations we can expect for this Authorizable instance. |
Collection<IModuleFeature> |
getSubModules()
Deprecated.
|
Boolean |
isControllable() |
Boolean |
isEnabled()
Check if the Feature instance is enabled or disabled.
|
String |
moduleName() |
String |
safeDisplayName()
Display Name
|
void |
setAuthorizableId(String id)
Same as
moduleName() some Annotations like MountModuleUI rely on Module NameFor Modules the Authorizable Id should be the same as the name |
void |
setAuthorizableIdAssignable(Boolean authorizableIdAssignable) |
void |
setAuthorizations(Collection<Authorization> authorizations)
Authorizations required to access the component |
void |
setControllable(Boolean controllable) |
void |
setDisplayName(String displayName) |
void |
setEnabled(boolean enabled) |
void |
setEnabled(Boolean enabled)
Enable or disable the feature.
|
Module |
setModule(Module module)
The Module this object belongs to
|
void |
setName(String name)
Name is case sensitive
|
void |
setPermissableAuths(Collection<Authorization> permissableAuths)
Of the
Authorizable.getAuthorizations() what is the possible restricted set or list of Authorizations we can expect for this Authorizable instance. |
void |
setSubModules(Collection<IModuleFeature> subModules)
Deprecated.
|
public String getName()
public void setName(String name)
public String getDisplayName()
getDisplayName in interface ISectionpublic void setDisplayName(String displayName)
setDisplayName in interface ISectionpublic String safeDisplayName()
public void setEnabled(boolean enabled)
public Collection<Authorization> getAuthorizations()
AuthorizableAuthorizations required to access the componentgetAuthorizations in interface AuthorizableAuthorizablepublic void setAuthorizations(Collection<Authorization> authorizations)
AuthorizableAuthorizations required to access the componentsetAuthorizations in interface AuthorizableAuthorizable@Deprecated public Collection<IModuleFeature> getSubModules()
@Deprecated public void setSubModules(Collection<IModuleFeature> subModules)
public Module getModule()
getModule in interface IModuleFeatureModulepublic Module setModule(Module module)
setModule in interface IModuleFeaturemodule - The Module this object belongs topublic Boolean isEnabled()
isEnabled in interface IModuleFeaturepublic Boolean getEnabled()
public void setEnabled(Boolean enabled)
setEnabled in interface IModuleFeaturepublic Boolean getControllable()
public Boolean isControllable()
public void setControllable(Boolean controllable)
public String moduleName()
moduleName in interface IModuleAwarepublic String getAuthorizableId()
moduleName() some Annotations like MountModuleUI rely on Module NameAuthorizable Id should be the same as the namegetAuthorizableId in interface Authorizablepublic void setAuthorizableId(String id)
moduleName() some Annotations like MountModuleUI rely on Module NameAuthorizable Id should be the same as the namesetAuthorizableId in interface Authorizablepublic Boolean getAuthorizableIdAssignable()
AuthorizableAuthorizable.getAuthorizableId() of this instance to be considered in the global list of Authorizations.getAuthorizableIdAssignable in interface AuthorizableBoolean @Nullablepublic void setAuthorizableIdAssignable(Boolean authorizableIdAssignable)
public Collection<Authorization> getPermissableAuths()
ManagedAuthorizableAuthorizable.getAuthorizations() what is the possible restricted set or list of Authorizations we can expect for this Authorizable instance.getPermissableAuths in interface ManagedAuthorizablepublic void setPermissableAuths(Collection<Authorization> permissableAuths)
ManagedAuthorizableAuthorizable.getAuthorizations() what is the possible restricted set or list of Authorizations we can expect for this Authorizable instance.setPermissableAuths in interface ManagedAuthorizableCopyright © 2018. All rights reserved.