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()
Authorization s 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 Authorization s 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)
Authorization s 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 Authorization s 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 ISection
public void setDisplayName(String displayName)
setDisplayName
in interface ISection
public String safeDisplayName()
public void setEnabled(boolean enabled)
public Collection<Authorization> getAuthorizations()
Authorizable
Authorization
s required to access the componentgetAuthorizations
in interface Authorizable
Authorizable
public void setAuthorizations(Collection<Authorization> authorizations)
Authorizable
Authorization
s required to access the componentsetAuthorizations
in interface Authorizable
Authorizable
@Deprecated public Collection<IModuleFeature> getSubModules()
@Deprecated public void setSubModules(Collection<IModuleFeature> subModules)
public Module getModule()
getModule
in interface IModuleFeature
Module
public Module setModule(Module module)
setModule
in interface IModuleFeature
module
- The Module this object belongs topublic Boolean isEnabled()
isEnabled
in interface IModuleFeature
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
setEnabled
in interface IModuleFeature
public Boolean getControllable()
public Boolean isControllable()
public void setControllable(Boolean controllable)
public String moduleName()
moduleName
in interface IModuleAware
public String getAuthorizableId()
moduleName()
some Annotations like MountModuleUI
rely on Module NameAuthorizable
Id should be the same as the namegetAuthorizableId
in interface Authorizable
public void setAuthorizableId(String id)
moduleName()
some Annotations like MountModuleUI
rely on Module NameAuthorizable
Id should be the same as the namesetAuthorizableId
in interface Authorizable
public Boolean getAuthorizableIdAssignable()
Authorizable
Authorizable.getAuthorizableId()
of this instance to be considered in the global list of Authorizations.getAuthorizableIdAssignable
in interface Authorizable
Boolean
@Nullablepublic void setAuthorizableIdAssignable(Boolean authorizableIdAssignable)
public Collection<Authorization> getPermissableAuths()
ManagedAuthorizable
Authorizable.getAuthorizations()
what is the possible restricted set or list of Authorization
s we can expect for this Authorizable
instance.getPermissableAuths
in interface ManagedAuthorizable
public void setPermissableAuths(Collection<Authorization> permissableAuths)
ManagedAuthorizable
Authorizable.getAuthorizations()
what is the possible restricted set or list of Authorization
s we can expect for this Authorizable
instance.setPermissableAuths
in interface ManagedAuthorizable
Copyright © 2018. All rights reserved.