net.datacrow.core.modules.security
Class PermissionModule

java.lang.Object
  extended by net.datacrow.core.modules.DcModule
      extended by net.datacrow.core.modules.DcChildModule
          extended by net.datacrow.core.modules.security.PermissionModule
All Implemented Interfaces:
java.lang.Comparable<DcModule>, IChildModule

public class PermissionModule
extends DcChildModule

The permission module holds all permissions as part of the security functionality. The permission module is a child module of the user module.

Author:
Robert Jan van der Waals
See Also:
UserModule, User, Permission

Field Summary
 
Fields inherited from class net.datacrow.core.modules.DcModule
_TYPE_ASSOCIATE_MODULE, _TYPE_EXTERNALREFERENCE_MODULE, _TYPE_MAPPING_MODULE, _TYPE_MEDIA_MODULE, _TYPE_MODULE, _TYPE_PROPERTY_MODULE, _TYPE_TEMPLATE_MODULE, insertView, searchView
 
Constructor Summary
PermissionModule()
          Creates a new instance.
 
Method Summary
 DcObject createItem()
          Creates a new permission.
 boolean equals(java.lang.Object o)
           
 DcImageIcon getIcon16()
          The small icon.
 DcImageIcon getIcon32()
          The large icon.
 MasterView getInsertView()
          The insert view.
 DcModule getParent()
          Retrieves the parent module.
 boolean hasDependingModules()
          Indicates of other modules are depending on this module.
 boolean hasInsertView()
          Indicates if this module has an insert view.
 boolean hasSearchView()
          Indicates if this module has a search view.
protected  void initializeFields()
          Creates the default fields.
protected  void initializeUI()
          Creates all the views.
 boolean isChildModule()
          Indicates if this is a child module.
 boolean isCustomFieldsAllowed()
          Indicates if this module is allowed to be customized.
 boolean isEnabled()
          Indicates if this module is enabled.
 boolean isFileBacked()
          Indicates if items belonging to this module are file based.
 
Methods inherited from class net.datacrow.core.modules.DcChildModule
getItemView, getMinimalFields, getSupportedViews, isTopModule
 
Methods inherited from class net.datacrow.core.modules.DcModule
addField, addValueEnhancer, applySettings, canBeLend, compareTo, delete, deliversOnlineService, getChartPanel, getChild, getCurrentInsertView, getCurrentSearchView, getDefaultData, getDefaultSortFieldIdx, getDescription, getDisplayFieldIdx, getDisplayIndex, getField, getField, getFieldCount, getFieldDefinitions, getFieldIndices, getFields, getFileField, getFileRenamerDialog, getFilterForm, getIcon16Filename, getIcon32Filename, getIconField, getImporter, getImporterClass, getIndex, getItem, getItemForm, getItemPluralResourceKey, getItemResourceKey, getKeyStroke, getLabel, getMenuBar, getModuleResourceKey, getName, getNameFieldIdx, getObjectName, getObjectNamePlural, getOnlineServices, getParentReferenceFieldIndex, getPersistentField, getPropertyModule, getQuickView, getQuickViewFieldDefinitions, getSearchView, getSetting, getSettings, getSynchronizer, getSystemDisplayFieldIdx, getSystemField, getSystemObjectName, getSystemObjectNamePlural, getTableName, getTableShortName, getTemplateModule, getType, getViews, getWebFieldDefinitions, getXmlModule, hasActualReferenceTo, hashCode, hasReferenceTo, hasReports, initializeMultiReferenceFields, initializeSettings, initializeSystemFields, isAbstract, isContainerManaged, isCustomModule, isDefaultDataLoaded, isEditingAllowed, isEnabled, isHasImages, isHasReferences, isNew, isParentModule, isSearchViewInitialized, isSelectableInUI, isServingMultipleModules, isValid, release, removeEnhancers, setChild, setDefaultDataLoaded, setIcon16, setIcon32, setNew, setServingMultipleModules, setSetting, setValid, setXmlModule, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.datacrow.core.modules.IChildModule
getIndex
 

Constructor Detail

PermissionModule

public PermissionModule()
Creates a new instance.

Method Detail

createItem

public DcObject createItem()
Creates a new permission.

Overrides:
createItem in class DcModule
See Also:
Permission

getParent

public DcModule getParent()
Retrieves the parent module.

Overrides:
getParent in class DcModule
Returns:
The parent module or null if not applicable.
See Also:
UserModule

getIcon16

public DcImageIcon getIcon16()
The small icon.

Overrides:
getIcon16 in class DcModule

getIcon32

public DcImageIcon getIcon32()
The large icon.

Overrides:
getIcon32 in class DcModule

getInsertView

public MasterView getInsertView()
The insert view.

Overrides:
getInsertView in class DcModule
Returns:
Always null for this module.

hasDependingModules

public boolean hasDependingModules()
Indicates of other modules are depending on this module.

Overrides:
hasDependingModules in class DcModule
Returns:
Always false for this module.

hasSearchView

public boolean hasSearchView()
Indicates if this module has a search view.

Overrides:
hasSearchView in class DcModule
Returns:
Always true.

hasInsertView

public boolean hasInsertView()
Indicates if this module has an insert view.

Overrides:
hasInsertView in class DcModule
Returns:
Always false.

isFileBacked

public boolean isFileBacked()
Indicates if items belonging to this module are file based.

Overrides:
isFileBacked in class DcModule
Returns:
Always false.

isCustomFieldsAllowed

public boolean isCustomFieldsAllowed()
Indicates if this module is allowed to be customized.

Overrides:
isCustomFieldsAllowed in class DcModule
Returns:
Always false.

isChildModule

public boolean isChildModule()
Indicates if this is a child module.

Overrides:
isChildModule in class DcChildModule
Returns:
Always true.

isEnabled

public boolean isEnabled()
Indicates if this module is enabled.

Overrides:
isEnabled in class DcModule
Returns:
Depends if the user currently logged on is an administrator.
See Also:
DcModuleSettings

initializeUI

protected void initializeUI()
Creates all the views.

Overrides:
initializeUI in class DcChildModule

initializeFields

protected void initializeFields()
Creates the default fields.

Overrides:
initializeFields in class DcModule

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class DcChildModule