com.wewebu.ow.server.dmsdialogs
Class OwGroupPropertiesConfiguration

java.lang.Object
  extended by com.wewebu.ow.server.dmsdialogs.OwGroupPropertiesConfiguration

public class OwGroupPropertiesConfiguration
extends Object

Holds the configuration of the grouped properties.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com

Since:
3.1.0.0

Nested Class Summary
 class OwGroupPropertiesConfiguration.OwPropertyGroup
           Holds the grouped properties.
 
Constructor Summary
OwGroupPropertiesConfiguration(OwXMLUtil node_p, OwMainAppContext context_p)
          Constructor
 
Method Summary
 List<String> getAllPropertyNames()
          Get all properties names.
 OwGroupPropertiesConfiguration.OwPropertyGroup getGroupById(String groupId_p)
          Get a group by its id.
 List<OwGroupPropertiesConfiguration.OwPropertyGroup> getGroups()
          Get the configured groups.
 Map<String,Boolean> getReadOnlyProperties()
          Getter for read only properties.
 boolean isConfigured()
          Get configured status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwGroupPropertiesConfiguration

public OwGroupPropertiesConfiguration(OwXMLUtil node_p,
                                      OwMainAppContext context_p)
                               throws OwConfigurationException
Constructor

Parameters:
node_p - - the OwXMLUtil node
context_p - - the application context
Throws:
OwConfigurationException - - thrown when the XML section for grouping is not properly configured.
Method Detail

isConfigured

public boolean isConfigured()
Get configured status.

Returns:
- true if the grouping properties is configured.

getGroups

public List<OwGroupPropertiesConfiguration.OwPropertyGroup> getGroups()
Get the configured groups.

Returns:
- the configured groups.

getGroupById

public OwGroupPropertiesConfiguration.OwPropertyGroup getGroupById(String groupId_p)
Get a group by its id.

Parameters:
groupId_p - - the group id, return null if the wrong id is given as parameter.
Returns:
- the OwGroupPropertiesConfiguration.OwPropertyGroup configured for this id, or null if the group with the given id doesn't exist.

getReadOnlyProperties

public Map<String,Boolean> getReadOnlyProperties()
Getter for read only properties.

Returns:
- the read only properties Map.

getAllPropertyNames

public List<String> getAllPropertyNames()
Get all properties names.

Returns:
- all properties configured in all groups


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.