com.wewebu.ow.server.ecmimpl
Class OwStandardReason

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.OwStandardReason
All Implemented Interfaces:
OwReason

public class OwStandardReason
extends Object
implements OwReason

Standard/Default implementation of a OwReason object.

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.0.0.0

Field Summary
static OwStandardReason ALLOWED
          Default instance for allow with empty reason description
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwReason
EMPTY_REASON_DESCRIPTION
 
Constructor Summary
OwStandardReason(boolean isAllowed_p, String description_p)
           
 
Method Summary
 String getReasonDescription()
          String message why it is denied/allowed.
 boolean isAllowed()
          Return status if it is allowed or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOWED

public static final OwStandardReason ALLOWED
Default instance for allow with empty reason description

Constructor Detail

OwStandardReason

public OwStandardReason(boolean isAllowed_p,
                        String description_p)
Method Detail

getReasonDescription

public String getReasonDescription()
Description copied from interface: OwReason
String message why it is denied/allowed.

Attention should not return null use OwReason.EMPTY_REASON_DESCRIPTION instead as return value.

Specified by:
getReasonDescription in interface OwReason
Returns:
String containing the reason (non-null)

isAllowed

public boolean isAllowed()
Description copied from interface: OwReason
Return status if it is allowed or not.

Specified by:
isAllowed in interface OwReason
Returns:
boolean true only if allowed, else false


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.