Package fi.bitwards.service
Class BitwardsResource.AccessEvent
java.lang.Object
fi.bitwards.service.BitwardsResource.AccessEvent
- Enclosing class:
BitwardsResource
An access entry of the resource (resource event).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAccess to resource was denied.static final intDuring access event an error occured.static final intAccess to resource was granted. -
Method Summary
Modifier and TypeMethodDescriptionGet access time of this entry.intGet the access type of this entry.intGet the access error of this entry, if an error occured.booleanWas the resource maintenance successful or erroneous during this access attempt.
-
Field Details
-
ACCESS_GRANTED
public static final int ACCESS_GRANTEDAccess to resource was granted.- See Also:
-
ACCESS_DENIED
public static final int ACCESS_DENIEDAccess to resource was denied.- See Also:
-
ACCESS_ERROR
public static final int ACCESS_ERRORDuring access event an error occured. Check error code for details.- See Also:
-
-
Method Details
-
getAccessTime
Get access time of this entry.- Returns:
- the access time
-
getAccessType
public int getAccessType()Get the access type of this entry.- Returns:
- the access type
-
getErrorCode
public int getErrorCode()Get the access error of this entry, if an error occured.- Returns:
- the access type
-
hasMaintenanceError
public boolean hasMaintenanceError()Was the resource maintenance successful or erroneous during this access attempt.- Returns:
- true if resource maintenance was erroneous during this access event, false if there was no maintenance error.
-