com.wewebu.ow.server.ecm
Interface OwReason

All Known Implementing Classes:
OwStandardReason

public interface OwReason

Base interface for reason object. Interface with the possibility to add a description why something is allowed or denied.

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 String EMPTY_REASON_DESCRIPTION
          Empty String which should be used as return value if no description exist.
 
Method Summary
 String getReasonDescription()
          String message why it is denied/allowed.
 boolean isAllowed()
          Return status if it is allowed or not.
 

Field Detail

EMPTY_REASON_DESCRIPTION

static final String EMPTY_REASON_DESCRIPTION
Empty String which should be used as return value if no description exist.

See Also:
Constant Field Values
Method Detail

isAllowed

boolean isAllowed()
Return status if it is allowed or not.

Returns:
boolean true only if allowed, else false

getReasonDescription

String getReasonDescription()
String message why it is denied/allowed.

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

Returns:
String containing the reason (non-null)


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.