org.alfresco.web.bean.rules
Class RulesDialog.WrappedRule

java.lang.Object
  extended by org.alfresco.web.bean.rules.RulesDialog.WrappedRule
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RulesDialog

public static class RulesDialog.WrappedRule
extends java.lang.Object
implements java.io.Serializable

Inner class to wrap the Rule objects so we can expose a flag to indicate whether the rule is a local or inherited rule

See Also:
Serialized Form

Constructor Summary
RulesDialog.WrappedRule(org.alfresco.service.cmr.rule.Rule rule, boolean isLocal, java.util.Date createdDate, java.util.Date modifiedDate)
          Constructs a RuleWrapper object
 
Method Summary
 java.util.Date getCreatedDate()
          Returns the created date
 java.lang.String getDescription()
          Returns the rule description
 java.lang.String getId()
          Returns the rule id
 boolean getLocal()
          Determines whether the current rule is a local rule or has been inherited from a parent
 java.util.Date getModifiedDate()
          Returns the modfified date
 org.alfresco.service.cmr.rule.Rule getRule()
          Returns the rule being wrapped
 java.lang.String getTitle()
          Returns the rule title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulesDialog.WrappedRule

public RulesDialog.WrappedRule(org.alfresco.service.cmr.rule.Rule rule,
                               boolean isLocal,
                               java.util.Date createdDate,
                               java.util.Date modifiedDate)
Constructs a RuleWrapper object

Parameters:
rule - The rule we are wrapping
isLocal - Whether the rule is defined locally
createdDate - Date the rule was created
modifiedDate - The date the rule was last modified
Method Detail

getRule

public org.alfresco.service.cmr.rule.Rule getRule()
Returns the rule being wrapped

Returns:
The wrapped Rule

getLocal

public boolean getLocal()
Determines whether the current rule is a local rule or has been inherited from a parent

Returns:
true if the rule is defined on the current node

getId

public java.lang.String getId()
Returns the rule id

Returns:
The id

getTitle

public java.lang.String getTitle()
Returns the rule title

Returns:
The title

getDescription

public java.lang.String getDescription()
Returns the rule description

Returns:
The description

getCreatedDate

public java.util.Date getCreatedDate()
Returns the created date

Returns:
The created date

getModifiedDate

public java.util.Date getModifiedDate()
Returns the modfified date

Returns:
The modified date


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.